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

Evan Cheng evan.cheng at apple.com
Tue May 2 19:08:45 PDT 2006



Changes in directory llvm/utils/TableGen:

InstrInfoEmitter.cpp updated: 1.39 -> 1.40
---
Log message:

Set isStore of instructions with ISD::TRUNCSTORE root node.


---
Diffs of the changes:  (+5 -3)

 InstrInfoEmitter.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.39 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.40
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.39	Mon May  1 18:46:16 2006
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Tue May  2 21:08:34 2006
@@ -201,9 +201,11 @@
       DefInit *OpDef = dynamic_cast<DefInit*>(Dag->getOperator());
       if (OpDef) {
         Record *Operator = OpDef->getDef();
-        if (Operator->isSubClassOf("SDNode") &&
-            Operator->getValueAsString("Opcode") == "ISD::STORE")
-          isStore = true;
+        if (Operator->isSubClassOf("SDNode")) {
+          const std::string Opcode = Operator->getValueAsString("Opcode");
+          if (Opcode == "ISD::STORE" || Opcode == "ISD::TRUNCSTORE")
+            isStore = true;
+        }
       }
     }
   }






More information about the llvm-commits mailing list