summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/ARMDecoderEmitter.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
commitf3fd36e0f5238d338a94241c0a1d9f6b2fba076e (patch)
tree4967bdc7dff513be6396f7f80d82f264fa58f58e /llvm/utils/TableGen/ARMDecoderEmitter.cpp
parenta3cbf52a57220ce485543696fe4db95912199b0d (diff)
downloadbcm5719-llvm-f3fd36e0f5238d338a94241c0a1d9f6b2fba076e.tar.gz
bcm5719-llvm-f3fd36e0f5238d338a94241c0a1d9f6b2fba076e.zip
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. llvm-svn: 134539
Diffstat (limited to 'llvm/utils/TableGen/ARMDecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/ARMDecoderEmitter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/ARMDecoderEmitter.cpp b/llvm/utils/TableGen/ARMDecoderEmitter.cpp
index a7cbbcd84b7..8a5dc8ba154 100644
--- a/llvm/utils/TableGen/ARMDecoderEmitter.cpp
+++ b/llvm/utils/TableGen/ARMDecoderEmitter.cpp
@@ -421,6 +421,9 @@ public:
protected:
// Populates the insn given the uid.
void insnWithID(insn_t &Insn, unsigned Opcode) const {
+ if (AllInstructions[Opcode]->isPseudo)
+ return;
+
BitsInit &Bits = getBitsField(*AllInstructions[Opcode]->TheDef, "Inst");
for (unsigned i = 0; i < BIT_WIDTH; ++i)
OpenPOWER on IntegriCloud