diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-06 23:53:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-06 23:53:31 +0000 |
commit | f62138e79267870125e80402053ddac1ca0c626d (patch) | |
tree | 1e9fbd0241a2610b32c55b17b00896f05a9df20e | |
parent | 8ceabde4cbca8913dadd39c9d83c89b4f7c5cd86 (diff) | |
download | llvm-f62138e79267870125e80402053ddac1ca0c626d.zip llvm-f62138e79267870125e80402053ddac1ca0c626d.tar.gz llvm-f62138e79267870125e80402053ddac1ca0c626d.tar.bz2 |
Mark predicate operands as such in operand info.
llvm-svn: 31483
-rw-r--r-- | llvm/utils/TableGen/InstrInfoEmitter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp index 9202308..0c5c455 100644 --- a/llvm/utils/TableGen/InstrInfoEmitter.cpp +++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp @@ -100,6 +100,10 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) { // Ptr value whose register class is resolved via callback. if (OpR && OpR->getName() == "ptr_rc") Res += "|M_LOOK_UP_PTR_REG_CLASS"; + + // Predicate operands. + if (j == 0 && Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand")) + Res += "|M_PREDICATE_OPERAND"; // fill in constraint info. Res += ", " + Inst.OperandList[i].Constraint; |