summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-07-16 10:31:59 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-07-16 10:31:59 +0000
commita57943154ebff38d283fe10414c1739133ff9cfd (patch)
tree0c06d288513d4097f8ff5c5f674a2791f4970b77
parentf486726c56fb0686eca4e8e6aab703acbea2cd25 (diff)
downloadbcm5719-llvm-a57943154ebff38d283fe10414c1739133ff9cfd.tar.gz
bcm5719-llvm-a57943154ebff38d283fe10414c1739133ff9cfd.zip
Add what will eventually be the TSFlags. Big switch(opcode) statements are bad.
llvm-svn: 14883
-rw-r--r--llvm/lib/Target/SparcV8/SparcV8InstrInfo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h
index f946d1a9a17..52cd7c7f8d0 100644
--- a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h
+++ b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h
@@ -19,6 +19,18 @@
namespace llvm {
+/// V8II - This namespace holds all of the target specific flags that
+/// instruction info tracks.
+///
+namespace V8II {
+ enum {
+ Pseudo = (1<<0),
+ Load = (1<<1),
+ Store = (1<<2),
+ DelaySlot = (1<<3)
+ };
+};
+
class SparcV8InstrInfo : public TargetInstrInfo {
const SparcV8RegisterInfo RI;
public:
OpenPOWER on IntegriCloud