summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-09-21 17:56:22 +0000
committerBob Wilson <bob.wilson@apple.com>2010-09-21 17:56:22 +0000
commit5549d496ddca4913a3bb8c7c49c0c4823166ce17 (patch)
treeac0e9126fac5f108ef91e363dd8d5b4b813c6831 /llvm/lib/CodeGen
parent802527adadb603dc50bdd293175a61b0a88f4c4b (diff)
downloadbcm5719-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')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp3
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.
OpenPOWER on IntegriCloud