[LLVMdev] How to make correct pattern for instruction?
Carlos Almeida Jr.
almeidajr at gmail.com
Wed Nov 26 15:50:05 PST 2014
Hi,
I'm a beginner user using LLVM, and I'm trying to create a new backend
using CPU0 Tutorial as reference.
I have two instructions for add: add and addi (this is a pseudo
instruction, but imediate operations is not available in architecture).
That is my idea: When the LLVM instruction selection find addi r3 = r2 +
value
must convert to this:
- load r1, value
- add r3 = r2 + r1
In archInstrInfo.td I declared the instructions of the architecture, but I
dont know how to "split" addi instruction. I tryed understand the LLVM and
CPU0 documentation for solve this but I not found anything. :(
Could anyone help me?
Thanks
Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141126/7a3be0a0/attachment.html>
More information about the llvm-dev
mailing list