Changes in directory llvm/utils/TableGen:

DAGISelEmitter.cpp updated: 1.74 -> 1.75
---
Log message:

teach tblgen to be smart enough to handle tglobaladdr nodes


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

 DAGISelEmitter.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.74 
llvm/utils/TableGen/DAGISelEmitter.cpp:1.75
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.74 Wed Nov 16 17:14:54 2005
+++ llvm/utils/TableGen/DAGISelEmitter.cpp      Thu Nov 17 01:39:45 2005
@@ -1668,6 +1668,8 @@
       OS << ResNo << "C = cast<ConstantSDNode>(" << Val << ")->getValue();\n";
       OS << "      SDOperand Tmp" << ResNo << " = 
CurDAG->getTargetConstant(Tmp"
          << ResNo << "C, MVT::" << getEnumName(N->getType()) << ");\n";
+    } else if (!N->isLeaf() && N->getOperator()->getName() == "tglobaladdr") {
+      OS << "      SDOperand Tmp" << ResNo << " = " << Val << ";\n";
     } else {
       OS << "      SDOperand Tmp" << ResNo << " = Select(" << Val << ");\n";
     }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to