diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 12:59:50 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 12:59:50 +0000 |
commit | fd1b7c778c0c332a676b1003115d2b4bc6f9a46a (patch) | |
tree | cd57ace1c17e82f01c8af2ec42097d72b003da3b /lib/Target/MSP430/MSP430ISelLowering.h | |
parent | c8fbb6ae2041f17285e4ba73d54d388e703b9689 (diff) | |
download | llvm-fd1b7c778c0c332a676b1003115d2b4bc6f9a46a.tar.gz llvm-fd1b7c778c0c332a676b1003115d2b4bc6f9a46a.tar.bz2 llvm-fd1b7c778c0c332a676b1003115d2b4bc6f9a46a.tar.xz |
Add proper ISD::RET lowering
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430ISelLowering.h')
-rw-r--r-- | lib/Target/MSP430/MSP430ISelLowering.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430ISelLowering.h b/lib/Target/MSP430/MSP430ISelLowering.h index 0d17ddc574..4ee7a9c8cc 100644 --- a/lib/Target/MSP430/MSP430ISelLowering.h +++ b/lib/Target/MSP430/MSP430ISelLowering.h @@ -20,6 +20,14 @@ #include "llvm/Target/TargetLowering.h" namespace llvm { + namespace MSP430ISD { + enum { + FIRST_NUMBER = ISD::BUILTIN_OP_END, + + /// Return with a flag operand. Operand 0 is the chain operand. + RET_FLAG + }; + } class MSP430Subtarget; class MSP430TargetMachine; @@ -30,7 +38,13 @@ namespace llvm { /// LowerOperation - Provide custom lowering hooks for some operations. virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG); + + /// getTargetNodeName - This method returns the name of a target specific + /// DAG node. + virtual const char *getTargetNodeName(unsigned Opcode) const; + SDValue LowerFORMAL_ARGUMENTS(SDValue Op, SelectionDAG &DAG); + SDValue LowerRET(SDValue Op, SelectionDAG &DAG); SDValue LowerCCCArguments(SDValue Op, SelectionDAG &DAG); private: |