Don't require pseudo-instructions to carry encoding information.
[oota-llvm.git] / utils / TableGen / ARMDecoderEmitter.cpp
index a7cbbcd84b79461aa4173d63acc54a13f88456e5..8a5dc8ba1543816e73506f2a34b7d5b6a5d5e80a 100644 (file)
@@ -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)