search for: myinsn

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

Did you mean: myinst
2016 Mar 30
0
How to split immediate in assembly output?
Hi, I am writing simple pattern in td that uses immediate and shall print it in assembler in two parts. Say for input immediate i: i1 = i << 2 i2 = i & 3 I want something like (simplified tablegen pseudocode): def MYINSN : Insn<(outs MyOut:$r0), (ins MyReg:$r1, MyImm32:$i), "prefix $i1 body $r0, $r1, $i2", [(... some pattern here)]>; In Insn pattern whole string goes to AsmString property. How can I do it with tablegen? Any examples from existing backends? P.S. Of course I can do cust...