aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2008-03-16 03:12:01 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2008-03-16 03:12:01 +0000
commitc9298235251b014e86a7368d92b589d093acb64a (patch)
tree11c2e0c245fb52c02a65e3e9469f5f83e94abaee /include
parent606c5aa084041eb5ad60710728098eaf9c997315 (diff)
downloadexternal_llvm-c9298235251b014e86a7368d92b589d093acb64a.zip
external_llvm-c9298235251b014e86a7368d92b589d093acb64a.tar.gz
external_llvm-c9298235251b014e86a7368d92b589d093acb64a.tar.bz2
Make insert_subreg a two-address instruction, vastly simplifying LowerSubregs pass. Add a new TII, subreg_to_reg, which is like insert_subreg except that it takes an immediate implicit value to insert into rather than a register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index d6acc63..05ca9e6 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -50,16 +50,8 @@ public:
DECLARE = 3,
EXTRACT_SUBREG = 4,
INSERT_SUBREG = 5,
- IMPLICIT_DEF = 6
- };
-
- // Target independent implict values for use with subreg insert. All targets
- // that support insert_subreg support IMPL_VAL_UNDEF. Support for the other
- // values is target dependent.
- enum ImplictVal {
- IMPL_VAL_UNDEF = 0,
- IMPL_VAL_ZERO = 1,
- LAST_IMPL_VAL = 3
+ IMPLICIT_DEF = 6,
+ SUBREG_TO_REG = 7
};
unsigned getNumOpcodes() const { return NumOpcodes; }