summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430InstrInfo.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:12:06 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:12:06 +0000
commited1a51af376b9027db60ff060e0a2572493df07b (patch)
tree1e8fc0c80e4f54a32830327ae9ebf63c8709259a /lib/Target/MSP430/MSP430InstrInfo.h
parent6e4f62790b8992c3bfa25573cb9e98d648bcf730 (diff)
downloadllvm-ed1a51af376b9027db60ff060e0a2572493df07b.tar.gz
llvm-ed1a51af376b9027db60ff060e0a2572493df07b.tar.bz2
llvm-ed1a51af376b9027db60ff060e0a2572493df07b.tar.xz
Add first draft for conditions, conditional branches, etc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430InstrInfo.h')
-rw-r--r--lib/Target/MSP430/MSP430InstrInfo.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/MSP430/MSP430InstrInfo.h b/lib/Target/MSP430/MSP430InstrInfo.h
index 02287d5c20..0803e2d77c 100644
--- a/lib/Target/MSP430/MSP430InstrInfo.h
+++ b/lib/Target/MSP430/MSP430InstrInfo.h
@@ -21,6 +21,21 @@ namespace llvm {
class MSP430TargetMachine;
+namespace MSP430 {
+ // MSP430 specific condition code. These correspond to MSP430_*_COND in
+ // MSP430InstrInfo.td. They must be kept in synch.
+ enum CondCode {
+ COND_E = 0, // aka COND_Z
+ COND_NE = 1, // aka COND_NZ
+ COND_HS = 2, // aka COND_C
+ COND_LO = 3, // aka COND_NC
+ COND_GE = 4,
+ COND_L = 5,
+
+ COND_INVALID
+ };
+}
+
class MSP430InstrInfo : public TargetInstrInfoImpl {
const MSP430RegisterInfo RI;
MSP430TargetMachine &TM;