aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2007-07-26 07:48:21 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2007-07-26 07:48:21 +0000
commit071a2a7a3878a2ab2e5e7fa9df03a210d00bf14f (patch)
tree7467f6e03f13c84aad5031e90ba99b9a60f1c622 /utils/TableGen/InstrInfoEmitter.cpp
parenta2f7d4eb81ba16569d9424a359293c8d629da9e0 (diff)
downloadexternal_llvm-071a2a7a3878a2ab2e5e7fa9df03a210d00bf14f.zip
external_llvm-071a2a7a3878a2ab2e5e7fa9df03a210d00bf14f.tar.gz
external_llvm-071a2a7a3878a2ab2e5e7fa9df03a210d00bf14f.tar.bz2
Add target independent MachineInstr's to represent subreg insert/extract in MBB's. PR1350
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index da2308e9e..9a5dd2b 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -325,7 +325,9 @@ void InstrInfoEmitter::emitShiftedValue(Record *R, StringInit *Val,
// This isn't an error if this is a builtin instruction.
if (R->getName() != "PHI" &&
R->getName() != "INLINEASM" &&
- R->getName() != "LABEL")
+ R->getName() != "LABEL" &&
+ R->getName() != "EXTRACT_SUBREG" &&
+ R->getName() != "INSERT_SUBREG")
throw R->getName() + " doesn't have a field named '" +
Val->getValue() + "'!";
return;