diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:12:23 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-03 13:12:23 +0000 |
commit | 8b528e52ee6018b0d0e7e46b3b4cf6f41fdaa0d9 (patch) | |
tree | 152e3fb01cadc9e040298fffba1ec792278ddb08 /lib/Target/MSP430/MSP430ISelLowering.h | |
parent | ed1a51af376b9027db60ff060e0a2572493df07b (diff) | |
download | external_llvm-8b528e52ee6018b0d0e7e46b3b4cf6f41fdaa0d9.zip external_llvm-8b528e52ee6018b0d0e7e46b3b4cf6f41fdaa0d9.tar.gz external_llvm-8b528e52ee6018b0d0e7e46b3b4cf6f41fdaa0d9.tar.bz2 |
Lower select with custom inserted and make condjumps generic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430ISelLowering.h')
-rw-r--r-- | lib/Target/MSP430/MSP430ISelLowering.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430ISelLowering.h b/lib/Target/MSP430/MSP430ISelLowering.h index c0ababd..f14af1d 100644 --- a/lib/Target/MSP430/MSP430ISelLowering.h +++ b/lib/Target/MSP430/MSP430ISelLowering.h @@ -49,7 +49,11 @@ namespace llvm { /// is the block to branch if condition is true, operand 2 is the /// condition code, and operand 3 is the flag operand produced by a CMP /// instruction. - BRCOND + BRCOND, + + /// SELECT. Operand 0 and operand 1 are selection variable, operand 3 is + /// condition code and operand 4 is flag operand. + SELECT }; } @@ -77,6 +81,7 @@ namespace llvm { SDValue LowerGlobalAddress(SDValue Op, SelectionDAG &DAG); SDValue LowerSETCC(SDValue Op, SelectionDAG &DAG); SDValue LowerBRCOND(SDValue Op, SelectionDAG &DAG); + SDValue LowerSELECT(SDValue Op, SelectionDAG &DAG); SDValue LowerCCCCallTo(SDValue Op, SelectionDAG &DAG, unsigned CC); @@ -84,6 +89,8 @@ namespace llvm { CallSDNode *TheCall, unsigned CallingConv, SelectionDAG &DAG); + MachineBasicBlock* EmitInstrWithCustomInserter(MachineInstr *MI, + MachineBasicBlock *BB) const; private: const MSP430Subtarget &Subtarget; |