[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 5 10:55:34 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.46 -> 1.47
---
Log message:
When hitting an unsupported intrinsic, actually print it
Lower debug info to noops.
---
Diffs of the changes: (+10 -0)
SelectionDAGISel.cpp | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.46 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.47
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.46 Tue May 3 12:19:29 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Thu May 5 12:55:17 2005
@@ -683,6 +683,7 @@
default:
// FIXME: IMPLEMENT THESE.
// readport, writeport, readio, writeio
+ std::cerr << I;
assert(0 && "This intrinsic is not implemented yet!");
return;
case Intrinsic::setjmp: RenameFn = "setjmp"; break;
@@ -691,6 +692,15 @@
case Intrinsic::memset: visitMemIntrinsic(I, ISD::MEMSET); return;
case Intrinsic::memmove: visitMemIntrinsic(I, ISD::MEMMOVE); return;
+ case Intrinsic::dbg_stoppoint:
+ case Intrinsic::dbg_region_start:
+ case Intrinsic::dbg_region_end:
+ case Intrinsic::dbg_func_start:
+ case Intrinsic::dbg_declare:
+ if (I.getType() != Type::VoidTy)
+ setValue(&I, DAG.getNode(ISD::UNDEF, TLI.getValueType(I.getType())));
+ return;
+
case Intrinsic::isunordered:
setValue(&I, DAG.getSetCC(ISD::SETUO, MVT::i1,getValue(I.getOperand(1)),
getValue(I.getOperand(2))));
More information about the llvm-commits
mailing list