Displaying 1 result from an estimated 1 matches for "addriany".
2012 Sep 26
0
[LLVMdev] Folding nodes with more than one use during ISel
...struction in my InstrInfo.td and the relevant entry for this addressing mode is:
def IdxI16 : IdxPB2Inst<opcode, AddrModeIdxI16, (outs), (ins memsrc:$mem),
!strconcat (str, "\t[$mem]\t; IdxI16"),
[(store (OpNode (loadi8 (loadi16 addrIAny:$mem))),
(loadi16 addrIAny:$mem))>;
where loadi8 and loadi16 are PatFrags that match an i8 and i16 load respectively and OpNode is, in this case, the "not" PatFrag. Pointers are 16-bit by the way.
During instruction selection, this pattern fails to...