GlobalAddress -> TargetGlobalAddress; ExternalSymbol -> TargetExternalSymbol

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-01-12 07:54:57 +00:00
parent 138d322e96
commit bb48e33bcd

View File

@ -2023,12 +2023,24 @@ public:
OS << " SDOperand Tmp" << utostr(ResNo)
<< " = CurDAG->getTargetConstant(Tmp"
<< ResNo << "C, MVT::" << getEnumName(N->getTypeNum(0)) << ");\n";
} 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() == "tglobaladdr") {
OS << " SDOperand Tmp" << ResNo << " = " << Val << ";\n";
} else if (!N->isLeaf() && N->getOperator()->getName() == "tconstpool") {
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();