[LLVMdev] Custom Opcodes versus built-in opcodes

Chris Lattner clattner at apple.com
Fri Sep 19 10:49:04 PDT 2008


On Sep 18, 2008, at 4:04 PM, Villmow, Micah wrote:

> I am using lowering instructions and using custom opcodes that I can  
> more easily directly map to my backend. These opcodes are then used  
> to emit a custom set of instructions into the MachineBasicBlock.  
> I’ve been able to get one to work correctly, however, I’ve ran into  
> an issue where my second one is being confused as a FRAMEADDR opcode  
> instead of my opcode.

Make sure to use DAG.getTargetNode() with custom opcodes.  "target"  
nodes are encoded with an implicit delta added to their enum value.

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080919/6530bb94/attachment.html>


More information about the llvm-dev mailing list