summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2018-12-07 21:28:47 +0000
committerPete Cooper <peter_cooper@apple.com>2018-12-07 21:28:47 +0000
commit782a490dfbf83cbeeb3796913b0fe3b8f161c2b8 (patch)
tree794612c1ec7713214076de6b6404d4947d8d8277 /llvm/lib/CodeGen
parent94b8e2ea4ec9246434181e152558cbc2c1c3c7d8 (diff)
downloadbcm5719-llvm-782a490dfbf83cbeeb3796913b0fe3b8f161c2b8.tar.gz
bcm5719-llvm-782a490dfbf83cbeeb3796913b0fe3b8f161c2b8.zip
Follow-up from r348441 to add the rest of the objc ARC intrinsics.
This adds the other intrinsics used by ARC and codegen's them to their respective runtime methods. llvm-svn: 348646
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index eb36baeef5e..8ca29625626 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -6390,6 +6390,20 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
return "objc_storeStrong";
case Intrinsic::objc_storeWeak:
return "objc_storeWeak";
+ case Intrinsic::objc_unsafeClaimAutoreleasedReturnValue:
+ return "objc_unsafeClaimAutoreleasedReturnValue";
+ case Intrinsic::objc_retainedObject:
+ return "objc_retainedObject";
+ case Intrinsic::objc_unretainedObject:
+ return "objc_unretainedObject";
+ case Intrinsic::objc_unretainedPointer:
+ return "objc_unretainedPointer";
+ case Intrinsic::objc_retain_autorelease:
+ return "objc_retain_autorelease";
+ case Intrinsic::objc_sync_enter:
+ return "objc_sync_enter";
+ case Intrinsic::objc_sync_exit:
+ return "objc_sync_exit";
}
}
OpenPOWER on IntegriCloud