llvm.org GIT mirror llvm / 9bf2d3e
When failing selection for an intrinsic, print this: Cannot yet select: intrinsic %llvm.ppc.altivec.lvx instead of this: Cannot yet select: 0x9b047e0: v4i32,ch = INTRINSIC 0x9b04540:1, 0x9b04710, 0x9b04790, 0x9b04540 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27110 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 16 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
31133113 // the case where nothing handles a pattern.
31143114 if (mightNotMatch)
31153115 OS << " std::cerr << \"Cannot yet select: \";\n"
3116 << " N.Val->dump(CurDAG);\n"
3116 << " if (N.getOpcode() != ISD::INTRINSIC) {\n"
3117 << " N.Val->dump(CurDAG);\n"
3118 << " } else {\n"
3119 << " unsigned iid = cast(N.getOperand("
3120 "N.getOperand(0).getValueType() == MVT::Other))->getValue();\n"
3121 << " std::cerr << \"intrinsic %\"<< "
3122 "Intrinsic::getName((Intrinsic::ID)iid);\n"
3123 << " }\n"
31173124 << " std::cerr << '\\n';\n"
31183125 << " abort();\n";
31193126
32743281
32753282 OS << " } // end of big switch.\n\n"
32763283 << " std::cerr << \"Cannot yet select: \";\n"
3277 << " N.Val->dump(CurDAG);\n"
3284 << " if (N.getOpcode() != ISD::INTRINSIC) {\n"
3285 << " N.Val->dump(CurDAG);\n"
3286 << " } else {\n"
3287 << " unsigned iid = cast(N.getOperand("
3288 "N.getOperand(0).getValueType() == MVT::Other))->getValue();\n"
3289 << " std::cerr << \"intrinsic %\"<< "
3290 "Intrinsic::getName((Intrinsic::ID)iid);\n"
3291 << " }\n"
32783292 << " std::cerr << '\\n';\n"
32793293 << " abort();\n"
32803294 << "}\n";