Add a new field to MCOperandInfo that contains information about the type of the...
[oota-llvm.git] / utils / TableGen / InstrInfoEmitter.cpp
index b27e49787c117e51ff89ee36ce00c9464af06ef1..d3c2d6370a944e4549635cee4b7bf8d3a35cfa6b 100644 (file)
@@ -121,6 +121,11 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
                     " << 16) | (1 << MCOI::TIED_TO))";
       }
 
+      // Fill in operand type.
+      Res += ", MCOI::";
+      assert(!Inst.Operands[i].OperandType.empty() && "Invalid operand type.");
+      Res += Inst.Operands[i].OperandType;
+
       Result.push_back(Res);
     }
   }