Encode method for basic block

Hello LLVMDevs…

I added a pattern like below …

def : Pat<(brcond (setcc (i32 GR32:$L), (i32 0), SETEQ), bb:$T),
(BEI GR32:$L, brtarget:$T)>;

def brtarget : Operand {
let EncoderMethod = “getPCRel”;
}

Added getPCRel encoder method but it is not been picked by BEI …
could you help me in setting up encoder method…

Thanks,
Mahesh B

Hi Mahesh,