diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-09-21 17:56:22 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-09-21 17:56:22 +0000 |
commit | 5549d496ddca4913a3bb8c7c49c0c4823166ce17 (patch) | |
tree | ac0e9126fac5f108ef91e363dd8d5b4b813c6831 /llvm/lib/CodeGen/SelectionDAG | |
parent | 802527adadb603dc50bdd293175a61b0a88f4c4b (diff) | |
download | bcm5719-llvm-5549d496ddca4913a3bb8c7c49c0c4823166ce17.tar.gz bcm5719-llvm-5549d496ddca4913a3bb8c7c49c0c4823166ce17.zip |
Define the TargetLowering::getTgtMemIntrinsic hook for ARM so that NEON load
and store intrinsics are represented with MemIntrinsicSDNodes.
llvm-svn: 114454
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 66323999cc9..7370a0bb27e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -3031,7 +3031,8 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I, bool IsTgtIntrinsic = TLI.getTgtMemIntrinsic(Info, I, Intrinsic); // Add the intrinsic ID as an integer operand if it's not a target intrinsic. - if (!IsTgtIntrinsic) + if (!IsTgtIntrinsic || Info.opc == ISD::INTRINSIC_VOID || + Info.opc == ISD::INTRINSIC_W_CHAIN) Ops.push_back(DAG.getConstant(Intrinsic, TLI.getPointerTy())); // Add all operands of the call to the operand list. |