Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.338 -> 1.339 --- Log message: Allow targets to custom lower their own intrinsics if desired. --- Diffs of the changes: (+7 -0) LegalizeDAG.cpp | 7 +++++++ 1 files changed, 7 insertions(+) Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.338 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.339 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.338 Fri Mar 24 12:45:20 2006 +++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sun Mar 26 03:12:51 2006 @@ -558,6 +558,13 @@ for (unsigned i = 0, e = Node->getNumOperands(); i != e; ++i) Ops.push_back(LegalizeOp(Node->getOperand(i))); Result = DAG.UpdateNodeOperands(Result, Ops); + + // Allow the target to custom lower its intrinsics if it wants to. + if (TLI.getOperationAction(ISD::INTRINSIC, MVT::Other) == + TargetLowering::Custom) { + Tmp3 = TLI.LowerOperation(Result, DAG); + if (Tmp3.Val) Result = Tmp3; + } break; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits