[llvm-dev] Encode method for basic block

Mahesh Bodapati via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 23 23:20:19 PDT 2019


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<OtherVT> {
   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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191024/f57e94de/attachment.html>


More information about the llvm-dev mailing list