diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-15 00:03:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-15 00:03:38 +0000 |
commit | da47e6e0d003c873da960361549e57ee4617c301 (patch) | |
tree | 7aeba4e0c14a734364886783388f965e5854d4d9 /utils/TableGen/CodeGenTarget.cpp | |
parent | af59b105bb3f9a31f1812e470eb9db28a8a1b491 (diff) |
Replace all target specific implicit def instructions with a target independent one: TargetInstrInfo::IMPLICIT_DEF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index b9730a5bd9..e41f75a68a 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -304,6 +304,11 @@ getInstructionsByEnumValue(std::vector<const CodeGenInstruction*> throw "Could not find 'INSERT_SUBREG' instruction!"; const CodeGenInstruction *INSERT_SUBREG = &I->second; + I = getInstructions().find("IMPLICIT_DEF"); + if (I == Instructions.end()) + throw "Could not find 'IMPLICIT_DEF' instruction!"; + const CodeGenInstruction *IMPLICIT_DEF = &I->second; + // Print out the rest of the instructions now. NumberedInstructions.push_back(PHI); NumberedInstructions.push_back(INLINEASM); @@ -311,13 +316,15 @@ getInstructionsByEnumValue(std::vector<const CodeGenInstruction*> NumberedInstructions.push_back(DECLARE); NumberedInstructions.push_back(EXTRACT_SUBREG); NumberedInstructions.push_back(INSERT_SUBREG); + NumberedInstructions.push_back(IMPLICIT_DEF); for (inst_iterator II = inst_begin(), E = inst_end(); II != E; ++II) if (&II->second != PHI && &II->second != INLINEASM && &II->second != LABEL && &II->second != DECLARE && &II->second != EXTRACT_SUBREG && - &II->second != INSERT_SUBREG) + &II->second != INSERT_SUBREG && + &II->second != IMPLICIT_DEF) NumberedInstructions.push_back(&II->second); } |