search for: instr_yx

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

Did you mean: instr_xy
2012 Oct 04
1
[LLVMdev] RegisterClass constraints in TableGen
...two definitions per instruction, so I had: def AllRegs : RegisterClass< ... (add interleave (XRegs, YRegs))>; and in the InstrInfo.td: def Instr_xy: Instruction(outs AllRegs:$dst), (ins XRegs:$src1, YRegs:$src2), "...", [(set AllRegs:$dst, (OpNode XRegs:$src1, YRegs:$src2))] def Instr_yx: Instruction(outs AllRegs:$dst), (ins YRegs:$src1, XRegs:$src2), "...", [(set AllRegs:$dst, (OpNode YRegs:$src1, XRegs:$src2))] for each instruction. However, upon failing the first match, it insisted on swapping the registers between the two classes and sticking with that instruction....