summaryrefslogtreecommitdiff
path: root/utils/TableGen/EDEmitter.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-07-06 21:33:38 +0000
committerJim Grosbach <grosbach@apple.com>2011-07-06 21:33:38 +0000
commit806fcc040e0bc7962891f12d6e09fc86f0bc2184 (patch)
tree0b688f32343558c8b9f3e9fec1e4a4a40affee21 /utils/TableGen/EDEmitter.cpp
parent231a5ab746ca12000aa57208869a98f78781aa6b (diff)
downloadllvm-806fcc040e0bc7962891f12d6e09fc86f0bc2184.tar.gz
llvm-806fcc040e0bc7962891f12d6e09fc86f0bc2184.tar.bz2
llvm-806fcc040e0bc7962891f12d6e09fc86f0bc2184.tar.xz
Don't require pseudo-instructions to carry encoding information.
For now this is distinct from isCodeGenOnly, as code-gen-only instructions can (and often do) still have encoding information associated with them. Once we've migrated all of them over to true pseudo-instructions that are lowered to real instructions prior to the printer/emitter, we can remove isCodeGenOnly and just use isPseudo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/EDEmitter.cpp')
-rw-r--r--utils/TableGen/EDEmitter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/TableGen/EDEmitter.cpp b/utils/TableGen/EDEmitter.cpp
index 4c0d385670..9870d91f3e 100644
--- a/utils/TableGen/EDEmitter.cpp
+++ b/utils/TableGen/EDEmitter.cpp
@@ -774,6 +774,11 @@ static void populateInstInfo(CompoundConstantEmitter &infoArray,
for (index = 0; index < numInstructions; ++index) {
const CodeGenInstruction& inst = *numberedInstructions[index];
+ // We don't need to do anything for pseudo-instructions, as we'll never
+ // see them here. We'll only see real instructions.
+ if (inst.isPseudo)
+ continue;
+
CompoundConstantEmitter *infoStruct = new CompoundConstantEmitter;
infoArray.addEntry(infoStruct);