[llvm-commits] CVS: llvm/utils/TableGen/CodeGenInstruction.h CodeGenTarget.cpp InstrInfoEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Jan 1 18:29:16 PST 2005



Changes in directory llvm/utils/TableGen:

CodeGenInstruction.h updated: 1.6 -> 1.7
CodeGenTarget.cpp updated: 1.25 -> 1.26
InstrInfoEmitter.cpp updated: 1.15 -> 1.16
---
Log message:

Expose isConvertibleToThreeAddress and isCommutable bits to the code generator.


---
Diffs of the changes:  (+6 -0)

Index: llvm/utils/TableGen/CodeGenInstruction.h
diff -u llvm/utils/TableGen/CodeGenInstruction.h:1.6 llvm/utils/TableGen/CodeGenInstruction.h:1.7
--- llvm/utils/TableGen/CodeGenInstruction.h:1.6	Tue Sep 28 16:01:45 2004
+++ llvm/utils/TableGen/CodeGenInstruction.h	Sat Jan  1 20:29:04 2005
@@ -74,6 +74,8 @@
     bool isLoad;
     bool isStore;
     bool isTwoAddress;
+    bool isConvertibleToThreeAddress;
+    bool isCommutable;
     bool isTerminator;
     bool hasDelaySlot;
 


Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.25 llvm/utils/TableGen/CodeGenTarget.cpp:1.26
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.25	Thu Oct 14 00:50:43 2004
+++ llvm/utils/TableGen/CodeGenTarget.cpp	Sat Jan  1 20:29:04 2005
@@ -217,6 +217,8 @@
   isLoad       = R->getValueAsBit("isLoad");
   isStore      = R->getValueAsBit("isStore");
   isTwoAddress = R->getValueAsBit("isTwoAddress");
+  isConvertibleToThreeAddress = R->getValueAsBit("isConvertibleToThreeAddress");
+  isCommutable = R->getValueAsBit("isCommutable");
   isTerminator = R->getValueAsBit("isTerminator");
   hasDelaySlot = R->getValueAsBit("hasDelaySlot");
 


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.15 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.16
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.15	Tue Sep 28 16:01:45 2004
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Sat Jan  1 20:29:04 2005
@@ -116,6 +116,8 @@
   if (Inst.isLoad)       OS << "|M_LOAD_FLAG";
   if (Inst.isStore)      OS << "|M_STORE_FLAG";
   if (Inst.isTwoAddress) OS << "|M_2_ADDR_FLAG";
+  if (Inst.isConvertibleToThreeAddress) OS << "|M_CONVERTIBLE_TO_3_ADDR";
+  if (Inst.isCommutable) OS << "|M_COMMUTABLE";
   if (Inst.isTerminator) OS << "|M_TERMINATOR_FLAG";
   OS << ", 0";
 






More information about the llvm-commits mailing list