From: Brian Gaeke Date: Fri, 16 Jul 2004 10:31:59 +0000 (+0000) Subject: Add what will eventually be the TSFlags. Big switch(opcode) statements are bad. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7d7ac63366956473c8b3ef790447f576315e4c21;p=oota-llvm.git 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 --- diff --git a/lib/Target/Sparc/SparcInstrInfo.h b/lib/Target/Sparc/SparcInstrInfo.h index f946d1a9a17..52cd7c7f8d0 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 f946d1a9a17..52cd7c7f8d0 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: