search for: pcrelwrapp

Displaying 1 result from an estimated 1 matches for "pcrelwrapp".

Did you mean: pcrelwrapper
2009 Nov 15
0
[LLVMdev] Matching an instruction that writes a specific register in a Pat<>
...example on the XCore the result of the the ldap instruction is written to R11 and used to match the tglobaladdr node as follows: def LDAP_lu10 : _FLU10< (outs), (ins i32imm:$addr), "ldap r11, $addr", [(set R11, (pcrelwrapper tglobaladdr:$addr))]>; Is there anyway to get the same effect using a Pat<>? I'm asking because I want to use the same instruction for the new tblockaddress node. This means I have two patterns I want to specify, only one of which can be placed on the instruction definition. I ha...