search for: pointer_add

Displaying 2 results from an estimated 2 matches for "pointer_add".

2009 Jul 07
1
[LLVMdev] LLVM code target dependent generator question
...I use iPTR def MyAdd : MyInst < myadd, nosubop, (outs I32RC:$dst), (ins I32RC:$src1, I32RC:$src2), “add $dst, $src1, $src2", [(set rc:$dst, (add I32RC:$src1, I32RC:$src2))] def MyPointerAdd : MyInst < mypointeradd, nosubop, (outs P32RC:$dst), (ins P32RC:$src1, P32RC:$src2), “pointer_add $dst, $src1, $src2", [(set rc:$dst, (add P32RC:$src1, P32RC:$src2))] Does this look right? If not please advice me on how to get my desired result. Can I get the desired result by changing my targetInstrInfo.td file only? Or do I have to manually implement the lower add instructions for my t...
2009 Jul 07
0
[LLVMdev] LLVM code target dependent generator question
...n if I use iPTR def MyAdd : MyInst < myadd, nosubop, (outs I32RC:$dst), (ins I32RC:$src1, I32RC:$src2), “add $dst, $src1, $src2", [(set rc:$dst, (add I32RC:$src1, I32RC:$src2))] def MyPointerAdd : MyInst < mypointeradd, nosubop, (outs P32RC:$dst), (ins P32RC:$src1, P32RC:$src2), “pointer_add $dst, $src1, $src2", [(set rc:$dst, (add P32RC:$src1, P32RC:$src2))] Does this look right? If not please advice me on how to get my desired result. Can I get the desired result by changing my targetInstrInfo.td file only? Or do I have to manually implement the lower add instructions for my t...