diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-16 10:31:59 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-16 10:31:59 +0000 |
commit | 7d7ac63366956473c8b3ef790447f576315e4c21 (patch) | |
tree | 3b6fd407a6bed7567742b1bcb270458231b35452 | |
parent | d303a2058cdfac5f11ae65762d68577f34e9abdb (diff) | |
download | external_llvm-7d7ac63366956473c8b3ef790447f576315e4c21.zip external_llvm-7d7ac63366956473c8b3ef790447f576315e4c21.tar.gz external_llvm-7d7ac63366956473c8b3ef790447f576315e4c21.tar.bz2 |
Add what will eventually be the TSFlags. Big switch(opcode) statements are bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14883 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.h | 12 | ||||
-rw-r--r-- | lib/Target/SparcV8/SparcV8InstrInfo.h | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.h b/lib/Target/Sparc/SparcInstrInfo.h index f946d1a..52cd7c7 100644 --- a/lib/Target/Sparc/SparcInstrInfo.h +++ b/lib/Target/Sparc/SparcInstrInfo.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: diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.h b/lib/Target/SparcV8/SparcV8InstrInfo.h index f946d1a..52cd7c7 100644 --- a/lib/Target/SparcV8/SparcV8InstrInfo.h +++ b/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: |