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

Evan Cheng evan.cheng at apple.com
Wed May 16 13:45:43 PDT 2007



Changes in directory llvm/utils/TableGen:

CodeGenInstruction.h updated: 1.26 -> 1.27
CodeGenTarget.cpp updated: 1.88 -> 1.89
InstrInfoEmitter.cpp updated: 1.58 -> 1.59
---
Log message:

Rename M_PREDICATED to M_PREDICABLE; opcode can be specified isPredicable without having a PredicateOperand.

---
Diffs of the changes:  (+4 -4)

 CodeGenInstruction.h |    2 +-
 CodeGenTarget.cpp    |    4 ++--
 InstrInfoEmitter.cpp |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/utils/TableGen/CodeGenInstruction.h
diff -u llvm/utils/TableGen/CodeGenInstruction.h:1.26 llvm/utils/TableGen/CodeGenInstruction.h:1.27
--- llvm/utils/TableGen/CodeGenInstruction.h:1.26	Mon Mar 19 01:20:37 2007
+++ llvm/utils/TableGen/CodeGenInstruction.h	Wed May 16 15:45:24 2007
@@ -87,7 +87,7 @@
     bool isCall;
     bool isLoad;
     bool isStore;
-    bool isPredicated;
+    bool isPredicable;
     bool isConvertibleToThreeAddress;
     bool isCommutable;
     bool isTerminator;


Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.88 llvm/utils/TableGen/CodeGenTarget.cpp:1.89
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.88	Sun Apr  1 02:20:02 2007
+++ llvm/utils/TableGen/CodeGenTarget.cpp	Wed May 16 15:45:24 2007
@@ -356,7 +356,7 @@
   isLoad       = R->getValueAsBit("isLoad");
   isStore      = R->getValueAsBit("isStore");
   bool isTwoAddress = R->getValueAsBit("isTwoAddress");
-  isPredicated = false;   // set below.
+  isPredicable = R->getValueAsBit("isPredicable");
   isConvertibleToThreeAddress = R->getValueAsBit("isConvertibleToThreeAddress");
   isCommutable = R->getValueAsBit("isCommutable");
   isTerminator = R->getValueAsBit("isTerminator");
@@ -404,7 +404,7 @@
       if (unsigned NumArgs = MIOpInfo->getNumArgs())
         NumOps = NumArgs;
 
-      isPredicated |= Rec->isSubClassOf("PredicateOperand");
+      isPredicable |= Rec->isSubClassOf("PredicateOperand");
     } else if (Rec->getName() == "variable_ops") {
       hasVariableNumberOfOperands = true;
       continue;


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.58 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.59
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.58	Mon May 14 20:20:36 2007
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Wed May 16 15:45:24 2007
@@ -236,7 +236,7 @@
   if (Inst.isCall)       OS << "|M_CALL_FLAG";
   if (Inst.isLoad)       OS << "|M_LOAD_FLAG";
   if (Inst.isStore || isStore) OS << "|M_STORE_FLAG";
-  if (Inst.isPredicated) OS << "|M_PREDICATED";
+  if (Inst.isPredicable) OS << "|M_PREDICABLE";
   if (Inst.isConvertibleToThreeAddress) OS << "|M_CONVERTIBLE_TO_3_ADDR";
   if (Inst.isCommutable) OS << "|M_COMMUTABLE";
   if (Inst.isTerminator) OS << "|M_TERMINATOR_FLAG";






More information about the llvm-commits mailing list