aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-06 23:53:31 +0000
committerChris Lattner <sabre@nondot.org>2006-11-06 23:53:31 +0000
commitf62138e79267870125e80402053ddac1ca0c626d (patch)
tree1e9fbd0241a2610b32c55b17b00896f05a9df20e
parent8ceabde4cbca8913dadd39c9d83c89b4f7c5cd86 (diff)
downloadllvm-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.cpp4
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;