summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430/MSP430ISelLowering.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-12-12 18:55:37 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-12-12 18:55:37 +0000
commitd8f320947f484a0da10841e6d07131fca0cb7c69 (patch)
tree7f19f826db263de4dc0bc304f1a370bec9a05f6a /llvm/lib/Target/MSP430/MSP430ISelLowering.h
parent3974c8de516d89b0ae5cd1ce48a54c829685a34c (diff)
downloadbcm5719-llvm-d8f320947f484a0da10841e6d07131fca0cb7c69.tar.gz
bcm5719-llvm-d8f320947f484a0da10841e6d07131fca0cb7c69.zip
Implement variable-width shifts.
No testcase yet - it seems we're exposing generic codegen bugs. llvm-svn: 91221
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430ISelLowering.h')
-rw-r--r--llvm/lib/Target/MSP430/MSP430ISelLowering.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.h b/llvm/lib/Target/MSP430/MSP430ISelLowering.h
index b126d8e431f..4921500d392 100644
--- a/llvm/lib/Target/MSP430/MSP430ISelLowering.h
+++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.h
@@ -47,7 +47,7 @@ namespace llvm {
/// CMP - Compare instruction.
CMP,
- /// SetCC. Operand 0 is condition code, and operand 1 is the flag
+ /// SetCC - Operand 0 is condition code, and operand 1 is the flag
/// operand produced by a CMP instruction.
SETCC,
@@ -57,9 +57,12 @@ namespace llvm {
/// instruction.
BR_CC,
- /// SELECT_CC. Operand 0 and operand 1 are selection variable, operand 3
+ /// SELECT_CC - Operand 0 and operand 1 are selection variable, operand 3
/// is condition code and operand 4 is flag operand.
- SELECT_CC
+ SELECT_CC,
+
+ /// SHL, SRA, SRL - Non-constant shifts.
+ SHL, SRA, SRL
};
}
@@ -99,6 +102,9 @@ namespace llvm {
MachineBasicBlock* EmitInstrWithCustomInserter(MachineInstr *MI,
MachineBasicBlock *BB,
DenseMap<MachineBasicBlock*, MachineBasicBlock*> *EM) const;
+ MachineBasicBlock* EmitShiftInstr(MachineInstr *MI,
+ MachineBasicBlock *BB,
+ DenseMap<MachineBasicBlock*, MachineBasicBlock*> *EM) const;
private:
SDValue LowerCCCCallTo(SDValue Chain, SDValue Callee,
OpenPOWER on IntegriCloud