diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2018-12-21 21:00:32 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2018-12-21 21:00:32 +0000 |
| commit | 4eb2cac7f8a6760bc77c844fadba159ac2f22fcc (patch) | |
| tree | 2ebdd7aacf20ca3d47c064efe8379a2592f692bd /lib/CodeGen/CodeGenModule.h | |
| parent | 0a9d6b3eca7b8695cf8162aa3c4e70a206a53786 (diff) | |
| download | clang-4eb2cac7f8a6760bc77c844fadba159ac2f22fcc.tar.gz | |
Convert some ObjC retain/release msgSends to runtime calls.
It is faster to directly call the ObjC runtime for methods such as retain/release instead of sending a message to those functions.
Differential Revision: https://reviews.llvm.org/D55869
Reviewed By: rjmccall
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index f0d72af3ad..75679d11c1 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -138,6 +138,10 @@ struct ObjCEntrypoints { /// id objc_autorelease(id); llvm::Constant *objc_autorelease; + /// id objc_autorelease(id); + /// Note this is the runtime method not the intrinsic. + llvm::Constant *objc_autoreleaseRuntimeFunction; + /// id objc_autoreleaseReturnValue(id); llvm::Constant *objc_autoreleaseReturnValue; @@ -162,6 +166,10 @@ struct ObjCEntrypoints { /// id objc_retain(id); llvm::Constant *objc_retain; + /// id objc_retain(id); + /// Note this is the runtime method not the intrinsic. + llvm::Constant *objc_retainRuntimeFunction; + /// id objc_retainAutorelease(id); llvm::Constant *objc_retainAutorelease; @@ -177,6 +185,10 @@ struct ObjCEntrypoints { /// void objc_release(id); llvm::Constant *objc_release; + /// void objc_release(id); + /// Note this is the runtime method not the intrinsic. + llvm::Constant *objc_releaseRuntimeFunction; + /// void objc_storeStrong(id*, id); llvm::Constant *objc_storeStrong; |
