[llvm-commits] CVS: llvm/utils/TableGen/CodeEmitterGen.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 4 20:02:06 PDT 2006
Changes in directory llvm/utils/TableGen:
CodeEmitterGen.cpp updated: 1.48 -> 1.49
---
Log message:
Fix JIT encoding of two-addr instructions.
---
Diffs of the changes: (+5 -0)
CodeEmitterGen.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/utils/TableGen/CodeEmitterGen.cpp
diff -u llvm/utils/TableGen/CodeEmitterGen.cpp:1.48 llvm/utils/TableGen/CodeEmitterGen.cpp:1.49
--- llvm/utils/TableGen/CodeEmitterGen.cpp:1.48 Thu Jul 13 17:17:08 2006
+++ llvm/utils/TableGen/CodeEmitterGen.cpp Mon Sep 4 22:01:52 2006
@@ -161,6 +161,11 @@
+ utostr(op++)
+ "));\n";
gotOp = true;
+
+ // If this is a two-address instruction and we just got the dest
+ // op, skip the src op.
+ if (op == 1 && Target.getInstruction(InstName).isTwoAddress)
+ ++op;
}
unsigned opMask = (1 << N) - 1;
More information about the llvm-commits
mailing list