[llvm-commits] CVS: llvm/utils/TableGen/InstrInfoEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Thu May 18 13:42:20 PDT 2006
Changes in directory llvm/utils/TableGen:
InstrInfoEmitter.cpp updated: 1.41 -> 1.42
---
Log message:
lib/Target/Target.td
---
Diffs of the changes: (+7 -5)
InstrInfoEmitter.cpp | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.41 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.42
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.41 Fri May 12 02:47:00 2006
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp Thu May 18 15:42:07 2006
@@ -139,11 +139,13 @@
for (unsigned i = 0, e = OperandInfo.size(); i != e; ++i) {
Record *RC = OperandInfo[i];
// FIXME: We only care about register operands for now.
- if (RC && RC->isSubClassOf("RegisterClass")) {
- OS << "{ &" << getQualifiedName(RC) << "RegClass }, ";
- } else {
- OS << "{ 0 }, ";
- }
+ if (RC && RC->isSubClassOf("RegisterClass"))
+ OS << "{ &" << getQualifiedName(RC) << "RegClass, 0 }, ";
+ else if (RC && RC->getName() == "ptr_rc")
+ // Ptr value whose register class is resolved via callback.
+ OS << "{ 0, 1 }, ";
+ else
+ OS << "{ 0, 0 }, ";
}
OS << "};\n";
}
More information about the llvm-commits
mailing list