[llvm-commits] CVS: llvm/utils/TableGen/InstrSelectorEmitter.cpp InstrSelectorEmitter.h

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 11 23:29:00 PDT 2003


Changes in directory llvm/utils/TableGen:

InstrSelectorEmitter.cpp updated: 1.28 -> 1.29
InstrSelectorEmitter.h updated: 1.18 -> 1.19

---
Log message:

Rename DNVT_bool to DNVT_i1 to be consistent with type system


---
Diffs of the changes:

Index: llvm/utils/TableGen/InstrSelectorEmitter.cpp
diff -u llvm/utils/TableGen/InstrSelectorEmitter.cpp:1.28 llvm/utils/TableGen/InstrSelectorEmitter.cpp:1.29
--- llvm/utils/TableGen/InstrSelectorEmitter.cpp:1.28	Mon Aug 11 23:12:42 2003
+++ llvm/utils/TableGen/InstrSelectorEmitter.cpp	Mon Aug 11 23:28:03 2003
@@ -19,7 +19,7 @@
   if (Name == "DNVT_arg0") return Arg0;
   if (Name == "DNVT_arg1") return Arg1;
   if (Name == "DNVT_ptr" ) return Ptr;
-  if (Name == "DNVT_bool") return Bool;
+  if (Name == "DNVT_i8"  ) return I8;
   throw "Unknown DagNodeValType '" + Name + "'!";
 }
 
@@ -276,7 +276,7 @@
     AnyUnset |= InferTypes(Child, MadeChange);
 
     switch (NT.ArgTypes[i]) {
-    case NodeType::Bool:
+    case NodeType::I8:
       MadeChange |= Child->updateNodeType(MVT::i1, TheRecord->getName());
       break;
     case NodeType::Arg0:
@@ -304,7 +304,7 @@
   case NodeType::Void:
     MadeChange |= N->updateNodeType(MVT::isVoid, TheRecord->getName());
     break;
-  case NodeType::Bool:
+  case NodeType::I8:
     MadeChange |= N->updateNodeType(MVT::i1, TheRecord->getName());
     break;
   case NodeType::Arg0:


Index: llvm/utils/TableGen/InstrSelectorEmitter.h
diff -u llvm/utils/TableGen/InstrSelectorEmitter.h:1.18 llvm/utils/TableGen/InstrSelectorEmitter.h:1.19
--- llvm/utils/TableGen/InstrSelectorEmitter.h:1.18	Mon Aug 11 23:12:42 2003
+++ llvm/utils/TableGen/InstrSelectorEmitter.h	Mon Aug 11 23:28:03 2003
@@ -25,7 +25,7 @@
     Arg0,           // Value matches the type of Arg0
     Arg1,           // Value matches the type of Arg1
     Ptr,            // Tree node is the type of the target pointer
-    Bool,           // Always bool
+    I8,             // Always bool
     Void,           // Tree node always returns void
   };
 





More information about the llvm-commits mailing list