[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jan 11 23:55:09 PST 2006
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.131 -> 1.132
---
Log message:
GlobalAddress -> TargetGlobalAddress; ExternalSymbol -> TargetExternalSymbol
---
Diffs of the changes: (+14 -2)
DAGISelEmitter.cpp | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.131 llvm/utils/TableGen/DAGISelEmitter.cpp:1.132
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.131 Wed Jan 11 16:16:13 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Thu Jan 12 01:54:57 2006
@@ -2023,12 +2023,24 @@
OS << " SDOperand Tmp" << utostr(ResNo)
<< " = CurDAG->getTargetConstant(Tmp"
<< ResNo << "C, MVT::" << getEnumName(N->getTypeNum(0)) << ");\n";
- } else if (!N->isLeaf() && N->getOperator()->getName() == "tglobaladdr") {
+ } else if (!N->isLeaf() && N->getOperator()->getName() == "globaladdr") {
+ OS << " SDOperand Tmp" << ResNo
+ << " = CurDAG->getTargetGlobalAddress(cast<GlobalAddressSDNode>("
+ << Val << ")->getGlobal(), MVT::" << getEnumName(N->getTypeNum(0))
+ << ");\n";
+ } else if (!N->isLeaf() && N->getOperator()->getName() == "externalsym") {
+ OS << " SDOperand Tmp" << ResNo
+ << " = CurDAG->getTargetExternalSymbol(cast<ExternalSymbolSDNode>("
+ << Val << ")->getSymbol(), MVT::" << getEnumName(N->getTypeNum(0))
+ << ");\n";
+ } else if (!N->isLeaf() && N->getOperator()->getName() == "texternalsym"){
OS << " SDOperand Tmp" << ResNo << " = " << Val << ";\n";
- } else if (!N->isLeaf() && N->getOperator()->getName() == "tconstpool") {
+ } else if (!N->isLeaf() && N->getOperator()->getName() == "tglobaladdr") {
OS << " SDOperand Tmp" << ResNo << " = " << Val << ";\n";
} else if (!N->isLeaf() && N->getOperator()->getName() == "texternalsym"){
OS << " SDOperand Tmp" << ResNo << " = " << Val << ";\n";
+ } else if (!N->isLeaf() && N->getOperator()->getName() == "tconstpool") {
+ OS << " SDOperand Tmp" << ResNo << " = " << Val << ";\n";
} else if (N->isLeaf() && (CP = NodeGetComplexPattern(N, ISE))) {
std::string Fn = CP->getSelectFunc();
NumRes = CP->getNumOperands();
More information about the llvm-commits
mailing list