Displaying 1 result from an estimated 1 matches for "int_no_operand".
2015 Oct 19
2
Instructions with no operand
...I am trying to implement an instruction with no operand for example "clr"
in TableGen.
-----------------------------------------
e.g.
*InstrInfo.td:*
class TestInst<string opc, string asmstr, dag oops, dag iops,
list<dag> pattern> : Instruction { ... }
def int_no_operand : Intrinsic<[]>;
class ALU<string opc> : TestInst<opc, "", (outs), (ins),
[(int_no_operand)]>;
*InstrFormat.td*
multiclass Clr {
def _ : ALU<"clr">
{let InstOp = 0b11;}
}
-----------------------------------------
after compiling the code, I receiv...