Displaying 1 result from an estimated 1 matches for "inoprandlist".
Did you mean:
inoperandlist
2009 Jul 10
2
[LLVMdev] Help: Instruction Pattern Matching question
...the instruction TargetInstruction.td as follows:
class MyInst
<opcode op,subopcode subop,
dag outs, dag ins, string asmstr,list<dag> pattern>
Instruction
{
let Namespce = "MyNameSpace";
MyOpCode myop = op;
MySubOpcode mysubop = subop;
dag OutOprandList = outs;
dag InOprandList = ins;
let ASMString = asmstr;
let Pattern = pattern;
}
def My_ADDINST1: MyInst <MYADD1, NO_SUBOP,
(outs ptr_rc: $dest), (ins: $ptr_rc:$ptr1, Int32RC:$src)
"myadd1 $dst, $ptr1, $src1",
[(set $ptr_rc:$dst,(add $ptr_rc:ptr1, Int32RC:$src))]>;
it is givi...