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
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index 300a100..77907ac 100644
--- a/utils/TableGen/CodeEmitterGen.cpp
+++ b/utils/TableGen/CodeEmitterGen.cpp
@@ -26,7 +26,9 @@
Record *R = *I;
if (R->getName() == "PHI" ||
R->getName() == "INLINEASM" ||
- R->getName() == "LABEL") continue;
+ R->getName() == "LABEL" ||
+ R->getName() == "EXTRACT_SUBREG" ||
+ R->getName() == "INSERT_SUBREG") continue;
BitsInit *BI = R->getValueAsBitsInit("Inst");
@@ -97,7 +99,9 @@
if (R->getName() == "PHI" ||
R->getName() == "INLINEASM" ||
- R->getName() == "LABEL") {
+ R->getName() == "LABEL" ||
+ R->getName() == "EXTRACT_SUBREG" ||
+ R->getName() == "INSERT_SUBREG") {
o << " 0U";
continue;
}
@@ -127,7 +131,9 @@
if (InstName == "PHI" ||
InstName == "INLINEASM" ||
- InstName == "LABEL") continue;
+ InstName == "LABEL"||
+ InstName == "EXTRACT_SUBREG" ||
+ InstName == "INSERT_SUBREG") continue;
BitsInit *BI = R->getValueAsBitsInit("Inst");
const std::vector<RecordVal> &Vals = R->getValues();