llvm.org GIT mirror llvm / b277cbc
Duraid pointed out that it is impolite to emit PPC:: into the IA64 backend git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23780 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
17611761 }
17621762
17631763 void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
1764 std::string InstNS = Target.inst_begin()->second.Namespace;
1765 if (!InstNS.empty()) InstNS += "::";
1766
17641767 // Emit boilerplate.
17651768 OS << "// The main instruction selector code.\n"
17661769 << "SDOperand SelectCode(SDOperand N) {\n"
17671770 << " if (N.getOpcode() >= ISD::BUILTIN_OP_END &&\n"
1768 << " N.getOpcode() < PPCISD::FIRST_NUMBER)\n"
1771 << " N.getOpcode() < (ISD::BUILTIN_OP_END+" << InstNS
1772 << "INSTRUCTION_LIST_END))\n"
17691773 << " return N; // Already selected.\n\n"
17701774 << " if (!N.Val->hasOneUse()) {\n"
17711775 << " std::map::iterator CGMI = CodeGenMap.find(N);\n"