<div dir="ltr">Our bots are happy again. Thanks for the quick fix!</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 20, 2018 at 1:09 PM Pete Cooper <<a href="mailto:peter_cooper@apple.com">peter_cooper@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Should now be fixed by r349782.<div><br></div><div>Thanks,</div><div>Pete<br><div><br><blockquote type="cite"><div>On Dec 20, 2018, at 9:44 AM, Pete Cooper via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>> wrote:</div><br class="gmail-m_-1818141783856073624Apple-interchange-newline"><div><div style="overflow-wrap: break-word;">Sorry Nico.  That shouldn't have happened.<div><br></div><div>The ARC optimizer is removing these calls (see ObjCARCContract.cpp).</div><div><br></div><div>However, its looking for the intrinsic and I missed a case in clang where we are incorrectly emitting the runtime function instead of the intrinsic.  I'll get a fix ready right now.</div><div><br></div><div>Thanks,</div><div>Pete<br><div><br><blockquote type="cite"><div>On Dec 20, 2018, at 9:40 AM, Nico Weber <<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>> wrote:</div><br class="gmail-m_-1818141783856073624Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">We're getting a bunch of linker errors like<br><div><br></div><div><div>Undefined symbols for architecture x86_64:</div><div>  "_clang.arc.use", referenced from:</div><div>      -[RTCVideoCodecInfo initWithName:parameters:] in libbase_objc.a(RTCVideoCodecInfo.o)</div></div><div><br></div><div>after this for some binaries (<a href="https://crbug.com/917047" target="_blank">https://crbug.com/917047</a>). We don't use arc. Any idea how that could happen? Are we holding something wrong?</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 18, 2018 at 3:36 PM Pete Cooper via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Author: pete<br>
Date: Tue Dec 18 12:33:00 2018<br>
New Revision: 349535<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=349535&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=349535&view=rev</a><br>
Log:<br>
Generate objc intrinsics instead of runtime calls as the ARC optimizer now works only on intrinsics<br>
<br>
Differential Revision: <a href="https://reviews.llvm.org/D55802" rel="noreferrer" target="_blank">https://reviews.llvm.org/D55802</a><br>
<br>
Reviewers: rjmccall<br>
<br>
Modified:<br>
    cfe/trunk/lib/CodeGen/CGObjC.cpp<br>
    cfe/trunk/lib/CodeGen/CodeGenModule.h<br>
    cfe/trunk/test/CodeGenObjC/arc-arm.m<br>
    cfe/trunk/test/CodeGenObjC/arc-block-copy-escape.m<br>
    cfe/trunk/test/CodeGenObjC/arc-blocks.m<br>
    cfe/trunk/test/CodeGenObjC/arc-bridged-cast.m<br>
    cfe/trunk/test/CodeGenObjC/arc-exceptions.m<br>
    cfe/trunk/test/CodeGenObjC/arc-foreach.m<br>
    cfe/trunk/test/CodeGenObjC/arc-i386.m<br>
    cfe/trunk/test/CodeGenObjC/arc-linetable-autorelease.m<br>
    cfe/trunk/test/CodeGenObjC/arc-linetable.m<br>
    cfe/trunk/test/CodeGenObjC/arc-literals.m<br>
    cfe/trunk/test/CodeGenObjC/arc-loadweakretained-release.m<br>
    cfe/trunk/test/CodeGenObjC/arc-no-runtime.m<br>
    cfe/trunk/test/CodeGenObjC/arc-precise-lifetime.m<br>
    cfe/trunk/test/CodeGenObjC/arc-property.m<br>
    cfe/trunk/test/CodeGenObjC/arc-related-result-type.m<br>
    cfe/trunk/test/CodeGenObjC/arc-ternary-op.m<br>
    cfe/trunk/test/CodeGenObjC/arc-unbridged-cast.m<br>
    cfe/trunk/test/CodeGenObjC/arc-unopt.m<br>
    cfe/trunk/test/CodeGenObjC/arc-unoptimized-byref-var.m<br>
    cfe/trunk/test/CodeGenObjC/arc-unsafeclaim.m<br>
    cfe/trunk/test/CodeGenObjC/arc-weak-property.m<br>
    cfe/trunk/test/CodeGenObjC/arc-weak.m<br>
    cfe/trunk/test/CodeGenObjC/arc-with-atthrow.m<br>
    cfe/trunk/test/CodeGenObjC/arc.ll<br>
    cfe/trunk/test/CodeGenObjC/arc.m<br>
    cfe/trunk/test/CodeGenObjC/autorelease.m<br>
    cfe/trunk/test/CodeGenObjC/debug-info-block-line.m<br>
    cfe/trunk/test/CodeGenObjC/empty-collection-literals.m<br>
    cfe/trunk/test/CodeGenObjC/fragile-arc.m<br>
    cfe/trunk/test/CodeGenObjC/mrc-weak.m<br>
    cfe/trunk/test/CodeGenObjC/noescape.m<br>
    cfe/trunk/test/CodeGenObjC/ns_consume_null_check.m<br>
    cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m<br>
    cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m<br>
    cfe/trunk/test/CodeGenObjC/objc-arc-container-subscripting.m<br>
    cfe/trunk/test/CodeGenObjC/os_log.m<br>
    cfe/trunk/test/CodeGenObjC/parameterized_classes.m<br>
    cfe/trunk/test/CodeGenObjC/stret-lifetime.m<br>
    cfe/trunk/test/CodeGenObjC/strong-in-c-struct.m<br>
    cfe/trunk/test/CodeGenObjC/weak-in-c-struct.m<br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-attrs.mm/" rel="noreferrer" target="_blank">arc-attrs.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-blocks.mm/" rel="noreferrer" target="_blank">arc-blocks.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-constexpr.mm/" rel="noreferrer" target="_blank">arc-constexpr.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-cxx11-init-list.mm/" rel="noreferrer" target="_blank">arc-cxx11-init-list.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-exceptions.mm/" rel="noreferrer" target="_blank">arc-exceptions.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-forwarded-lambda-call.mm/" rel="noreferrer" target="_blank">arc-forwarded-lambda-call.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-globals.mm/" rel="noreferrer" target="_blank">arc-globals.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-indirect.mm/" rel="noreferrer" target="_blank">arc-indirect.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-move.mm/" rel="noreferrer" target="_blank">arc-move.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-new-delete.mm/" rel="noreferrer" target="_blank">arc-new-delete.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-pseudo-destructors.mm/" rel="noreferrer" target="_blank">arc-pseudo-destructors.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-references.mm/" rel="noreferrer" target="_blank">arc-references.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-returns-inner-reference-ptr.mm/" rel="noreferrer" target="_blank">arc-returns-inner-reference-ptr.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-special-member-functions.mm/" rel="noreferrer" target="_blank">arc-special-member-functions.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-weak.mm/" rel="noreferrer" target="_blank">arc-weak.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://arc.mm/" rel="noreferrer" target="_blank">arc.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://block-nested-in-lambda.mm/" rel="noreferrer" target="_blank">block-nested-in-lambda.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://destroy.mm/" rel="noreferrer" target="_blank">destroy.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://lambda-expressions.mm/" rel="noreferrer" target="_blank">lambda-expressions.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://literals.mm/" rel="noreferrer" target="_blank">literals.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://microsoft-abi-arc-param-order.mm/" rel="noreferrer" target="_blank">microsoft-abi-arc-param-order.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://mrc-weak.mm/" rel="noreferrer" target="_blank">mrc-weak.mm</a><br>
    cfe/trunk/test/CodeGenObjCXX/<a href="http://objc-weak.mm/" rel="noreferrer" target="_blank">objc-weak.mm</a><br>
    cfe/trunk/test/SemaObjC/arc-objc-lifetime-conflict.m<br>
<br>
Modified: cfe/trunk/lib/CodeGen/CGObjC.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)<br>
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Tue Dec 18 12:33:00 2018<br>
@@ -1873,12 +1873,8 @@ void CodeGenFunction::EmitARCIntrinsicUs<br>
   EmitNounwindRuntimeCall(fn, values);<br>
 }<br>
<br>
-<br>
-static llvm::Constant *createARCRuntimeFunction(CodeGenModule &CGM,<br>
-                                                llvm::FunctionType *FTy,<br>
-                                                StringRef Name) {<br>
-  llvm::Constant *RTF = CGM.CreateRuntimeFunction(FTy, Name);<br>
-<br>
+static void setARCRuntimeFunctionLinkage(CodeGenModule &CGM,<br>
+                                         llvm::Constant *RTF) {<br>
   if (auto *F = dyn_cast<llvm::Function>(RTF)) {<br>
     // If the target runtime doesn't naturally support ARC, emit weak<br>
     // references to the runtime support library.  We don't really<br>
@@ -1886,14 +1882,8 @@ static llvm::Constant *createARCRuntimeF<br>
     if (!CGM.getLangOpts().ObjCRuntime.hasNativeARC() &&<br>
         !CGM.getTriple().isOSBinFormatCOFF()) {<br>
       F->setLinkage(llvm::Function::ExternalWeakLinkage);<br>
-    } else if (Name == "objc_retain" || Name  == "objc_release") {<br>
-      // If we have Native ARC, set nonlazybind attribute for these APIs for<br>
-      // performance.<br>
-      F->addFnAttr(llvm::Attribute::NonLazyBind);<br>
     }<br>
   }<br>
-<br>
-  return RTF;<br>
 }<br>
<br>
 /// Perform an operation having the signature<br>
@@ -1903,15 +1893,14 @@ static llvm::Value *emitARCValueOperatio<br>
                                           llvm::Value *value,<br>
                                           llvm::Type *returnType,<br>
                                           llvm::Constant *&fn,<br>
-                                          StringRef fnName,<br>
+                                          llvm::Intrinsic::ID IntID,<br>
                                           bool isTailCall = false) {<br>
   if (isa<llvm::ConstantPointerNull>(value))<br>
     return value;<br>
<br>
   if (!fn) {<br>
-    llvm::FunctionType *fnType =<br>
-      llvm::FunctionType::get(CGF.Int8PtrTy, CGF.Int8PtrTy, false);<br>
-    fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName);<br>
+    fn = CGF.CGM.getIntrinsic(IntID);<br>
+    setARCRuntimeFunctionLinkage(CGF.CGM, fn);<br>
   }<br>
<br>
   // Cast the argument to 'id'.<br>
@@ -1932,11 +1921,10 @@ static llvm::Value *emitARCValueOperatio<br>
 static llvm::Value *emitARCLoadOperation(CodeGenFunction &CGF,<br>
                                          Address addr,<br>
                                          llvm::Constant *&fn,<br>
-                                         StringRef fnName) {<br>
+                                         llvm::Intrinsic::ID IntID) {<br>
   if (!fn) {<br>
-    llvm::FunctionType *fnType =<br>
-      llvm::FunctionType::get(CGF.Int8PtrTy, CGF.Int8PtrPtrTy, false);<br>
-    fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName);<br>
+    fn = CGF.CGM.getIntrinsic(IntID);<br>
+    setARCRuntimeFunctionLinkage(CGF.CGM, fn);<br>
   }<br>
<br>
   // Cast the argument to 'id*'.<br>
@@ -1959,16 +1947,13 @@ static llvm::Value *emitARCStoreOperatio<br>
                                           Address addr,<br>
                                           llvm::Value *value,<br>
                                           llvm::Constant *&fn,<br>
-                                          StringRef fnName,<br>
+                                          llvm::Intrinsic::ID IntID,<br>
                                           bool ignored) {<br>
   assert(addr.getElementType() == value->getType());<br>
<br>
   if (!fn) {<br>
-    llvm::Type *argTypes[] = { CGF.Int8PtrPtrTy, CGF.Int8PtrTy };<br>
-<br>
-    llvm::FunctionType *fnType<br>
-      = llvm::FunctionType::get(CGF.Int8PtrTy, argTypes, false);<br>
-    fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName);<br>
+    fn = CGF.CGM.getIntrinsic(IntID);<br>
+    setARCRuntimeFunctionLinkage(CGF.CGM, fn);<br>
   }<br>
<br>
   llvm::Type *origType = value->getType();<br>
@@ -1990,15 +1975,12 @@ static void emitARCCopyOperation(CodeGen<br>
                                  Address dst,<br>
                                  Address src,<br>
                                  llvm::Constant *&fn,<br>
-                                 StringRef fnName) {<br>
+                                 llvm::Intrinsic::ID IntID) {<br>
   assert(dst.getType() == src.getType());<br>
<br>
   if (!fn) {<br>
-    llvm::Type *argTypes[] = { CGF.Int8PtrPtrTy, CGF.Int8PtrPtrTy };<br>
-<br>
-    llvm::FunctionType *fnType<br>
-      = llvm::FunctionType::get(CGF.Builder.getVoidTy(), argTypes, false);<br>
-    fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName);<br>
+    fn = CGF.CGM.getIntrinsic(IntID);<br>
+    setARCRuntimeFunctionLinkage(CGF.CGM, fn);<br>
   }<br>
<br>
   llvm::Value *args[] = {<br>
@@ -2008,6 +1990,34 @@ static void emitARCCopyOperation(CodeGen<br>
   CGF.EmitNounwindRuntimeCall(fn, args);<br>
 }<br>
<br>
+/// Perform an operation having the signature<br>
+///   i8* (i8*)<br>
+/// where a null input causes a no-op and returns null.<br>
+static llvm::Value *emitObjCValueOperation(CodeGenFunction &CGF,<br>
+                                           llvm::Value *value,<br>
+                                           llvm::Type *returnType,<br>
+                                           llvm::Constant *&fn,<br>
+                                           StringRef fnName) {<br>
+  if (isa<llvm::ConstantPointerNull>(value))<br>
+    return value;<br>
+<br>
+  if (!fn) {<br>
+    llvm::FunctionType *fnType =<br>
+      llvm::FunctionType::get(CGF.Int8PtrTy, CGF.Int8PtrTy, false);<br>
+    fn = CGF.CGM.CreateRuntimeFunction(fnType, fnName);<br>
+  }<br>
+<br>
+  // Cast the argument to 'id'.<br>
+  llvm::Type *origType = returnType ? returnType : value->getType();<br>
+  value = CGF.Builder.CreateBitCast(value, CGF.Int8PtrTy);<br>
+<br>
+  // Call the function.<br>
+  llvm::CallInst *call = CGF.EmitNounwindRuntimeCall(fn, value);<br>
+<br>
+  // Cast the result back to the original type.<br>
+  return CGF.Builder.CreateBitCast(call, origType);<br>
+}<br>
+<br>
 /// Produce the code to do a retain.  Based on the type, calls one of:<br>
 ///   call i8* \@objc_retain(i8* %value)<br>
 ///   call i8* \@objc_retainBlock(i8* %value)<br>
@@ -2023,7 +2033,7 @@ llvm::Value *CodeGenFunction::EmitARCRet<br>
 llvm::Value *CodeGenFunction::EmitARCRetainNonBlock(llvm::Value *value) {<br>
   return emitARCValueOperation(*this, value, nullptr,<br>
                                CGM.getObjCEntrypoints().objc_retain,<br>
-                               "objc_retain");<br>
+                               llvm::Intrinsic::objc_retain);<br>
 }<br>
<br>
 /// Retain the given block, with _Block_copy semantics.<br>
@@ -2037,7 +2047,7 @@ llvm::Value *CodeGenFunction::EmitARCRet<br>
   llvm::Value *result<br>
     = emitARCValueOperation(*this, value, nullptr,<br>
                             CGM.getObjCEntrypoints().objc_retainBlock,<br>
-                            "objc_retainBlock");<br>
+                            llvm::Intrinsic::objc_retainBlock);<br>
<br>
   // If the copy isn't mandatory, add !clang.arc.copy_on_escape to<br>
   // tell the optimizer that it doesn't need to do this copy if the<br>
@@ -2107,7 +2117,7 @@ CodeGenFunction::EmitARCRetainAutoreleas<br>
   emitAutoreleasedReturnValueMarker(*this);<br>
   return emitARCValueOperation(*this, value, nullptr,<br>
               CGM.getObjCEntrypoints().objc_retainAutoreleasedReturnValue,<br>
-                               "objc_retainAutoreleasedReturnValue");<br>
+                           llvm::Intrinsic::objc_retainAutoreleasedReturnValue);<br>
 }<br>
<br>
 /// Claim a possibly-autoreleased return value at +0.  This is only<br>
@@ -2122,7 +2132,7 @@ CodeGenFunction::EmitARCUnsafeClaimAutor<br>
   emitAutoreleasedReturnValueMarker(*this);<br>
   return emitARCValueOperation(*this, value, nullptr,<br>
               CGM.getObjCEntrypoints().objc_unsafeClaimAutoreleasedReturnValue,<br>
-                               "objc_unsafeClaimAutoreleasedReturnValue");<br>
+                     llvm::Intrinsic::objc_unsafeClaimAutoreleasedReturnValue);<br>
 }<br>
<br>
 /// Release the given object.<br>
@@ -2133,9 +2143,8 @@ void CodeGenFunction::EmitARCRelease(llv<br>
<br>
   llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_release;<br>
   if (!fn) {<br>
-    llvm::FunctionType *fnType =<br>
-      llvm::FunctionType::get(Builder.getVoidTy(), Int8PtrTy, false);<br>
-    fn = createARCRuntimeFunction(CGM, fnType, "objc_release");<br>
+    fn = CGM.getIntrinsic(llvm::Intrinsic::objc_release);<br>
+    setARCRuntimeFunctionLinkage(CGM, fn);<br>
   }<br>
<br>
   // Cast the argument to 'id'.<br>
@@ -2180,10 +2189,8 @@ llvm::Value *CodeGenFunction::EmitARCSto<br>
<br>
   llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_storeStrong;<br>
   if (!fn) {<br>
-    llvm::Type *argTypes[] = { Int8PtrPtrTy, Int8PtrTy };<br>
-    llvm::FunctionType *fnType<br>
-      = llvm::FunctionType::get(Builder.getVoidTy(), argTypes, false);<br>
-    fn = createARCRuntimeFunction(CGM, fnType, "objc_storeStrong");<br>
+    fn = CGM.getIntrinsic(llvm::Intrinsic::objc_storeStrong);<br>
+    setARCRuntimeFunctionLinkage(CGM, fn);<br>
   }<br>
<br>
   llvm::Value *args[] = {<br>
@@ -2237,7 +2244,7 @@ llvm::Value *CodeGenFunction::EmitARCSto<br>
 llvm::Value *CodeGenFunction::EmitARCAutorelease(llvm::Value *value) {<br>
   return emitARCValueOperation(*this, value, nullptr,<br>
                                CGM.getObjCEntrypoints().objc_autorelease,<br>
-                               "objc_autorelease");<br>
+                               llvm::Intrinsic::objc_autorelease);<br>
 }<br>
<br>
 /// Autorelease the given object.<br>
@@ -2246,7 +2253,7 @@ llvm::Value *<br>
 CodeGenFunction::EmitARCAutoreleaseReturnValue(llvm::Value *value) {<br>
   return emitARCValueOperation(*this, value, nullptr,<br>
                             CGM.getObjCEntrypoints().objc_autoreleaseReturnValue,<br>
-                               "objc_autoreleaseReturnValue",<br>
+                               llvm::Intrinsic::objc_autoreleaseReturnValue,<br>
                                /*isTailCall*/ true);<br>
 }<br>
<br>
@@ -2256,7 +2263,7 @@ llvm::Value *<br>
 CodeGenFunction::EmitARCRetainAutoreleaseReturnValue(llvm::Value *value) {<br>
   return emitARCValueOperation(*this, value, nullptr,<br>
                      CGM.getObjCEntrypoints().objc_retainAutoreleaseReturnValue,<br>
-                               "objc_retainAutoreleaseReturnValue",<br>
+                             llvm::Intrinsic::objc_retainAutoreleaseReturnValue,<br>
                                /*isTailCall*/ true);<br>
 }<br>
<br>
@@ -2285,7 +2292,7 @@ llvm::Value *<br>
 CodeGenFunction::EmitARCRetainAutoreleaseNonBlock(llvm::Value *value) {<br>
   return emitARCValueOperation(*this, value, nullptr,<br>
                                CGM.getObjCEntrypoints().objc_retainAutorelease,<br>
-                               "objc_retainAutorelease");<br>
+                               llvm::Intrinsic::objc_retainAutorelease);<br>
 }<br>
<br>
 /// i8* \@objc_loadWeak(i8** %addr)<br>
@@ -2293,14 +2300,14 @@ CodeGenFunction::EmitARCRetainAutoreleas<br>
 llvm::Value *CodeGenFunction::EmitARCLoadWeak(Address addr) {<br>
   return emitARCLoadOperation(*this, addr,<br>
                               CGM.getObjCEntrypoints().objc_loadWeak,<br>
-                              "objc_loadWeak");<br>
+                              llvm::Intrinsic::objc_loadWeak);<br>
 }<br>
<br>
 /// i8* \@objc_loadWeakRetained(i8** %addr)<br>
 llvm::Value *CodeGenFunction::EmitARCLoadWeakRetained(Address addr) {<br>
   return emitARCLoadOperation(*this, addr,<br>
                               CGM.getObjCEntrypoints().objc_loadWeakRetained,<br>
-                              "objc_loadWeakRetained");<br>
+                              llvm::Intrinsic::objc_loadWeakRetained);<br>
 }<br>
<br>
 /// i8* \@objc_storeWeak(i8** %addr, i8* %value)<br>
@@ -2310,7 +2317,7 @@ llvm::Value *CodeGenFunction::EmitARCSto<br>
                                                bool ignored) {<br>
   return emitARCStoreOperation(*this, addr, value,<br>
                                CGM.getObjCEntrypoints().objc_storeWeak,<br>
-                               "objc_storeWeak", ignored);<br>
+                               llvm::Intrinsic::objc_storeWeak, ignored);<br>
 }<br>
<br>
 /// i8* \@objc_initWeak(i8** %addr, i8* %value)<br>
@@ -2330,7 +2337,7 @@ void CodeGenFunction::EmitARCInitWeak(Ad<br>
<br>
   emitARCStoreOperation(*this, addr, value,<br>
                         CGM.getObjCEntrypoints().objc_initWeak,<br>
-                        "objc_initWeak", /*ignored*/ true);<br>
+                        llvm::Intrinsic::objc_initWeak, /*ignored*/ true);<br>
 }<br>
<br>
 /// void \@objc_destroyWeak(i8** %addr)<br>
@@ -2338,9 +2345,8 @@ void CodeGenFunction::EmitARCInitWeak(Ad<br>
 void CodeGenFunction::EmitARCDestroyWeak(Address addr) {<br>
   llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_destroyWeak;<br>
   if (!fn) {<br>
-    llvm::FunctionType *fnType =<br>
-      llvm::FunctionType::get(Builder.getVoidTy(), Int8PtrPtrTy, false);<br>
-    fn = createARCRuntimeFunction(CGM, fnType, "objc_destroyWeak");<br>
+    fn = CGM.getIntrinsic(llvm::Intrinsic::objc_destroyWeak);<br>
+    setARCRuntimeFunctionLinkage(CGM, fn);<br>
   }<br>
<br>
   // Cast the argument to 'id*'.<br>
@@ -2355,7 +2361,7 @@ void CodeGenFunction::EmitARCDestroyWeak<br>
 void CodeGenFunction::EmitARCMoveWeak(Address dst, Address src) {<br>
   emitARCCopyOperation(*this, dst, src,<br>
                        CGM.getObjCEntrypoints().objc_moveWeak,<br>
-                       "objc_moveWeak");<br>
+                       llvm::Intrinsic::objc_moveWeak);<br>
 }<br>
<br>
 /// void \@objc_copyWeak(i8** %dest, i8** %src)<br>
@@ -2364,7 +2370,7 @@ void CodeGenFunction::EmitARCMoveWeak(Ad<br>
 void CodeGenFunction::EmitARCCopyWeak(Address dst, Address src) {<br>
   emitARCCopyOperation(*this, dst, src,<br>
                        CGM.getObjCEntrypoints().objc_copyWeak,<br>
-                       "objc_copyWeak");<br>
+                       llvm::Intrinsic::objc_copyWeak);<br>
 }<br>
<br>
 void CodeGenFunction::emitARCCopyAssignWeak(QualType Ty, Address DstAddr,<br>
@@ -2387,9 +2393,8 @@ void CodeGenFunction::emitARCMoveAssignW<br>
 llvm::Value *CodeGenFunction::EmitObjCAutoreleasePoolPush() {<br>
   llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_autoreleasePoolPush;<br>
   if (!fn) {<br>
-    llvm::FunctionType *fnType =<br>
-      llvm::FunctionType::get(Int8PtrTy, false);<br>
-    fn = createARCRuntimeFunction(CGM, fnType, "objc_autoreleasePoolPush");<br>
+    fn = CGM.getIntrinsic(llvm::Intrinsic::objc_autoreleasePoolPush);<br>
+    setARCRuntimeFunctionLinkage(CGM, fn);<br>
   }<br>
<br>
   return EmitNounwindRuntimeCall(fn);<br>
@@ -2400,18 +2405,28 @@ llvm::Value *CodeGenFunction::EmitObjCAu<br>
 void CodeGenFunction::EmitObjCAutoreleasePoolPop(llvm::Value *value) {<br>
   assert(value->getType() == Int8PtrTy);<br>
<br>
-  llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_autoreleasePoolPop;<br>
-  if (!fn) {<br>
-    llvm::FunctionType *fnType =<br>
-      llvm::FunctionType::get(Builder.getVoidTy(), Int8PtrTy, false);<br>
+  if (getInvokeDest()) {<br>
+    // Call the runtime method not the intrinsic if we are handling exceptions<br>
+    llvm::Constant *&fn =<br>
+      CGM.getObjCEntrypoints().objc_autoreleasePoolPopInvoke;<br>
+    if (!fn) {<br>
+      llvm::FunctionType *fnType =<br>
+        llvm::FunctionType::get(Builder.getVoidTy(), Int8PtrTy, false);<br>
+      fn = CGM.CreateRuntimeFunction(fnType, "objc_autoreleasePoolPop");<br>
+      setARCRuntimeFunctionLinkage(CGM, fn);<br>
+    }<br>
<br>
-    // We don't want to use a weak import here; instead we should not<br>
-    // fall into this path.<br>
-    fn = createARCRuntimeFunction(CGM, fnType, "objc_autoreleasePoolPop");<br>
-  }<br>
+    // objc_autoreleasePoolPop can throw.<br>
+    EmitRuntimeCallOrInvoke(fn, value);<br>
+  } else {<br>
+    llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_autoreleasePoolPop;<br>
+    if (!fn) {<br>
+      fn = CGM.getIntrinsic(llvm::Intrinsic::objc_autoreleasePoolPop);<br>
+      setARCRuntimeFunctionLinkage(CGM, fn);<br>
+    }<br>
<br>
-  // objc_autoreleasePoolPop can throw.<br>
-  EmitRuntimeCallOrInvoke(fn, value);<br>
+    EmitRuntimeCall(fn, value);<br>
+  }<br>
 }<br>
<br>
 /// Produce the code to do an MRR version objc_autoreleasepool_push.<br>
@@ -2446,18 +2461,18 @@ llvm::Value *CodeGenFunction::EmitObjCMR<br>
 ///   call i8* \@objc_alloc(i8* %value)<br>
 llvm::Value *CodeGenFunction::EmitObjCAlloc(llvm::Value *value,<br>
                                             llvm::Type *resultType) {<br>
-  return emitARCValueOperation(*this, value, resultType,<br>
-                               CGM.getObjCEntrypoints().objc_alloc,<br>
-                               "objc_alloc");<br>
+  return emitObjCValueOperation(*this, value, resultType,<br>
+                                CGM.getObjCEntrypoints().objc_alloc,<br>
+                                "objc_alloc");<br>
 }<br>
<br>
 /// Allocate the given objc object.<br>
 ///   call i8* \@objc_allocWithZone(i8* %value)<br>
 llvm::Value *CodeGenFunction::EmitObjCAllocWithZone(llvm::Value *value,<br>
                                                     llvm::Type *resultType) {<br>
-  return emitARCValueOperation(*this, value, resultType,<br>
-                               CGM.getObjCEntrypoints().objc_allocWithZone,<br>
-                               "objc_allocWithZone");<br>
+  return emitObjCValueOperation(*this, value, resultType,<br>
+                                CGM.getObjCEntrypoints().objc_allocWithZone,<br>
+                                "objc_allocWithZone");<br>
 }<br>
<br>
 /// Produce the code to do a primitive release.<br>
<br>
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.h?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.h?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/CodeGen/CodeGenModule.h (original)<br>
+++ cfe/trunk/lib/CodeGen/CodeGenModule.h Tue Dec 18 12:33:00 2018<br>
@@ -128,6 +128,10 @@ struct ObjCEntrypoints {<br>
   /// void objc_autoreleasePoolPop(void*);<br>
   llvm::Constant *objc_autoreleasePoolPop;<br>
<br>
+  /// void objc_autoreleasePoolPop(void*);<br>
+  /// Note this method is used when we are using exception handling<br>
+  llvm::Constant *objc_autoreleasePoolPopInvoke;<br>
+<br>
   /// void *objc_autoreleasePoolPush(void);<br>
   llvm::Constant *objc_autoreleasePoolPush;<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-arm.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-arm.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-arm.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-arm.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-arm.m Tue Dec 18 12:33:00 2018<br>
@@ -14,9 +14,9 @@ void test1(void) {<br>
   extern id test1_helper(void);<br>
   // CHECK:      [[T0:%.*]] = call [[CC]]i8* @test1_helper()<br>
   // CHECK-NEXT: call void asm sideeffect "mov\09{{fp, fp|r7, r7}}\09\09// marker for objc_retainAutoreleaseReturnValue"<br>
-  // CHECK-NEXT: [[T1:%.*]] = call [[CC]]i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call [[CC]]i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: store i8* [[T1]],<br>
-  // CHECK-NEXT: call [[CC]]void @objc_storeStrong(<br>
+  // CHECK-NEXT: call [[CC]]void @llvm.objc.storeStrong(<br>
   // CHECK-NEXT: ret void<br>
   id x = test1_helper();<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-block-copy-escape.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-block-copy-escape.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-block-copy-escape.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-block-copy-escape.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-block-copy-escape.m Tue Dec 18 12:33:00 2018<br>
@@ -9,14 +9,14 @@ void use_int(int);<br>
 void test0(int i) {<br>
   block_t block = ^{ use_int(i); };<br>
   // CHECK-LABEL:   define {{.*}}void @test0(<br>
-  // CHECK:     call {{.*}}i8* @objc_retainBlock(i8* {{%.*}}) [[NUW:#[0-9]+]], !clang.arc.copy_on_escape<br>
+  // CHECK:     call {{.*}}i8* @llvm.objc.retainBlock(i8* {{%.*}}) [[NUW:#[0-9]+]], !clang.arc.copy_on_escape<br>
   // CHECK:     ret void<br>
 }<br>
<br>
 void test1(int i) {<br>
   id block = ^{ use_int(i); };<br>
   // CHECK-LABEL:   define {{.*}}void @test1(<br>
-  // CHECK:     call {{.*}}i8* @objc_retainBlock(i8* {{%.*}}) [[NUW]]<br>
+  // CHECK:     call {{.*}}i8* @llvm.objc.retainBlock(i8* {{%.*}}) [[NUW]]<br>
   // CHECK-NOT: !clang.arc.copy_on_escape<br>
   // CHECK:     ret void<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-blocks.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-blocks.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-blocks.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-blocks.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-blocks.m Tue Dec 18 12:33:00 2018<br>
@@ -19,10 +19,10 @@ int (^test1(int x))(void) {<br>
   // CHECK-NEXT: store i32 {{%.*}}, i32* [[X]]<br>
   // CHECK:      [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to i32 ()*<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast i32 ()* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainBlock(i8* [[T1]]) [[NUW:#[0-9]+]]<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T1]]) [[NUW:#[0-9]+]]<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to i32 ()*<br>
   // CHECK-NEXT: [[T4:%.*]] = bitcast i32 ()* [[T3]] to i8*<br>
-  // CHECK-NEXT: [[T5:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[T4]]) [[NUW]]<br>
+  // CHECK-NEXT: [[T5:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[T4]]) [[NUW]]<br>
   // CHECK-NEXT: [[T6:%.*]] = bitcast i8* [[T5]] to i32 ()*<br>
   // CHECK-NEXT: ret i32 ()* [[T6]]<br>
   return ^{ return x; };<br>
@@ -32,19 +32,19 @@ void test2(id x) {<br>
 // CHECK-LABEL:    define void @test2(<br>
 // CHECK:      [[X:%.*]] = alloca i8*,<br>
 // CHECK-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],<br>
-// CHECK-NEXT: [[PARM:%.*]] = call i8* @objc_retain(i8* {{%.*}})<br>
+// CHECK-NEXT: [[PARM:%.*]] = call i8* @llvm.objc.retain(i8* {{%.*}})<br>
 // CHECK-NEXT: store i8* [[PARM]], i8** [[X]]<br>
 // CHECK-NEXT: [[SLOTREL:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
 // CHECK:      [[SLOT:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]],<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
 // CHECK-NEXT: store i8* [[T1]], i8** [[SLOT]],<br>
 // CHECK-NEXT: bitcast<br>
 // CHECK-NEXT: call void @test2_helper(<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[SLOTREL]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
 // CHECK-NEXT: ret void<br>
   extern void test2_helper(id (^)(void));<br>
   test2_helper(^{ return x; });<br>
@@ -56,7 +56,7 @@ void test2(id x) {<br>
 // CHECK-NEXT: [[DST:%.*]] = bitcast i8* [[T0]] to [[BLOCK_T]]*<br>
 // CHECK-NEXT: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[SRC]], i32 0, i32 5<br>
 // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[T0]]<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]]) [[NUW]]<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]]) [[NUW]]<br>
 // CHECK-NEXT: ret void<br>
<br>
<br>
@@ -65,7 +65,7 @@ void test2(id x) {<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[BLOCK_T]]*<br>
 // CHECK-NEXT: [[T2:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[T1]], i32 0, i32 5<br>
 // CHECK-NEXT: [[T3:%.*]] = load i8*, i8** [[T2]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T3]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T3]])<br>
 // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -78,7 +78,7 @@ void test3(void (^sink)(id*)) {<br>
   // CHECK-NEXT: [[STRONG:%.*]] = alloca i8*<br>
   // CHECK-NEXT: [[TEMP:%.*]] = alloca i8*<br>
   // CHECK-NEXT: bitcast void (i8**)* {{%.*}} to i8*<br>
-  // CHECK-NEXT: call i8* @objc_retain(<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retain(<br>
   // CHECK-NEXT: bitcast i8*<br>
   // CHECK-NEXT: store void (i8**)* {{%.*}}, void (i8**)** [[SINK]]<br>
   // CHECK-NEXT: [[STRONGPTR1:%.*]] = bitcast i8** [[STRONG]] to i8*<br>
@@ -95,20 +95,20 @@ void test3(void (^sink)(id*)) {<br>
   // CHECK-NEXT: [[F1:%.*]] = bitcast i8* [[F0]] to void (i8*, i8**)*<br>
   // CHECK-NEXT: call void [[F1]](i8* [[BLOCK]], i8** [[TEMP]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[TEMP]]<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
   // CHECK-NEXT: call void (...) @clang.arc.use(i8* [[V]]) [[NUW]]<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8*, i8** [[STRONG]]<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[STRONG]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T2]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T2]])<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[STRONG]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: [[STRONGPTR2:%.*]] = bitcast i8** [[STRONG]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[STRONGPTR2]])<br>
<br>
   // CHECK-NEXT: load void (i8**)*, void (i8**)** [[SINK]]<br>
   // CHECK-NEXT: bitcast<br>
-  // CHECK-NEXT: call void @objc_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release<br>
   // CHECK-NEXT: ret void<br>
<br>
 }<br>
@@ -127,7 +127,7 @@ void test4(void) {<br>
   // CHECK-NEXT: store i32 838860800, i32* [[T0]]<br>
   // CHECK:      [[SLOT:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[VAR]], i32 0, i32 6<br>
   // CHECK-NEXT: [[T0:%.*]] = call i8* @test4_source()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[SLOT]]<br>
   // CHECK-NEXT: [[SLOT:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[VAR]], i32 0, i32 6<br>
   // 0x42800000 - has signature, copy/dispose helpers, as well as BLOCK_HAS_EXTENDED_LAYOUT<br>
@@ -138,7 +138,7 @@ void test4(void) {<br>
   // CHECK:      [[T0:%.*]] = bitcast [[BYREF_T]]* [[VAR]] to i8*<br>
   // CHECK-NEXT: call void @_Block_object_dispose(i8* [[T0]], i32 8)<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[SLOT]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK: ret void<br>
<br>
   // CHECK-LABEL:    define internal void @__Block_byref_object_copy_(i8*, i8*) #{{[0-9]+}} {<br>
@@ -153,13 +153,13 @@ void test4(void) {<br>
   // CHECK-LABEL:    define internal void @__Block_byref_object_dispose_(i8*) #{{[0-9]+}} {<br>
   // CHECK:      [[T0:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* {{%.*}}, i32 0, i32 6<br>
   // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[T0]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
<br>
   // CHECK-LABEL:    define internal void @__test4_block_invoke<br>
   // CHECK:      [[SLOT:%.*]] = getelementptr inbounds {{.*}}, i32 0, i32 6<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[SLOT]], align 8<br>
   // CHECK-NEXT: store i8* null, i8** [[SLOT]],<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: ret void<br>
<br>
   // CHECK-LABEL:    define linkonce_odr hidden void @__copy_helper_block_8_32r(i8*, i8*) unnamed_addr #{{[0-9]+}} {<br>
@@ -181,9 +181,9 @@ void test5(void) {<br>
   // CHECK-NEXT: [[VARPTR1:%.*]] = bitcast i8** [[VAR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[VARPTR1]])<br>
   // CHECK: [[T0:%.*]] = call i8* @test5_source()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[VAR]],<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   // 0x40800000 - has signature but no copy/dispose, as well as BLOCK_HAS_EXTENDED_LAYOUT<br>
   // CHECK:      store i32 -1073741824, i32*<br>
   // CHECK:      [[CAPTURE:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
@@ -212,9 +212,9 @@ void test6(void) {<br>
   // CHECK-NEXT: store i32 1107296256, i32* [[T0]]<br>
   // CHECK:      [[SLOT:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[VAR]], i32 0, i32 6<br>
   // CHECK-NEXT: [[T0:%.*]] = call i8* @test6_source()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
-  // CHECK-NEXT: call i8* @objc_initWeak(i8** [[SLOT]], i8* [[T1]])<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[SLOT]], i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   // CHECK-NEXT: [[SLOT:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[VAR]], i32 0, i32 6<br>
   // 0x42800000 - has signature, copy/dispose helpers, as well as BLOCK_HAS_EXTENDED_LAYOUT<br>
   // CHECK:      store i32 -1040187392,<br>
@@ -225,7 +225,7 @@ void test6(void) {<br>
   // CHECK:      call void @test6_helper(<br>
   // CHECK:      [[T0:%.*]] = bitcast [[BYREF_T]]* [[VAR]] to i8*<br>
   // CHECK-NEXT: call void @_Block_object_dispose(i8* [[T0]], i32 8)<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(i8** [[SLOT]])<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[SLOT]])<br>
   // CHECK-NEXT: [[VARPTR2:%.*]] = bitcast [[BYREF_T]]* [[VAR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 48, i8* [[VARPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -235,15 +235,15 @@ void test6(void) {<br>
   // CHECK-NEXT: load i8*, i8**<br>
   // CHECK-NEXT: bitcast i8* {{%.*}} to [[BYREF_T]]*<br>
   // CHECK-NEXT: [[T1:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* {{%.*}}, i32 0, i32 6<br>
-  // CHECK-NEXT: call void @objc_moveWeak(i8** [[T0]], i8** [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.moveWeak(i8** [[T0]], i8** [[T1]])<br>
<br>
   // CHECK-LABEL:    define internal void @__Block_byref_object_dispose_.{{[0-9]+}}(i8*) #{{[0-9]+}} {<br>
   // CHECK:      [[T0:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* {{%.*}}, i32 0, i32 6<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(i8** [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[T0]])<br>
<br>
   // CHECK-LABEL:    define internal void @__test6_block_invoke<br>
   // CHECK:      [[SLOT:%.*]] = getelementptr inbounds {{.*}}, i32 0, i32 6<br>
-  // CHECK-NEXT: call i8* @objc_storeWeak(i8** [[SLOT]], i8* null)<br>
+  // CHECK-NEXT: call i8* @llvm.objc.storeWeak(i8** [[SLOT]], i8* null)<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -258,33 +258,33 @@ void test7(void) {<br>
   // CHECK:      [[VAR:%.*]] = alloca i8*,<br>
   // CHECK-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],<br>
   // CHECK:      [[T0:%.*]] = call i8* @test7_source()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
-  // CHECK-NEXT: call i8* @objc_initWeak(i8** [[VAR]], i8* [[T1]])<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[VAR]], i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   // 0x42800000 - has signature, copy/dispose helpers, as well as BLOCK_HAS_EXTENDED_LAYOUT<br>
   // CHECK:      store i32 -1040187392,<br>
   // CHECK:      [[SLOT:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
-  // CHECK-NEXT: call void @objc_copyWeak(i8** [[SLOT]], i8** [[VAR]])<br>
+  // CHECK-NEXT: call void @llvm.objc.copyWeak(i8** [[SLOT]], i8** [[VAR]])<br>
   // CHECK:      call void @test7_helper(<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(i8** {{%.*}})<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(i8** [[VAR]])<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** {{%.*}})<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[VAR]])<br>
   // CHECK: ret void<br>
<br>
   // CHECK-LABEL:    define internal void @__test7_block_invoke<br>
   // CHECK:      [[SLOT:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* {{%.*}}, i32 0, i32 5<br>
-  // CHECK-NEXT: [[T0:%.*]] = call i8* @objc_loadWeakRetained(i8** [[SLOT]])<br>
+  // CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[SLOT]])<br>
   // CHECK-NEXT: call void @test7_consume(i8* [[T0]])<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK: ret void<br>
<br>
   // CHECK-LABEL:    define linkonce_odr hidden void @__copy_helper_block_8_32w(i8*, i8*) unnamed_addr #{{[0-9]+}} {<br>
   // CHECK:      getelementptr<br>
   // CHECK-NEXT: getelementptr<br>
-  // CHECK-NEXT: call void @objc_copyWeak(<br>
+  // CHECK-NEXT: call void @llvm.objc.copyWeak(<br>
<br>
   // CHECK-LABEL:    define linkonce_odr hidden void @__destroy_helper_block_8_32w(i8*) unnamed_addr #{{[0-9]+}} {<br>
   // CHECK:      getelementptr<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(<br>
 }<br>
<br>
 @interface Test8 @end<br>
@@ -323,11 +323,11 @@ id test9(void) {<br>
 // CHECK:      load i8*, i8** getelementptr<br>
 // CHECK-NEXT: bitcast i8*<br>
 // CHECK-NEXT: call i8* <br>
-// CHECK-NEXT: tail call i8* @objc_autoreleaseReturnValue<br>
+// CHECK-NEXT: tail call i8* @llvm.objc.autoreleaseReturnValue<br>
 // CHECK-NEXT: ret i8*<br>
<br>
 // CHECK:      call i8* @test9_produce()<br>
-// CHECK-NEXT: call i8* @objc_retain<br>
+// CHECK-NEXT: call i8* @llvm.objc.retain<br>
 // CHECK-NEXT: ret i8*<br>
 }<br>
<br>
@@ -345,7 +345,7 @@ void test10a(void) {<br>
<br>
   // Run the initializer as an assignment.<br>
   // CHECK:      [[T0:%.*]] = bitcast void ()* {{%.*}} to i8*<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainBlock(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to void ()*<br>
   // CHECK-NEXT: [[T3:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[BYREF]], i32 0, i32 1<br>
   // CHECK-NEXT: [[T4:%.*]] = load [[BYREF_T]]*, [[BYREF_T]]** [[T3]]<br>
@@ -353,7 +353,7 @@ void test10a(void) {<br>
   // CHECK-NEXT: [[T6:%.*]] = load void ()*, void ()** [[T5]], align 8<br>
   // CHECK-NEXT: store void ()* {{%.*}}, void ()** [[T5]], align 8<br>
   // CHECK-NEXT: [[T7:%.*]] = bitcast void ()* [[T6]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T7]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T7]])<br>
<br>
   // Destroy at end of function.<br>
   // CHECK-NEXT: [[SLOT:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[BYREF]], i32 0, i32 6<br>
@@ -361,7 +361,7 @@ void test10a(void) {<br>
   // CHECK-NEXT: call void @_Block_object_dispose(i8* [[T0]], i32 8)<br>
   // CHECK-NEXT: [[T1:%.*]] = load void ()*, void ()** [[SLOT]]<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast void ()* [[T1]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T2]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T2]])<br>
   // CHECK: ret void<br>
 }<br>
<br>
@@ -379,7 +379,7 @@ void test10a(void) {<br>
 // CHECK-NEXT: [[S2:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[S1]], i32 0, i32 6<br>
 // CHECK-NEXT: [[T0:%.*]] = load void ()*, void ()** [[S2]], align 8<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast void ()* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainBlock(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to void ()*<br>
 // CHECK-NEXT: store void ()* [[T3]], void ()** [[D2]], align 8<br>
 // CHECK: ret void<br>
@@ -390,7 +390,7 @@ void test10a(void) {<br>
 // CHECK-NEXT: [[T2:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[T1]], i32 0, i32 6<br>
 // CHECK-NEXT: [[T3:%.*]] = load void ()*, void ()** [[T2]]<br>
 // CHECK-NEXT: [[T4:%.*]] = bitcast void ()* [[T3]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T4]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T4]])<br>
 // CHECK-NEXT: ret void<br>
<br>
 // Test that we correctly assign to __block variables when the<br>
@@ -410,7 +410,7 @@ void test10b(void) {<br>
<br>
   // The assignment.<br>
   // CHECK:      [[T0:%.*]] = bitcast void ()* {{%.*}} to i8*<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainBlock(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to void ()*<br>
   // CHECK-NEXT: [[T3:%.*]] = getelementptr inbounds [[BYREF_T]], [[BYREF_T]]* [[BYREF]], i32 0, i32 1<br>
   // CHECK-NEXT: [[T4:%.*]] = load [[BYREF_T]]*, [[BYREF_T]]** [[T3]]<br>
@@ -418,14 +418,14 @@ void test10b(void) {<br>
   // CHECK-NEXT: [[T6:%.*]] = load void ()*, void ()** [[T5]], align 8<br>
   // CHECK-NEXT: store void ()* {{%.*}}, void ()** [[T5]], align 8<br>
   // CHECK-NEXT: [[T7:%.*]] = bitcast void ()* [[T6]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T7]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T7]])<br>
<br>
   // Destroy at end of function.<br>
   // CHECK-NEXT: [[T0:%.*]] = bitcast [[BYREF_T]]* [[BYREF]] to i8*<br>
   // CHECK-NEXT: call void @_Block_object_dispose(i8* [[T0]], i32 8)<br>
   // CHECK-NEXT: [[T1:%.*]] = load void ()*, void ()** [[SLOT]]<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast void ()* [[T1]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T2]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T2]])<br>
   // CHECK: ret void<br>
 }<br>
<br>
@@ -440,12 +440,12 @@ void test11a(void) {<br>
   // CHECK-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]], align 8<br>
   // CHECK:      [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to void ()*<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast void ()* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainBlock(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to void ()*<br>
   // CHECK-NEXT: [[T4:%.*]] = bitcast void ()* [[T3]] to i8*<br>
   // CHECK-NEXT: call void @test11_helper(i8* [[T4]])<br>
   // CHECK-NEXT: [[T5:%.*]] = bitcast void ()* [[T3]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T5]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T5]])<br>
   // CHECK: ret void<br>
 }<br>
 void test11b(void) {<br>
@@ -458,12 +458,12 @@ void test11b(void) {<br>
   // CHECK-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]], align 8<br>
   // CHECK:      [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to void ()*<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast void ()* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainBlock(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to void ()*<br>
   // CHECK-NEXT: [[T4:%.*]] = bitcast void ()* [[T3]] to i8*<br>
   // CHECK-NEXT: store i8* [[T4]], i8** [[B]], align 8<br>
   // CHECK-NEXT: [[T5:%.*]] = load i8*, i8** [[B]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T5]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T5]])<br>
   // CHECK: ret void<br>
 }<br>
<br>
@@ -500,7 +500,7 @@ void test13(id x) {<br>
   // CHECK-NEXT: [[B:%.*]] = alloca void ()*, align 8<br>
   // CHECK-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:.*]], align 8<br>
   // CHECK-NEXT: [[CLEANUP_ACTIVE:%.*]] = alloca i1<br>
-  // CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retain(i8* {{%.*}})<br>
+  // CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* {{%.*}})<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[X]], align 8<br>
   // CHECK-NEXT: [[BPTR1:%.*]] = bitcast void ()** [[B]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[BPTR1]])<br>
@@ -513,7 +513,7 @@ void test13(id x) {<br>
   // CHECK-NOT:  br<br>
   // CHECK:      [[CAPTURE:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]], align 8<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[CAPTURE]], align 8<br>
   // CHECK-NEXT: store i1 true, i1* [[CLEANUP_ACTIVE]]<br>
   // CHECK-NEXT: bitcast [[BLOCK_T]]* [[BLOCK]] to void ()*<br>
@@ -521,25 +521,25 @@ void test13(id x) {<br>
   // CHECK:      br label<br>
   // CHECK:      [[T0:%.*]] = phi void ()*<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast void ()* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainBlock(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to void ()*<br>
   // CHECK-NEXT: store void ()* [[T3]], void ()** [[B]], align 8<br>
   // CHECK-NEXT: [[T0:%.*]] = load void ()*, void ()** [[B]], align 8<br>
   // CHECK-NEXT: call void @test13_use(void ()* [[T0]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load void ()*, void ()** [[B]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast void ()* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load i1, i1* [[CLEANUP_ACTIVE]]<br>
   // CHECK-NEXT: br i1 [[T0]]<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[CLEANUP_ADDR]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: br label<br>
<br>
   // CHECK:      [[BPTR2:%.*]] = bitcast void ()** [[B]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[BPTR2]])<br>
   // CHECK-NEXT:      [[T0:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -586,7 +586,7 @@ id (^test17(id self, int which))(void) {<br>
 // CHECK-NEXT: [[SELF:%.*]] = alloca i8*,<br>
 // CHECK:      [[B0:%.*]] = alloca [[BLOCK:<.*>]], align<br>
 // CHECK:      [[B1:%.*]] = alloca [[BLOCK]], align<br>
-// CHECK:      [[T0:%.*]] = call i8* @objc_retain(i8*<br>
+// CHECK:      [[T0:%.*]] = call i8* @llvm.objc.retain(i8*<br>
 // CHECK-NEXT: store i8* [[T0]], i8** [[SELF]], align<br>
 // CHECK-NOT:  objc_retain<br>
 // CHECK-NOT:  objc_release<br>
@@ -595,15 +595,15 @@ id (^test17(id self, int which))(void) {<br>
 // CHECK-NOT:  objc_release<br>
 // CHECK:      [[T0:%.*]] = getelementptr inbounds [[BLOCK]], [[BLOCK]]* [[B0]], i32 0, i32 5<br>
 // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[SELF]], align<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK-NEXT: store i8* [[T2]], i8** [[T0]],<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[BLOCK]]* [[B0]] to i8* ()*<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* ()* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainBlock(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to i8* ()*<br>
 // CHECK-NEXT: store i8* ()* [[T3]], i8* ()** [[RET]]<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[DESTROY]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
 // CHECK-NEXT: store i32<br>
 // CHECK-NEXT: br label<br>
 // CHECK-NOT:  objc_retain<br>
@@ -613,15 +613,15 @@ id (^test17(id self, int which))(void) {<br>
 // CHECK-NOT:  objc_release<br>
 // CHECK:      [[T0:%.*]] = getelementptr inbounds [[BLOCK]], [[BLOCK]]* [[B1]], i32 0, i32 5<br>
 // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[SELF]], align<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK-NEXT: store i8* [[T2]], i8** [[T0]],<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[BLOCK]]* [[B1]] to i8* ()*<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* ()* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainBlock(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to i8* ()*<br>
 // CHECK-NEXT: store i8* ()* [[T3]], i8* ()** [[RET]]<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[DESTROY]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
 // CHECK-NEXT: store i32<br>
 // CHECK-NEXT: br label<br>
<br>
@@ -630,18 +630,18 @@ void test18(id x) {<br>
 // CHECK-UNOPT:      [[X:%.*]] = alloca i8*,<br>
 // CHECK-UNOPT-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],<br>
 // CHECK-UNOPT-NEXT: store i8* null, i8** [[X]]<br>
-// CHECK-UNOPT-NEXT: call void @objc_storeStrong(i8** [[X]], <br>
+// CHECK-UNOPT-NEXT: call void @llvm.objc.storeStrong(i8** [[X]], <br>
 // CHECK-UNOPT-NEXT: [[SLOTREL:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-UNOPT: %[[BLOCK_DESCRIPTOR:.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 4<br>
 // CHECK-UNOPT: store %[[STRUCT_BLOCK_DESCRIPTOR]]* bitcast ({ i64, i64, i8*, i8*, i8*, i64 }* @[[BLOCK_DESCRIPTOR_TMP44]] to %[[STRUCT_BLOCK_DESCRIPTOR]]*), %[[STRUCT_BLOCK_DESCRIPTOR]]** %[[BLOCK_DESCRIPTOR]], align 8<br>
 // CHECK-UNOPT:      [[SLOT:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-UNOPT-NEXT: [[T0:%.*]] = load i8*, i8** [[X]],<br>
-// CHECK-UNOPT-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+// CHECK-UNOPT-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
 // CHECK-UNOPT-NEXT: store i8* [[T1]], i8** [[SLOT]],<br>
 // CHECK-UNOPT-NEXT: bitcast<br>
 // CHECK-UNOPT-NEXT: call void @test18_helper(<br>
-// CHECK-UNOPT-NEXT: call void @objc_storeStrong(i8** [[SLOTREL]], i8* null) [[NUW:#[0-9]+]]<br>
-// CHECK-UNOPT-NEXT: call void @objc_storeStrong(i8** [[X]], i8* null) [[NUW]]<br>
+// CHECK-UNOPT-NEXT: call void @llvm.objc.storeStrong(i8** [[SLOTREL]], i8* null) [[NUW:#[0-9]+]]<br>
+// CHECK-UNOPT-NEXT: call void @llvm.objc.storeStrong(i8** [[X]], i8* null) [[NUW]]<br>
 // CHECK-UNOPT-NEXT: ret void<br>
   extern void test18_helper(id (^)(void));<br>
   test18_helper(^{ return x; });<br>
@@ -669,7 +669,7 @@ void test19(void (^b)(void)) {<br>
 // CHECK:      [[B:%.*]] = alloca void ()*,<br>
 // CHECK-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast void ()* {{%.*}} to i8*<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to void ()*<br>
 // CHECK-NEXT: store void ()* [[T2]], void ()** [[B]]<br>
<br>
@@ -680,7 +680,7 @@ void test19(void (^b)(void)) {<br>
 // CHECK:      [[SLOT:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-NEXT: [[T0:%.*]] = load void ()*, void ()** [[B]],<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast void ()* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to void ()*<br>
 // CHECK-NEXT: store void ()* [[T3]], void ()** [[SLOT]],<br>
 //   Call.<br>
@@ -692,12 +692,12 @@ void test19(void (^b)(void)) {<br>
 //   Block teardown.<br>
 // CHECK-NEXT: [[T0:%.*]] = load void ()*, void ()** [[SLOTREL]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast void ()* [[T0]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
<br>
 //   Local cleanup.<br>
 // CHECK-NEXT: [[T0:%.*]] = load void ()*, void ()** [[B]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast void ()* [[T0]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
<br>
 // CHECK-NEXT: ret void<br>
 }<br>
@@ -705,7 +705,7 @@ void test19(void (^b)(void)) {<br>
 // CHECK-LABEL: define void @test20(<br>
 // CHECK: [[XADDR:%.*]] = alloca i8*<br>
 // CHECK-NEXT: [[BLOCK:%.*]] = alloca <[[BLOCKTY:.*]]><br>
-// CHECK-NEXT: [[RETAINEDX:%.*]] = call i8* @objc_retain(i8* %{{.*}})<br>
+// CHECK-NEXT: [[RETAINEDX:%.*]] = call i8* @llvm.objc.retain(i8* %{{.*}})<br>
 // CHECK-NEXT: store i8* [[RETAINEDX]], i8** [[XADDR]]<br>
 // CHECK-NEXT: [[CAPTUREFIELD:%.*]] = getelementptr inbounds <[[BLOCKTY]]>, <[[BLOCKTY]]>* [[BLOCK]], i32 0, i32 5<br>
 // CHECK: [[BLOCKCAPTURED:%.*]] = getelementptr inbounds <[[BLOCKTY]]>, <[[BLOCKTY]]>* [[BLOCK]], i32 0, i32 5<br>
@@ -714,7 +714,7 @@ void test19(void (^b)(void)) {<br>
 // CHECK: [[CAPTURE:%.*]] = load i8*, i8** [[CAPTUREFIELD]]<br>
 // CHECK-NEXT: call void (...) @clang.arc.use(i8* [[CAPTURE]])<br>
 // CHECK-NEXT: [[X:%.*]] = load i8*, i8** [[XADDR]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[X]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[X]])<br>
 // CHECK-NEXT: ret void<br>
<br>
 // CHECK-UNOPT-LABEL: define void @test20(<br>
@@ -723,9 +723,9 @@ void test19(void (^b)(void)) {<br>
 // CHECK-UNOPT: [[CAPTUREFIELD:%.*]] = getelementptr inbounds <[[BLOCKTY]]>, <[[BLOCKTY]]>* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-UNOPT: [[BLOCKCAPTURED:%.*]] = getelementptr inbounds <[[BLOCKTY]]>, <[[BLOCKTY]]>* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-UNOPT: [[CAPTURED:%.*]] = load i8*, i8** [[XADDR]]<br>
-// CHECK-UNOPT: [[RETAINED:%.*]] = call i8* @objc_retain(i8* [[CAPTURED]])<br>
+// CHECK-UNOPT: [[RETAINED:%.*]] = call i8* @llvm.objc.retain(i8* [[CAPTURED]])<br>
 // CHECK-UNOPT: store i8* [[RETAINED]], i8** [[BLOCKCAPTURED]]<br>
-// CHECK-UNOPT: call void @objc_storeStrong(i8** [[CAPTUREFIELD]], i8* null)<br>
+// CHECK-UNOPT: call void @llvm.objc.storeStrong(i8** [[CAPTUREFIELD]], i8* null)<br>
<br>
 void test20_callee(void (^)());<br>
 void test20(const id x) {<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-bridged-cast.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-bridged-cast.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-bridged-cast.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-bridged-cast.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-bridged-cast.m Tue Dec 18 12:33:00 2018<br>
@@ -27,10 +27,10 @@ void bridge_transfer_from_cf(int *i) {<br>
   // CHECK-NOT: retain<br>
   // CHECK: store i32 13<br>
   (void)(__bridge_transfer id)CFCreateSomething(), *i = 13;<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: store i32 17<br>
   *i = 17;<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: call void @llvm.lifetime.end<br>
   // CHECK-NEXT: ret void<br>
@@ -42,7 +42,7 @@ void bridge_from_cf(int *i) {<br>
   *i = 7;<br>
   // CHECK: call i8* @CFCreateSomething()<br>
   id obj1 = (__bridge id)CFCreateSomething();<br>
-  // CHECK: objc_retainAutoreleasedReturnValue<br>
+  // CHECK: llvm.objc.retainAutoreleasedReturnValue<br>
   // CHECK: store i32 11<br>
   *i = 11;<br>
   // CHECK: call i8* @CFCreateSomething()<br>
@@ -51,7 +51,7 @@ void bridge_from_cf(int *i) {<br>
   (void)(__bridge id)CFCreateSomething(), *i = 13;<br>
   // CHECK: store i32 17<br>
   *i = 17;<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: call void @llvm.lifetime.end<br>
   // CHECK-NEXT: ret void<br>
@@ -62,12 +62,12 @@ void bridge_retained_of_cf(int *i) {<br>
   *i = 7;<br>
   // CHECK: call i8* @CreateSomething()<br>
   CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething();<br>
-  // CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   // CHECK: store i32 11<br>
   *i = 11;<br>
   // CHECK: call i8* @CreateSomething()<br>
   (__bridge_retained CFTypeRef)CreateSomething(), *i = 13;<br>
-  // CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   // CHECK: store i32 13<br>
   // CHECK: store i32 17<br>
   *i = 17;<br>
@@ -99,8 +99,8 @@ void bridge_of_cf(int *i) {<br>
<br>
 // CHECK-LABEL: define %struct.__CFString* @bridge_of_paren_expr()<br>
 CFStringRef bridge_of_paren_expr() {<br>
-  // CHECK-NOT: call i8* @objc_retainAutoreleasedReturnValue(<br>
-  // CHECK-NOT: call void @objc_release(<br>
+  // CHECK-NOT: call i8* @llvm.objc.retainAutoreleasedReturnValue(<br>
+  // CHECK-NOT: call void @llvm.objc.release(<br>
   CFStringRef r = (__bridge CFStringRef)(CreateNSString());<br>
   r = (__bridge CFStringRef)((NSString *)(CreateNSString()));<br>
   return r;<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-exceptions.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-exceptions.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-exceptions.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-exceptions.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-exceptions.m Tue Dec 18 12:33:00 2018<br>
@@ -17,11 +17,11 @@ void test0(void) {<br>
 // CHECK:      [[T0:%.*]] = call i8* @objc_begin_catch(<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[ETY]]*<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[ETY]]* [[T1]] to i8*<br>
-// CHECK-NEXT: [[T3:%.*]] = call i8* @objc_retain(i8* [[T2]]) [[NUW:#[0-9]+]]<br>
+// CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.retain(i8* [[T2]]) [[NUW:#[0-9]+]]<br>
 // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to [[ETY]]*<br>
 // CHECK-NEXT: store [[ETY]]* [[T4]], [[ETY]]** [[E]]<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null) [[NUW]]<br>
 // CHECK-NEXT: call void @objc_end_catch() [[NUW]]<br>
<br>
 void test1_helper(void);<br>
@@ -38,9 +38,9 @@ void test1(void) {<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[ETY]]*<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast [[ETY]]* [[T1]] to i8*<br>
-// CHECK-NEXT: call i8* @objc_initWeak(i8** [[T2]], i8* [[T3]]) [[NUW]]<br>
+// CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[T2]], i8* [[T3]]) [[NUW]]<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[T0]]) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[T0]]) [[NUW]]<br>
 // CHECK-NEXT: call void @objc_end_catch() [[NUW]]<br>
<br>
 // CHECK: attributes [[NUW]] = { nounwind }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-foreach.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-foreach.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-foreach.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-foreach.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-foreach.m Tue Dec 18 12:33:00 2018<br>
@@ -38,7 +38,7 @@ void test0(NSArray *array) {<br>
 // CHECK-LP64-NEXT: store [[ARRAY_T]]* null, [[ARRAY_T]]** [[ARRAY]]<br>
 // CHECK-LP64-NEXT: [[ZERO:%.*]] = bitcast [[ARRAY_T]]** [[ARRAY]] to i8**<br>
 // CHECK-LP64-NEXT: [[ONE:%.*]] = bitcast [[ARRAY_T]]* {{%.*}} to i8*<br>
-// CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[ZERO]], i8* [[ONE]]) [[NUW:#[0-9]+]]<br>
+// CHECK-LP64-NEXT: call void @llvm.objc.storeStrong(i8** [[ZERO]], i8* [[ONE]]) [[NUW:#[0-9]+]]<br>
<br>
 // Initialize the fast enumaration state.<br>
 // CHECK-LP64-NEXT: [[T0:%.*]] = bitcast [[STATE_T]]* [[STATE]] to i8*<br>
@@ -47,7 +47,7 @@ void test0(NSArray *array) {<br>
 // Evaluate the collection expression and retain.<br>
 // CHECK-LP64-NEXT: [[T0:%.*]] = load [[ARRAY_T]]*, [[ARRAY_T]]** [[ARRAY]], align 8<br>
 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[T0]] to i8*<br>
-// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK-LP64-NEXT: [[SAVED_ARRAY:%.*]] = bitcast i8* [[T2]] to [[ARRAY_T]]*<br>
<br>
 // Call the enumeration method.<br>
@@ -68,11 +68,11 @@ void test0(NSArray *array) {<br>
 // CHECK-LP64:      [[D0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-LP64:      [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-LP64-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]<br>
-// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK-LP64-NEXT: store i8* [[T2]], i8** [[T0]]<br>
 // CHECK-LP64-NEXT: [[BLOCK1:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]]<br>
 // CHECK-LP64-NEXT: call void @use_block(void ()* [[BLOCK1]])<br>
-// CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[D0]], i8* null)<br>
+// CHECK-LP64-NEXT: call void @llvm.objc.storeStrong(i8** [[D0]], i8* null)<br>
 // CHECK-LP64-NOT:  call void (...) @clang.arc.use(i8* [[CAPTURE]])<br>
<br>
 // CHECK-LP64-OPT: [[D0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i64 0, i32 5<br>
@@ -85,11 +85,11 @@ void test0(NSArray *array) {<br>
<br>
 // Release the array.<br>
 // CHECK-LP64:      [[T0:%.*]] = bitcast [[ARRAY_T]]* [[SAVED_ARRAY]] to i8*<br>
-// CHECK-LP64-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-LP64-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
<br>
 // Destroy 'array'.<br>
 // CHECK-LP64:      [[T0:%.*]] = bitcast [[ARRAY_T]]** [[ARRAY]] to i8**<br>
-// CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)<br>
+// CHECK-LP64-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null)<br>
 // CHECK-LP64-NEXT: ret void<br>
<br>
 // CHECK-LP64-LABEL:    define internal void @__test0_block_invoke<br>
@@ -116,15 +116,15 @@ void test1(NSArray *array) {<br>
 // CHECK-LP64-NEXT: [[T1:%.*]] = load i8**, i8*** [[T0]]<br>
 // CHECK-LP64-NEXT: [[T2:%.*]] = getelementptr i8*, i8** [[T1]], i64<br>
 // CHECK-LP64-NEXT: [[T3:%.*]] = load i8*, i8** [[T2]]<br>
-// CHECK-LP64-NEXT: call i8* @objc_initWeak(i8** [[X]], i8* [[T3]])<br>
+// CHECK-LP64-NEXT: call i8* @llvm.objc.initWeak(i8** [[X]], i8* [[T3]])<br>
<br>
 // CHECK-LP64:      [[D0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-LP64:      [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5<br>
-// CHECK-LP64-NEXT: call void @objc_copyWeak(i8** [[T0]], i8** [[X]])<br>
+// CHECK-LP64-NEXT: call void @llvm.objc.copyWeak(i8** [[T0]], i8** [[X]])<br>
 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to<br>
 // CHECK-LP64: call void @use_block<br>
-// CHECK-LP64-NEXT: call void @objc_destroyWeak(i8** [[D0]])<br>
-// CHECK-LP64-NEXT: call void @objc_destroyWeak(i8** [[X]])<br>
+// CHECK-LP64-NEXT: call void @llvm.objc.destroyWeak(i8** [[D0]])<br>
+// CHECK-LP64-NEXT: call void @llvm.objc.destroyWeak(i8** [[X]])<br>
<br>
 // <a>rdar://problem/9817306</a><br>
 @interface Test2<br>
@@ -139,7 +139,7 @@ void test2(Test2 *a) {<br>
 // CHECK-LP64-LABEL:    define void @test2(<br>
 // CHECK-LP64:      [[T0:%.*]] = call [[ARRAY_T]]* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to [[ARRAY_T]]* (i8*, i8*)*)(<br>
 // CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[T0]] to i8*<br>
-// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-LP64-NEXT: [[COLL:%.*]] = bitcast i8* [[T2]] to [[ARRAY_T]]*<br>
<br>
 // Make sure it's not immediately released before starting the iteration.<br>
@@ -157,7 +157,7 @@ void test2(Test2 *a) {<br>
<br>
 // This bitcast is for the final release.<br>
 // CHECK-LP64:      [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*<br>
-// CHECK-LP64-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-LP64-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
<br>
<br>
 // Check that the 'continue' label is positioned appropriately<br>
@@ -211,7 +211,7 @@ NSArray *array4;<br>
 // CHECK-LP64:         [[BC:%.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, [[TY]]* }>, <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, [[TY]]* }>* [[BLOCK]], i32 0, i32 5<br>
 // CHECK-LP64:         [[T1:%.*]] = load [[TY]]*, [[TY]]** [[SELF_ADDR]]<br>
 // CHECK-LP64:         [[T2:%.*]] = bitcast [[TY]]* [[T1]] to i8*<br>
-// CHECK-LP64:         call i8* @objc_retain(i8* [[T2]])<br>
+// CHECK-LP64:         call i8* @llvm.objc.retain(i8* [[T2]])<br>
<br>
 // CHECK-LP64-OPT-LABEL: define internal void @"\01-[I1 foo2]"(<br>
 // CHECK-LP64-OPT: [[TY:%.*]]* %self<br>
@@ -219,7 +219,7 @@ NSArray *array4;<br>
 // CHECK-LP64-OPT: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i64 0, i32 5<br>
<br>
 // CHECK-LP64:         [[T5:%.*]] = bitcast [[TY]]** [[T0]] to i8**<br>
-// CHECK-LP64:         call void @objc_storeStrong(i8** [[T5]], i8* null)<br>
+// CHECK-LP64:         call void @llvm.objc.storeStrong(i8** [[T5]], i8* null)<br>
 // CHECK-LP64-NOT:     call void (...) @clang.arc.use([[TY]]* [[T5]])<br>
 // CHECK-LP64:         switch i32 {{%.*}}, label %[[UNREACHABLE:.*]] [<br>
 // CHECK-LP64-NEXT:      i32 0, label %[[CLEANUP_CONT:.*]]<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-i386.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-i386.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-i386.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-i386.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-i386.m Tue Dec 18 12:33:00 2018<br>
@@ -16,9 +16,9 @@ void test1(void) {<br>
   extern id test1_helper(void);<br>
   // CHECK:      [[T0:%.*]] = call i8* @test1_helper()<br>
   // CHECK-NEXT: call void asm sideeffect "mov<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: store i8* [[T1]],<br>
-  // CHECK-NEXT: call void @objc_storeStrong(<br>
+  // CHECK-NEXT: call void @llvm.objc.storeStrong(<br>
   // CHECK-NEXT: ret void<br>
   id x = test1_helper();<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-linetable-autorelease.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-linetable-autorelease.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-linetable-autorelease.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-linetable-autorelease.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-linetable-autorelease.m Tue Dec 18 12:33:00 2018<br>
@@ -29,8 +29,8 @@ NSRect NSMakeRect(CGFloat x, CGFloat y,<br>
   CGFloat pattern[2];<br>
   // CHECK: define {{.*}}_createBezierPathWithWidth<br>
   // CHECK: load {{.*}} %path, align {{.*}}, !dbg ![[RET:[0-9]+]]<br>
-  // CHECK: call void @objc_storeStrong{{.*}} !dbg ![[ARC:[0-9]+]]<br>
-  // CHECK: call {{.*}} @objc_autoreleaseReturnValue{{.*}} !dbg ![[ARC]]<br>
+  // CHECK: call void @llvm.objc.storeStrong{{.*}} !dbg ![[ARC:[0-9]+]]<br>
+  // CHECK: call {{.*}} @llvm.objc.autoreleaseReturnValue{{.*}} !dbg ![[ARC]]<br>
   // CHECK: ret {{.*}} !dbg ![[ARC]]<br>
   // CHECK: ![[RET]] = !DILocation(line: [[@LINE+1]], scope: !{{.*}})<br>
   return path;<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-linetable.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-linetable.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-linetable.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-linetable.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-linetable.m Tue Dec 18 12:33:00 2018<br>
@@ -3,8 +3,8 @@<br>
 // Legend: EXP = Return expression, RET = ret instruction<br>
<br>
 // CHECK: define {{.*}}testNoSideEffect<br>
-// CHECK: call void @objc_storeStrong{{.*}}<br>
-// CHECK: call void @objc_storeStrong{{.*}} !dbg ![[RET1:[0-9]+]]<br>
+// CHECK: call void @llvm.objc.storeStrong{{.*}}<br>
+// CHECK: call void @llvm.objc.storeStrong{{.*}} !dbg ![[RET1:[0-9]+]]<br>
 // CHECK: ret {{.*}} !dbg ![[RET1]]<br>
<br>
 // CHECK: define {{.*}}testNoCleanup<br>
@@ -20,8 +20,8 @@<br>
 // CHECK: ret {{.*}} !dbg ![[RET4:[0-9]+]]<br>
<br>
 // CHECK: define {{.*}}testVoid<br>
-// CHECK: call void @objc_storeStrong{{.*}}<br>
-// CHECK: call void @objc_storeStrong{{.*}} !dbg ![[RET5:[0-9]+]]<br>
+// CHECK: call void @llvm.objc.storeStrong{{.*}}<br>
+// CHECK: call void @llvm.objc.storeStrong{{.*}} !dbg ![[RET5:[0-9]+]]<br>
 // CHECK: ret {{.*}} !dbg ![[RET5]]<br>
<br>
 // CHECK: define {{.*}}testVoidNoReturn<br>
@@ -35,7 +35,7 @@<br>
 // CHECK: define {{.*}}testCleanupVoid<br>
 // CHECK: icmp ne {{.*}}!dbg ![[SKIP1:[0-9]+]]<br>
 // CHECK: store i32 0, i32* {{.*}}, !dbg ![[RET8:[0-9]+]]<br>
-// CHECK: @objc_storeStrong{{.*}}, !dbg ![[RET8]]<br>
+// CHECK: @llvm.objc.storeStrong{{.*}}, !dbg ![[RET8]]<br>
 // CHECK: ret {{.*}} !dbg ![[RET8]]<br>
<br>
 typedef signed char BOOL;<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-literals.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-literals.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-literals.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-literals.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-literals.m Tue Dec 18 12:33:00 2018<br>
@@ -15,24 +15,24 @@<br>
 // CHECK-LABEL: define void @test_numeric()<br>
 void test_numeric() {<br>
   // CHECK: {{call.*objc_msgSend.*i32 17}}<br>
-  // CHECK: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   id ilit = @17;<br>
   // CHECK: {{call.*objc_msgSend.*i32 25}}<br>
-  // CHECK: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   id ulit = @25u;<br>
   // CHECK: {{call.*objc_msgSend.*i64 42}}<br>
-  // CHECK: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   id ulllit = @42ull;<br>
   // CHECK: {{call.*objc_msgSend.*i8 signext 97}}<br>
-  // CHECK: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   id charlit = @'a';<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
   // CHECK-NEXT: ret void<br>
 }<br>
@@ -43,8 +43,8 @@ void test_array(id a, id b) {<br>
   // CHECK: [[B:%.*]] = alloca i8*,<br>
<br>
   // Retaining parameters<br>
-  // CHECK: call i8* @objc_retain(i8*<br>
-  // CHECK: call i8* @objc_retain(i8*<br>
+  // CHECK: call i8* @llvm.objc.retain(i8*<br>
+  // CHECK: call i8* @llvm.objc.retain(i8*<br>
<br>
   // Constructing the array<br>
   // CHECK:      [[T0:%.*]] = getelementptr inbounds [2 x i8*], [2 x i8*]* [[OBJECTS:%[A-Za-z0-9]+]], i64 0, i64 0<br>
@@ -59,13 +59,13 @@ void test_array(id a, id b) {<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[CLASS_T]]* [[T0]] to i8*<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast [2 x i8*]* [[OBJECTS]] to i8**<br>
   // CHECK-NEXT: [[T3:%.*]] = call i8* bitcast ({{.*@objc_msgSend.*}})(i8* [[T1]], i8* [[SEL]], i8** [[T2]], i64 2)<br>
-  // CHECK-NEXT: [[T4:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T3]])<br>
+  // CHECK-NEXT: [[T4:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T3]])<br>
   // CHECK: call void (...) @clang.arc.use(i8* [[V0]], i8* [[V1]])<br>
   id arr = @[a, b];<br>
<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -77,10 +77,10 @@ void test_dictionary(id k1, id o1, id k2<br>
   // CHECK: [[O2:%.*]] = alloca i8*,<br>
<br>
   // Retaining parameters<br>
-  // CHECK: call i8* @objc_retain(i8*<br>
-  // CHECK: call i8* @objc_retain(i8*<br>
-  // CHECK: call i8* @objc_retain(i8*<br>
-  // CHECK: call i8* @objc_retain(i8*<br>
+  // CHECK: call i8* @llvm.objc.retain(i8*<br>
+  // CHECK: call i8* @llvm.objc.retain(i8*<br>
+  // CHECK: call i8* @llvm.objc.retain(i8*<br>
+  // CHECK: call i8* @llvm.objc.retain(i8*<br>
<br>
   // Constructing the arrays<br>
   // CHECK:      [[T0:%.*]] = getelementptr inbounds [2 x i8*], [2 x i8*]* [[KEYS:%[A-Za-z0-9]+]], i64 0, i64 0<br>
@@ -103,16 +103,16 @@ void test_dictionary(id k1, id o1, id k2<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast [2 x i8*]* [[OBJECTS]] to i8**<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast [2 x i8*]* [[KEYS]] to i8**<br>
   // CHECK-NEXT: [[T4:%.*]] = call i8* bitcast ({{.*@objc_msgSend.*}})(i8* [[T1]], i8* [[SEL]], i8** [[T2]], i8** [[T3]], i64 2)<br>
-  // CHECK-NEXT: [[T5:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T4]])<br>
+  // CHECK-NEXT: [[T5:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T4]])<br>
   // CHECK-NEXT: call void (...) @clang.arc.use(i8* [[V0]], i8* [[V1]], i8* [[V2]], i8* [[V3]])<br>
<br>
   id dict = @{ k1 : o1, k2 : o2 };<br>
<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -126,7 +126,7 @@ void test_dictionary(id k1, id o1, id k2<br>
 // CHECK-LABEL: define void @test_property<br>
 void test_property(B *b) {<br>
   // Retain parameter<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
<br>
   // CHECK:      [[T0:%.*]] = getelementptr inbounds [1 x i8*], [1 x i8*]* [[OBJECTS:%.*]], i64 0, i64 0<br>
<br>
@@ -135,7 +135,7 @@ void test_property(B *b) {<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast<br>
   // CHECK-NEXT: [[T2:%.*]] = call [[B:%.*]]* bitcast ({{.*}} @objc_msgSend to {{.*}})(i8* [[T1]], i8* [[SEL]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast [[B]]* [[T2]] to i8*<br>
-  // CHECK-NEXT: [[T4:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T3]])<br>
+  // CHECK-NEXT: [[T4:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T3]])<br>
   // CHECK-NEXT: [[V0:%.*]] = bitcast i8* [[T4]] to [[B]]*<br>
   // CHECK-NEXT: [[V1:%.*]] = bitcast [[B]]* [[V0]] to i8*<br>
<br>
@@ -148,7 +148,7 @@ void test_property(B *b) {<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[CLASS_T]]* [[T0]] to i8*<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast [1 x i8*]* [[OBJECTS]] to i8**<br>
   // CHECK-NEXT: [[T3:%.*]] = call i8* bitcast ({{.*}} @objc_msgSend to {{.*}}(i8* [[T1]], i8* [[SEL]], i8** [[T2]], i64 1)<br>
-  // CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue(i8* [[T3]])<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T3]])<br>
   // CHECK-NEXT: call void (...) @clang.arc.use(i8* [[V1]])<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: bitcast<br>
@@ -157,12 +157,12 @@ void test_property(B *b) {<br>
<br>
   // Release b.prop<br>
   // CHECK-NEXT: [[T0:%.*]] = bitcast [[B]]* [[V0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
<br>
   // Destroy arr<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
<br>
   // Destroy b<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-loadweakretained-release.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-loadweakretained-release.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-loadweakretained-release.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-loadweakretained-release.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-loadweakretained-release.m Tue Dec 18 12:33:00 2018<br>
@@ -28,13 +28,13 @@ int main (int argc, const char * argv[])<br>
     }<br>
 }<br>
<br>
-// CHECK: [[SIXTEEN:%.*]]  = call i8* @objc_loadWeakRetained(i8** {{%.*}})<br>
+// CHECK: [[SIXTEEN:%.*]]  = call i8* @llvm.objc.loadWeakRetained(i8** {{%.*}})<br>
 // CHECK-NEXT:  [[SEVENTEEN:%.*]] = bitcast i8* [[SIXTEEN]] to {{%.*}}<br>
 // CHECK-NEXT:  [[EIGHTEEN:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_.6<br>
 // CHECK-NEXT:  [[NINETEEN:%.*]] = bitcast %0* [[SEVENTEEN]] to i8*<br>
 // CHECK-NEXT:  call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend<br>
 // CHECK-NEXT:  [[TWENTY:%.*]] = bitcast %0* [[SEVENTEEN]] to i8*<br>
-// CHECK-NEXT:  call void @objc_release(i8* [[TWENTY]])<br>
+// CHECK-NEXT:  call void @llvm.objc.release(i8* [[TWENTY]])<br>
<br>
 void test1(int cond) {<br>
   extern void test34_sink(id *);<br>
@@ -55,7 +55,7 @@ void test1(int cond) {<br>
 // CHECK-NEXT: [[ICRARGUMENT:%.*]] = select i1 [[ICRISNULL]], i8** null, i8** [[INCRTEMP]]<br>
 // CHECK-NEXT: store i1 false, i1* [[CONDCLEANUP]]<br>
 // CHECK-NEXT: br i1 [[ICRISNULL]], label [[ICRCONT:%.*]], label [[ICRCOPY:%.*]]<br>
-// CHECK:  [[ONE:%.*]] = call i8* @objc_loadWeakRetained(<br>
+// CHECK:  [[ONE:%.*]] = call i8* @llvm.objc.loadWeakRetained(<br>
 // CHECK-NEXT: store i8* [[ONE]], i8** [[CONDCLEANUPSAVE]]<br>
 // CHECK-NEXT: store i1 true, i1* [[CONDCLEANUP]]<br>
 // CHECK-NEXT: store i8* [[ONE]], i8** [[INCRTEMP]]<br>
@@ -65,13 +65,13 @@ void test1(int cond) {<br>
 // CHECK-NEXT: [[ICRISNULL1:%.*]] = icmp eq i8** [[COND1]], null<br>
 // CHECK-NEXT: br i1 [[ICRISNULL1]], label [[ICRDONE:%.*]], label [[ICRWRITEBACK:%.*]]<br>
 // CHECK:  [[TWO:%.*]] = load i8*, i8** [[INCRTEMP]]<br>
-// CHECK-NEXT:  [[THREE:%.*]] = call i8* @objc_storeWeak(<br>
+// CHECK-NEXT:  [[THREE:%.*]] = call i8* @llvm.objc.storeWeak(<br>
 // CHECK-NEXT:  br label [[ICRDONE]]<br>
 // CHECK:  [[CLEANUPISACTIVE:%.*]] = load i1, i1* [[CONDCLEANUP]]<br>
 // CHECK-NEXT:  br i1 [[CLEANUPISACTIVE]], label [[CLEASNUPACTION:%.*]], label [[CLEANUPDONE:%.*]]<br>
<br>
 // CHECK: [[FOUR:%.*]] = load i8*, i8** [[CONDCLEANUPSAVE]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[FOUR]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[FOUR]])<br>
 // CHECK-NEXT:  br label<br>
-// CHECK:  call void @objc_destroyWeak(i8** [[WEAK]])<br>
+// CHECK:  call void @llvm.objc.destroyWeak(i8** [[WEAK]])<br>
 // CHECK-NEXT: ret void<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-no-runtime.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-no-runtime.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-no-runtime.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-no-runtime.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-no-runtime.m Tue Dec 18 12:33:00 2018<br>
@@ -5,9 +5,9 @@ id make(void) __attribute__((ns_returns_<br>
 void test0() {<br>
   make();<br>
   id x = 0;<br>
-  // CHECK: call void @objc_release(<br>
-  // CHECK: call void @objc_storeStrong(<br>
+  // CHECK: call void @llvm.objc.release(<br>
+  // CHECK: call void @llvm.objc.storeStrong(<br>
 }<br>
<br>
-// CHECK: declare extern_weak void @objc_release(<br>
-// CHECK: declare extern_weak void @objc_storeStrong(<br>
+// CHECK: declare extern_weak void @llvm.objc.release(<br>
+// CHECK: declare extern_weak void @llvm.objc.storeStrong(<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-precise-lifetime.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-precise-lifetime.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-precise-lifetime.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-precise-lifetime.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-precise-lifetime.m Tue Dec 18 12:33:00 2018<br>
@@ -14,11 +14,11 @@ void test0() {<br>
<br>
   // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]<br>
   // CHECK-NEXT: store i8* null, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW:#[0-9]+]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW:#[0-9]+]]<br>
   // CHECK-NOT:  clang.imprecise_release<br>
<br>
   // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW:#[0-9]+]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW:#[0-9]+]]<br>
   // CHECK-NOT:  clang.imprecise_release<br>
<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
@@ -43,14 +43,14 @@ void test1a_message(void) {<br>
   // CHECK:      call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PTRPTR1]])<br>
   // CHECK:      [[T0:%.*]] = call [[TEST1:%.*]]* @test1_helper()<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: store [[TEST1]]* [[T3]]<br>
   // CHECK-NEXT: [[CPTR1:%.*]] = bitcast i8** [[C]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[CPTR1]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutorelease(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutorelease(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: [[T4:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T5:%.*]] = bitcast [[TEST1]]* [[T3]] to i8*<br>
@@ -60,7 +60,7 @@ void test1a_message(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[CPTR2]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[PTRPTR2:%.*]] = bitcast [[PTR_T]]** [[PTR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTRPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -77,14 +77,14 @@ void test1a_property(void) {<br>
   // CHECK:      call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PTRPTR1]])<br>
   // CHECK:      [[T0:%.*]] = call [[TEST1:%.*]]* @test1_helper()<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: store [[TEST1]]* [[T3]]<br>
   // CHECK-NEXT: [[CPTR1:%.*]] = bitcast i8** [[C]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[CPTR1]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutorelease(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutorelease(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: [[T4:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T5:%.*]] = bitcast [[TEST1]]* [[T3]] to i8*<br>
@@ -94,7 +94,7 @@ void test1a_property(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[CPTR2]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[PTRPTR2:%.*]] = bitcast [[PTR_T]]** [[PTR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTRPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -111,7 +111,7 @@ void test1b_message(void) {<br>
   // CHECK:      call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PTRPTR1]])<br>
   // CHECK:      [[T0:%.*]] = call [[TEST1:%.*]]* @test1_helper()<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: store [[TEST1]]* [[T3]]<br>
   // CHECK-NEXT: [[CPTR1:%.*]] = bitcast i8** [[C]] to i8*<br>
@@ -125,7 +125,7 @@ void test1b_message(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[CPTR2]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]]<br>
   // CHECK-NOT:  clang.imprecise_release<br>
   // CHECK-NEXT: [[PTRPTR2:%.*]] = bitcast [[PTR_T]]** [[PTR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTRPTR2]])<br>
@@ -142,7 +142,7 @@ void test1b_property(void) {<br>
   // CHECK:      call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PTRPTR1]])<br>
   // CHECK:      [[T0:%.*]] = call [[TEST1:%.*]]* @test1_helper()<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: store [[TEST1]]* [[T3]]<br>
   // CHECK-NEXT: [[CPTR1:%.*]] = bitcast i8** [[C]] to i8*<br>
@@ -156,7 +156,7 @@ void test1b_property(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[CPTR2]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]]<br>
   // CHECK-NOT:  clang.imprecise_release<br>
   // CHECK-NEXT: [[PTRPTR2:%.*]] = bitcast [[PTR_T]]** [[PTR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTRPTR2]])<br>
@@ -173,14 +173,14 @@ void test1c_message(void) {<br>
   // CHECK:      call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PTRPTR1]])<br>
   // CHECK:      [[T0:%.*]] = call [[TEST1:%.*]]* @test1_helper()<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: store [[TEST1]]* [[T3]]<br>
   // CHECK-NEXT: [[PCPTR1:%.*]] = bitcast i8** [[PC]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PCPTR1]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutorelease(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutorelease(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: [[T4:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T5:%.*]] = bitcast [[TEST1]]* [[T3]] to i8*<br>
@@ -190,7 +190,7 @@ void test1c_message(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PCPTR2]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[PTRPTR2:%.*]] = bitcast [[PTR_T]]** [[PTR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTRPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -206,14 +206,14 @@ void test1c_property(void) {<br>
   // CHECK:      call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PTRPTR1]])<br>
   // CHECK:      [[T0:%.*]] = call [[TEST1:%.*]]* @test1_helper()<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: store [[TEST1]]* [[T3]]<br>
   // CHECK-NEXT: [[PCPTR1:%.*]] = bitcast i8** [[PC]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PCPTR1]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutorelease(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutorelease(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: [[T4:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T5:%.*]] = bitcast [[TEST1]]* [[T3]] to i8*<br>
@@ -223,7 +223,7 @@ void test1c_property(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PCPTR2]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[PTRPTR2:%.*]] = bitcast [[PTR_T]]** [[PTR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTRPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -239,7 +239,7 @@ void test1d_message(void) {<br>
   // CHECK:      call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PTRPTR1]])<br>
   // CHECK:      [[T0:%.*]] = call [[TEST1:%.*]]* @test1_helper()<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: store [[TEST1]]* [[T3]]<br>
   // CHECK-NEXT: [[PCPTR1:%.*]] = bitcast i8** [[PC]] to i8*<br>
@@ -253,7 +253,7 @@ void test1d_message(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PCPTR2]])<br>
   // CHECK-NEXT: [[NINE:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[TEN:%.*]] = bitcast [[TEST1]]* [[NINE]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[TEN]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[TEN]])<br>
   // CHECK-NEXT: [[PTRPTR2:%.*]] = bitcast [[PTR_T]]** [[PTR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTRPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -269,7 +269,7 @@ void test1d_property(void) {<br>
   // CHECK:      call void @llvm.lifetime.start.p0i8(i64 8, i8* [[PTRPTR1]])<br>
   // CHECK:      [[T0:%.*]] = call [[TEST1:%.*]]* @test1_helper()<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST1]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST1]]*<br>
   // CHECK-NEXT: store [[TEST1]]* [[T3]]<br>
   // CHECK-NEXT: [[PCPTR1:%.*]] = bitcast i8** [[PC]] to i8*<br>
@@ -283,7 +283,7 @@ void test1d_property(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PCPTR2]])<br>
   // CHECK-NEXT: [[NINE:%.*]] = load [[TEST1]]*, [[TEST1]]**<br>
   // CHECK-NEXT: [[TEN:%.*]] = bitcast [[TEST1]]* [[NINE]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[TEN]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[TEN]])<br>
   // CHECK-NEXT: [[PTRPTR2:%.*]] = bitcast [[PTR_T]]** [[PTR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTRPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -301,7 +301,7 @@ void test2(Test2 *x) {<br>
   x->ivar = 0;<br>
   // CHECK:      [[X:%.*]] = alloca [[TEST2:%.*]]*<br>
   // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST2]]* {{%.*}} to i8*<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]]) [[NUW]]<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]]) [[NUW]]<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to [[TEST2]]*<br>
   // CHECK-NEXT: store [[TEST2]]* [[T2]], [[TEST2]]** [[X]],<br>
<br>
@@ -312,12 +312,12 @@ void test2(Test2 *x) {<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to i8**<br>
   // CHECK-NEXT: [[T4:%.*]] = load i8*, i8** [[T3]],<br>
   // CHECK-NEXT: store i8* null, i8** [[T3]],<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T4]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T4]]) [[NUW]]<br>
   // CHECK-NOT:  imprecise<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST2]]*, [[TEST2]]** [[X]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST2]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
<br>
   // CHECK-NEXT: ret void<br>
 }<br>
@@ -325,11 +325,11 @@ void test2(Test2 *x) {<br>
 // CHECK-LABEL:      define void @test3(i8*<br>
 void test3(PRECISE_LIFETIME id x) {<br>
   // CHECK:      [[X:%.*]] = alloca i8*,<br>
-  // CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retain(i8* {{%.*}}) [[NUW]]<br>
+  // CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* {{%.*}}) [[NUW]]<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[X]],<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]]<br>
   // CHECK-NOT:  imprecise_release<br>
<br>
   // CHECK-NEXT: ret void  <br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-property.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-property.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-property.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-property.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-property.m Tue Dec 18 12:33:00 2018<br>
@@ -8,11 +8,11 @@ void test0(Test0 *t0, id value) {<br>
   t0.value = value;<br>
 }<br>
 // CHECK-LABEL: define void @test0(<br>
-// CHECK: call void @objc_storeStrong<br>
-// CHECK: call void @objc_storeStrong<br>
+// CHECK: call void @llvm.objc.storeStrong<br>
+// CHECK: call void @llvm.objc.storeStrong<br>
 // CHECK: @objc_msgSend<br>
-// CHECK: call void @objc_storeStrong(<br>
-// CHECK: call void @objc_storeStrong(<br>
+// CHECK: call void @llvm.objc.storeStrong(<br>
+// CHECK: call void @llvm.objc.storeStrong(<br>
<br>
 struct S1 { Class isa; };<br>
 @interface Test1<br>
@@ -62,7 +62,7 @@ static Class theGlobalClass;<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[TEST2]]* [[T1]] to i8*<br>
 // CHECK-NEXT: [[T3:%.*]] = getelementptr inbounds i8, i8* [[T2]], i64 [[OFFSET]]<br>
 // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T4]], i8* [[T0]]) [[NUW:#[0-9]+]]<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T4]], i8* [[T0]]) [[NUW:#[0-9]+]]<br>
 // CHECK-NEXT: ret void<br>
<br>
 // CHECK:    define internal i8* @"\01-[Test2 theClass]"(<br>
@@ -83,7 +83,7 @@ static Class theGlobalClass;<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST2]]* [[T0]] to i8*<br>
 // CHECK-NEXT: [[T2:%.*]] = getelementptr inbounds i8, i8* [[T1]], i64 [[OFFSET]]<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T3]], i8* null) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T3]], i8* null) [[NUW]]<br>
 // CHECK-NEXT: ret void<br>
<br>
 // <a>rdar://13115896</a><br>
@@ -112,11 +112,11 @@ void test3(Test3 *t) {<br>
 // CHECK-NEXT: [[T2:%.*]] = call i8* bitcast ({{.*}} @objc_msgSend to {{.*}})(i8* [[T1]], i8* [[SEL]])<br>
 // CHECK-NEXT: [[T3:%.*]] = load i8*, i8** [[X]],<br>
 // CHECK-NEXT: store i8* [[T2]], i8** [[X]],<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T3]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T3]])<br>
 //   Epilogue.<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[X]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[X]], i8* null)<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST3]]** [[T]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null)<br>
 // CHECK-NEXT: ret void<br>
<br>
 @implementation Test3<br>
@@ -126,7 +126,7 @@ void test3(Test3 *t) {<br>
 }<br>
 // CHECK:    define internal i8* @"\01-[Test3 copyMachine]"(<br>
 // CHECK:      [[T0:%.*]] = call i8* @test3_helper()<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
 // CHECK-NEXT: ret i8* [[T1]]<br>
 - (void) setCopyMachine: (id) x {}<br>
 @end<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-related-result-type.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-related-result-type.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-related-result-type.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-related-result-type.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-related-result-type.m Tue Dec 18 12:33:00 2018<br>
@@ -12,17 +12,17 @@ void test0(Test0 *val) {<br>
 // CHECK-NEXT: store [[TEST0]]* null<br>
 // CHECK-NEXT: bitcast<br>
 // CHECK-NEXT: bitcast<br>
-// CHECK-NEXT: call void @objc_storeStrong(<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(<br>
 // CHECK-NEXT: load [[TEST0]]*, [[TEST0]]** [[VAL]],<br>
 // CHECK-NEXT: load<br>
 // CHECK-NEXT: bitcast<br>
 // CHECK-NEXT: [[T0:%.*]] = call i8* bitcast (<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to [[TEST0]]*<br>
 // CHECK-NEXT: store [[TEST0]]* [[T2]], [[TEST0]]** [[X]]<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST0]]** [[X]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null)<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST0]]** [[VAL]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null)<br>
 // CHECK-NEXT: ret void<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-ternary-op.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-ternary-op.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-ternary-op.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-ternary-op.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-ternary-op.m Tue Dec 18 12:33:00 2018<br>
@@ -22,15 +22,15 @@ void test0(_Bool cond) {<br>
   // CHECK-NEXT: store i1 true, i1* [[RELCOND]]<br>
   // CHECK-NEXT: br label<br>
   // CHECK:      [[T0:%.*]] = phi i8* [ null, {{%.*}} ], [ [[CALL]], {{%.*}} ]<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]]) [[NUW:#[0-9]+]]<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]]) [[NUW:#[0-9]+]]<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[X]],<br>
   // CHECK-NEXT: [[REL:%.*]] = load i1, i1* [[RELCOND]]<br>
   // CHECK-NEXT: br i1 [[REL]],<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[RELVAL]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]]<br>
   // CHECK-NEXT: br label<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]]<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -58,7 +58,7 @@ void test1(int cond) {<br>
   // CHECK-NEXT: store i8* null, i8** [[STRONG]]<br>
   // CHECK-NEXT: [[WEAKPTR1:%.*]] = bitcast i8** [[WEAK]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[WEAKPTR1]])<br>
-  // CHECK-NEXT: call i8* @objc_initWeak(i8** [[WEAK]], i8* null)<br>
+  // CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[WEAK]], i8* null)<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load i32, i32* [[COND]]<br>
   // CHECK-NEXT: [[T1:%.*]] = icmp ne i32 [[T0]], 0<br>
@@ -74,11 +74,11 @@ void test1(int cond) {<br>
   // CHECK-NEXT: [[T0:%.*]] = icmp eq i8** [[ARG]], null<br>
   // CHECK-NEXT: br i1 [[T0]],<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[TEMP1]]<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
   // CHECK-NEXT: call void (...) @clang.arc.use(i8* [[W]]) [[NUW]]<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8*, i8** [[ARG]]<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[ARG]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T2]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T2]])<br>
   // CHECK-NEXT: br label<br>
<br>
   // CHECK:      [[T0:%.*]] = load i32, i32* [[COND]]<br>
@@ -88,7 +88,7 @@ void test1(int cond) {<br>
   // CHECK-NEXT: [[T1:%.*]] = select i1 [[T0]], i8** null, i8** [[TEMP2]]<br>
   // CHECK-NEXT: store i1 false, i1* [[CONDCLEANUP]]<br>
   // CHECK-NEXT: br i1 [[T0]],<br>
-  // CHECK:      [[T0:%.*]] = call i8* @objc_loadWeakRetained(i8** [[ARG]])<br>
+  // CHECK:      [[T0:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[ARG]])<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[CONDCLEANUPSAVE]]<br>
   // CHECK-NEXT: store i1 true, i1* [[CONDCLEANUP]]<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[TEMP2]]<br>
@@ -97,10 +97,10 @@ void test1(int cond) {<br>
   // CHECK-NEXT: [[T0:%.*]] = icmp eq i8** [[ARG]], null<br>
   // CHECK-NEXT: br i1 [[T0]],<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[TEMP2]]<br>
-  // CHECK-NEXT: call i8* @objc_storeWeak(i8** [[ARG]], i8* [[T0]])<br>
+  // CHECK-NEXT: call i8* @llvm.objc.storeWeak(i8** [[ARG]], i8* [[T0]])<br>
   // CHECK-NEXT: br label<br>
<br>
-  // CHECK:      call void @objc_destroyWeak(i8** [[WEAK]])<br>
+  // CHECK:      call void @llvm.objc.destroyWeak(i8** [[WEAK]])<br>
   // CHECK:      [[WEAKPTR2:%.*]] = bitcast i8** [[WEAK]] to i8*<br>
   // CHECK:      call void @llvm.lifetime.end.p0i8(i64 8, i8* [[WEAKPTR2]])<br>
   // CHECK:      [[STRONGPTR2:%.*]] = bitcast i8** [[STRONG]] to i8*<br>
@@ -130,21 +130,21 @@ void test2(int cond) {<br>
   // CHECK-NEXT: br i1<br>
   //   Within true branch, cleanup enabled.<br>
   // CHECK:      [[T0:%.*]] = call i8* @test2_producer()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[CLEANUP_SAVE]]<br>
   // CHECK-NEXT: store i1 true, i1* [[RUN_CLEANUP]]<br>
   // CHECK-NEXT: br label<br>
   //   Join point for conditional operator; retain immediately.<br>
   // CHECK:      [[T0:%.*]] = phi i8* [ [[T1]], {{%.*}} ], [ null, {{%.*}} ]<br>
-  // CHECK-NEXT: [[RESULT:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+  // CHECK-NEXT: [[RESULT:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
   //   Leaving full-expression; run conditional cleanup.<br>
   // CHECK-NEXT: [[T0:%.*]] = load i1, i1* [[RUN_CLEANUP]]<br>
   // CHECK-NEXT: br i1 [[T0]]<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[CLEANUP_SAVE]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: br label<br>
   //   And way down at the end of the loop:<br>
-  // CHECK:      call void @objc_release(i8* [[RESULT]])<br>
+  // CHECK:      call void @llvm.objc.release(i8* [[RESULT]])<br>
 }<br>
<br>
 // CHECK: attributes [[NUW]] = { nounwind }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-unbridged-cast.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-unbridged-cast.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-unbridged-cast.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-unbridged-cast.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-unbridged-cast.m Tue Dec 18 12:33:00 2018<br>
@@ -32,4 +32,4 @@ id MMM()<br>
   return 0;<br>
 }<br>
<br>
-// CHECK-NOT: call i8* @objc_retainAutoreleasedReturnValue<br>
+// CHECK-NOT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-unopt.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-unopt.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-unopt.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-unopt.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-unopt.m Tue Dec 18 12:33:00 2018<br>
@@ -9,7 +9,7 @@ Test0 *test0(void) {<br>
<br>
   // CHECK:      [[LD:%.*]] = load [[TEST0:%.*]]*, [[TEST0:%.*]]** @test0_helper<br>
   // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST0]]* [[LD]] to i8*<br>
-  // CHECK-NEXT: [[T1:%.*]] = tail call i8* @objc_retainAutoreleaseReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = tail call i8* @llvm.objc.retainAutoreleaseReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to [[TEST0]]*<br>
   // CHECK-NEXT: ret [[TEST0]]* [[T2]]<br>
 }<br>
@@ -19,14 +19,14 @@ id test1(void) {<br>
   return test1_helper;<br>
<br>
   // CHECK:      [[LD:%.*]] = load i8*, i8** @test1_helper<br>
-  // CHECK-NEXT: [[T0:%.*]] = tail call i8* @objc_retainAutoreleaseReturnValue(i8* [[LD]])<br>
+  // CHECK-NEXT: [[T0:%.*]] = tail call i8* @llvm.objc.retainAutoreleaseReturnValue(i8* [[LD]])<br>
   // CHECK-NEXT: ret i8* [[T0]]<br>
 }<br>
<br>
 void test2(void) {<br>
   // CHECK:      [[X:%.*]] = alloca i8*<br>
   // CHECK-NEXT: store i8* null, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(i8** [[X]])<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[X]])<br>
   // CHECK-NEXT: ret void<br>
   __weak id x;<br>
 }<br>
@@ -63,7 +63,7 @@ void test5(void) {<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[TEST5]]*, [[TEST5]]** [[Y]],<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST5]]** [[X]] to i8**<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[TEST5]]* [[T0]] to i8*<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T1]], i8* [[T2]])<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T1]], i8* [[T2]])<br>
 // CHECK-NEXT: [[T3:%.*]] = icmp ne [[TEST5]]* [[T0]], null<br>
 // CHECK-NEXT: br i1 [[T3]],<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-unoptimized-byref-var.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-unoptimized-byref-var.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-unoptimized-byref-var.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-unoptimized-byref-var.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-unoptimized-byref-var.m Tue Dec 18 12:33:00 2018<br>
@@ -9,8 +9,8 @@ void test19() {<br>
 // CHECK-UNOPT: [[X2:%.*]] = getelementptr inbounds [[BYREF_T:%.*]], [[BYREF_T:%.*]]* [[VAR1:%.*]], i32 0, i32 6<br>
 // CHECK-UNOPT-NEXT: [[SIX:%.*]] = load i8*, i8** [[X2]], align 8<br>
 // CHECK-UNOPT-NEXT: store i8* null, i8** [[X]], align 8<br>
-// CHECK-UNOPT-NEXT: call void @objc_storeStrong(i8** [[X]], i8* [[SIX]]) [[NUW:#[0-9]+]]<br>
-// CHECK-UNOPT-NEXT: call void @objc_storeStrong(i8** [[X2]], i8* null) [[NUW]]<br>
+// CHECK-UNOPT-NEXT: call void @llvm.objc.storeStrong(i8** [[X]], i8* [[SIX]]) [[NUW:#[0-9]+]]<br>
+// CHECK-UNOPT-NEXT: call void @llvm.objc.storeStrong(i8** [[X2]], i8* null) [[NUW]]<br>
 // CHECK-UNOPT-NEXT: ret void<br>
 }<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-unsafeclaim.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-unsafeclaim.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-unsafeclaim.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-unsafeclaim.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-unsafeclaim.m Tue Dec 18 12:33:00 2018<br>
@@ -29,7 +29,7 @@ void test_assign() {<br>
 // CHECK:                [[T0:%.*]] = call [[A:.*]]* @makeA()<br>
 // CHECK-MARKED-NEXT:    call void asm sideeffect<br>
 // CHECK-NEXT:           [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:           [[T2:%.*]] = call i8* @objc_unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:           [[T2:%.*]] = call i8* @llvm.objc.unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:           [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:           [[T4:%.*]] = bitcast [[A]]* [[T3]] to i8*<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[X]]<br>
@@ -41,7 +41,7 @@ void test_assign() {<br>
 // DISABLED:             [[T0:%.*]] = call [[A:.*]]* @makeA()<br>
 // DISABLED-MARKED-NEXT: call void asm sideeffect<br>
 // DISABLED-NEXT:        [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// DISABLED-NEXT:        [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+// DISABLED-NEXT:        [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
<br>
 void test_assign_assign() {<br>
   __unsafe_unretained id x, y;<br>
@@ -53,7 +53,7 @@ void test_assign_assign() {<br>
 // CHECK:                [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT:    call void asm sideeffect<br>
 // CHECK-NEXT:           [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:           [[T2:%.*]] = call i8* @objc_unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:           [[T2:%.*]] = call i8* @llvm.objc.unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:           [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:           [[T4:%.*]] = bitcast [[A]]* [[T3]] to i8*<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[Y]]<br>
@@ -75,18 +75,18 @@ void test_strong_assign_assign() {<br>
 // CHECK:                [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT:    call void asm sideeffect<br>
 // CHECK-NEXT:           [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:           [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:           [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:           [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:           [[T4:%.*]] = bitcast [[A]]* [[T3]] to i8*<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[Y]]<br>
 // CHECK-NEXT:           [[OLD:%.*]] = load i8*, i8** [[X]]<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[X]]<br>
-// CHECK-NEXT:           call void @objc_release(i8* [[OLD]]<br>
+// CHECK-NEXT:           call void @llvm.objc.release(i8* [[OLD]]<br>
 // CHECK-OPTIMIZED-NEXT: bitcast<br>
 // CHECK-OPTIMIZED-NEXT: lifetime.end<br>
-// CHECK-UNOPTIMIZED-NEXT: call void @objc_storeStrong(i8** [[X]], i8* null)<br>
+// CHECK-UNOPTIMIZED-NEXT: call void @llvm.objc.storeStrong(i8** [[X]], i8* null)<br>
 // CHECK-OPTIMIZED-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-// CHECK-OPTIMIZED-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-OPTIMIZED-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
 // CHECK-OPTIMIZED-NEXT: bitcast<br>
 // CHECK-OPTIMIZED-NEXT: lifetime.end<br>
 // CHECK-NEXT:           ret void<br>
@@ -102,16 +102,16 @@ void test_assign_strong_assign() {<br>
 // CHECK:                [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT:    call void asm sideeffect<br>
 // CHECK-NEXT:           [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:           [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:           [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:           [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:           [[T4:%.*]] = bitcast [[A]]* [[T3]] to i8*<br>
 // CHECK-NEXT:           [[OLD:%.*]] = load i8*, i8** [[Y]]<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[Y]]<br>
-// CHECK-NEXT:           call void @objc_release(i8* [[OLD]]<br>
+// CHECK-NEXT:           call void @llvm.objc.release(i8* [[OLD]]<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[X]]<br>
-// CHECK-UNOPTIMIZED-NEXT: call void @objc_storeStrong(i8** [[Y]], i8* null)<br>
+// CHECK-UNOPTIMIZED-NEXT: call void @llvm.objc.storeStrong(i8** [[Y]], i8* null)<br>
 // CHECK-OPTIMIZED-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-// CHECK-OPTIMIZED-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-OPTIMIZED-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
 // CHECK-OPTIMIZED-NEXT: bitcast<br>
 // CHECK-OPTIMIZED-NEXT: lifetime.end<br>
 // CHECK-OPTIMIZED-NEXT: bitcast<br>
@@ -126,7 +126,7 @@ void test_init() {<br>
 // CHECK:                [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT:    call void asm sideeffect<br>
 // CHECK-NEXT:           [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:           [[T2:%.*]] = call i8* @objc_unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:           [[T2:%.*]] = call i8* @llvm.objc.unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:           [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:           [[T4:%.*]] = bitcast [[A]]* [[T3]] to i8*<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[X]]<br>
@@ -144,7 +144,7 @@ void test_init_assignment() {<br>
 // CHECK:                [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT:    call void asm sideeffect<br>
 // CHECK-NEXT:           [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:           [[T2:%.*]] = call i8* @objc_unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:           [[T2:%.*]] = call i8* @llvm.objc.unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:           [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:           [[T4:%.*]] = bitcast [[A]]* [[T3]] to i8*<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[X]]<br>
@@ -165,14 +165,14 @@ void test_strong_init_assignment() {<br>
 // CHECK:                [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT:    call void asm sideeffect<br>
 // CHECK-NEXT:           [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:           [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:           [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:           [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:           [[T4:%.*]] = bitcast [[A]]* [[T3]] to i8*<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[X]]<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[Y]]<br>
-// CHECK-UNOPTIMIZED-NEXT: call void @objc_storeStrong(i8** [[Y]], i8* null)<br>
+// CHECK-UNOPTIMIZED-NEXT: call void @llvm.objc.storeStrong(i8** [[Y]], i8* null)<br>
 // CHECK-OPTIMIZED-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-// CHECK-OPTIMIZED-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-OPTIMIZED-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
 // CHECK-OPTIMIZED-NEXT: bitcast<br>
 // CHECK-OPTIMIZED-NEXT: lifetime.end<br>
 // CHECK-OPTIMIZED-NEXT: bitcast<br>
@@ -189,18 +189,18 @@ void test_init_strong_assignment() {<br>
 // CHECK:                [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT:    call void asm sideeffect<br>
 // CHECK-NEXT:           [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:           [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:           [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:           [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:           [[T4:%.*]] = bitcast [[A]]* [[T3]] to i8*<br>
 // CHECK-NEXT:           [[OLD:%.*]] = load i8*, i8** [[X]]<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[X]]<br>
-// CHECK-NEXT:           call void @objc_release(i8* [[OLD]])<br>
+// CHECK-NEXT:           call void @llvm.objc.release(i8* [[OLD]])<br>
 // CHECK-NEXT:           store i8* [[T4]], i8** [[Y]]<br>
 // CHECK-OPTIMIZED-NEXT: bitcast<br>
 // CHECK-OPTIMIZED-NEXT: lifetime.end<br>
-// CHECK-UNOPTIMIZED-NEXT: call void @objc_storeStrong(i8** [[X]], i8* null)<br>
+// CHECK-UNOPTIMIZED-NEXT: call void @llvm.objc.storeStrong(i8** [[X]], i8* null)<br>
 // CHECK-OPTIMIZED-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-// CHECK-OPTIMIZED-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-OPTIMIZED-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
 // CHECK-OPTIMIZED-NEXT: bitcast<br>
 // CHECK-OPTIMIZED-NEXT: lifetime.end<br>
 // CHECK-NEXT: ret void<br>
@@ -212,7 +212,7 @@ void test_ignored() {<br>
 // CHECK:             [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT: call void asm sideeffect<br>
 // CHECK-NEXT:        [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:        [[T2:%.*]] = call i8* @objc_unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:        [[T2:%.*]] = call i8* @llvm.objc.unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:        bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:        ret void<br>
<br>
@@ -223,7 +223,7 @@ void test_cast_to_void() {<br>
 // CHECK:             [[T0:%.*]] = call [[A]]* @makeA()<br>
 // CHECK-MARKED-NEXT: call void asm sideeffect<br>
 // CHECK-NEXT:        [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK-NEXT:        [[T2:%.*]] = call i8* @objc_unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT:        [[T2:%.*]] = call i8* @llvm.objc.unsafeClaimAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT:        bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK-NEXT:        ret void<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-weak-property.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-weak-property.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-weak-property.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-weak-property.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-weak-property.m Tue Dec 18 12:33:00 2018<br>
@@ -21,8 +21,8 @@<br>
 // CHECK-NEXT:  [[T2:%.*]] = bitcast [[WPT]]* [[T0]] to i8*<br>
 // CHECK-NEXT:  [[T3:%.*]] = getelementptr inbounds i8, i8* [[T2]], i64 [[T1]]<br>
 // CHECK-NEXT:  [[T4:%.*]] = bitcast i8* [[T3]] to i8**<br>
-// CHECK-NEXT:  [[T5:%.*]] = call i8* @objc_loadWeakRetained(i8** [[T4]])<br>
-// CHECK-NEXT:  [[T6:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[T5]])<br>
+// CHECK-NEXT:  [[T5:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[T4]])<br>
+// CHECK-NEXT:  [[T6:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[T5]])<br>
 // CHECK-NEXT:  ret i8* [[T6]]<br>
<br>
 // CHECK:     define internal void @"\01-[WeakPropertyTest setPROP:]"<br>
@@ -38,7 +38,7 @@<br>
 // CHECK-NEXT:  [[T2:%.*]] = bitcast [[WPT]]* [[T0]] to i8*<br>
 // CHECK-NEXT:  [[T3:%.*]] = getelementptr inbounds i8, i8* [[T2]], i64 [[T1]]<br>
 // CHECK-NEXT:  [[T4:%.*]] = bitcast i8* [[T3]] to i8**<br>
-// CHECK-NEXT:  call i8* @objc_storeWeak(i8** [[T4]], i8* [[V]])<br>
+// CHECK-NEXT:  call i8* @llvm.objc.storeWeak(i8** [[T4]], i8* [[V]])<br>
 // CHECK-NEXT:  ret void<br>
<br>
 // CHECK:     define internal void @"\01-[WeakPropertyTest .cxx_destruct]"<br>
@@ -51,5 +51,5 @@<br>
 // CHECK-NEXT:  [[T2:%.*]] = bitcast [[WPT]]* [[T0]] to i8*<br>
 // CHECK-NEXT:  [[T3:%.*]] = getelementptr inbounds i8, i8* [[T2]], i64 [[T1]]<br>
 // CHECK-NEXT:  [[T4:%.*]] = bitcast i8* [[T3]] to i8**<br>
-// CHECK-NEXT:  call void @objc_destroyWeak(i8** [[T4]])<br>
+// CHECK-NEXT:  call void @llvm.objc.destroyWeak(i8** [[T4]])<br>
 // CHECK-NEXT:  ret void<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-weak.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-weak.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-weak.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-weak.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-weak.m Tue Dec 18 12:33:00 2018<br>
@@ -15,6 +15,6 @@ void test0(__weak B **src) {<br>
 // CHECK-NEXT:  [[T1:%.*]] = bitcast [[B]]** [[T0]] to [[A]]**<br>
 // CHECK-NEXT:  [[T2:%.*]] = bitcast [[A]]** [[DEST]] to i8**<br>
 // CHECK-NEXT:  [[T3:%.*]] = bitcast [[A]]** [[T1]] to i8**<br>
-// CHECK-NEXT:  call void @objc_copyWeak(i8** [[T2]], i8** [[T3]])<br>
+// CHECK-NEXT:  call void @llvm.objc.copyWeak(i8** [[T2]], i8** [[T3]])<br>
 // CHECK-NEXT:  [[T0:%.*]] = bitcast [[A]]** [[DEST]] to i8**<br>
-// CHECK:       call void @objc_destroyWeak(i8** [[T0]])<br>
+// CHECK:       call void @llvm.objc.destroyWeak(i8** [[T0]])<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc-with-atthrow.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-with-atthrow.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc-with-atthrow.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc-with-atthrow.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc-with-atthrow.m Tue Dec 18 12:33:00 2018<br>
@@ -11,8 +11,8 @@ void test() {<br>
<br>
 // CHECK-LABEL:    define void @test()<br>
 // CHECK:      [[T0:%.*]] = call i8* @make()<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_autorelease(i8* [[T1]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.autorelease(i8* [[T1]])<br>
 // CHECK-NEXT: call void @objc_exception_throw(i8* [[T2]]) [[NR:#[0-9]+]]<br>
 // CHECK-NEXT: unreachable<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc.ll?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc.ll?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc.ll (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc.ll Tue Dec 18 12:33:00 2018<br>
@@ -2,8 +2,8 @@<br>
<br>
 target triple = "x86_64-apple-darwin10"<br>
<br>
-declare i8* @objc_retain(i8*)<br>
-declare void @objc_release(i8*)<br>
+declare i8* @llvm.objc.retain(i8*)<br>
+declare void @llvm.objc.release(i8*)<br>
<br>
 ; CHECK-LABEL: define void @test(<br>
 ; CHECK-NOT: @objc_<br>
@@ -13,15 +13,15 @@ entry:<br>
   br label %loop<br>
<br>
 loop:<br>
-  call i8* @objc_retain(i8* %x)<br>
+  call i8* @llvm.objc.retain(i8* %x)<br>
   %q = load i1, i1* %p<br>
   br i1 %q, label %loop.more, label %exit<br>
<br>
 loop.more:<br>
-  call void @objc_release(i8* %x)<br>
+  call void @llvm.objc.release(i8* %x)<br>
   br label %loop<br>
<br>
 exit:<br>
-  call void @objc_release(i8* %x)<br>
+  call void @llvm.objc.release(i8* %x)<br>
   ret void<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/arc.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/arc.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/arc.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/arc.m Tue Dec 18 12:33:00 2018<br>
@@ -6,39 +6,39 @@<br>
 // RUN: %clang_cc1 -fobjc-runtime=macosx-10.6.0 -triple x86_64-apple-darwin10 -Wno-objc-root-class -Wno-incompatible-pointer-types -Wno-arc-unsafe-retained-assign -emit-llvm -fblocks -fobjc-arc -fobjc-runtime-has-weak -o - %s | FileCheck -check-prefix=ARC-ALIEN %s<br>
 // RUN: %clang_cc1 -fobjc-runtime=macosx-10.7.0 -triple x86_64-apple-darwin11 -Wno-objc-root-class -Wno-incompatible-pointer-types -Wno-arc-unsafe-retained-assign -emit-llvm -fblocks -fobjc-arc -fobjc-runtime-has-weak -o - %s | FileCheck -check-prefix=ARC-NATIVE %s<br>
<br>
-// ARC-ALIEN: declare extern_weak void @objc_storeStrong(i8**, i8*)<br>
-// ARC-ALIEN: declare extern_weak i8* @objc_retain(i8*)<br>
-// ARC-ALIEN: declare extern_weak i8* @objc_autoreleaseReturnValue(i8*)<br>
+// ARC-ALIEN: declare extern_weak void @llvm.objc.storeStrong(i8**, i8*)<br>
+// ARC-ALIEN: declare extern_weak i8* @llvm.objc.retain(i8*)<br>
+// ARC-ALIEN: declare extern_weak i8* @llvm.objc.autoreleaseReturnValue(i8*)<br>
 // ARC-ALIEN: declare i8* @objc_msgSend(i8*, i8*, ...) [[NLB:#[0-9]+]]<br>
-// ARC-ALIEN: declare extern_weak void @objc_release(i8*)<br>
-// ARC-ALIEN: declare extern_weak i8* @objc_retainAutoreleasedReturnValue(i8*)<br>
-// ARC-ALIEN: declare extern_weak i8* @objc_initWeak(i8**, i8*)<br>
-// ARC-ALIEN: declare extern_weak i8* @objc_storeWeak(i8**, i8*)<br>
-// ARC-ALIEN: declare extern_weak i8* @objc_loadWeakRetained(i8**)<br>
-// ARC-ALIEN: declare extern_weak void @objc_destroyWeak(i8**)<br>
-// ARC-ALIEN: declare extern_weak i8* @objc_autorelease(i8*)<br>
-// ARC-ALIEN: declare extern_weak i8* @objc_retainAutorelease(i8*)<br>
-<br>
-// ARC-NATIVE: declare void @objc_storeStrong(i8**, i8*)<br>
-// ARC-NATIVE: declare i8* @objc_retain(i8*) [[NLB:#[0-9]+]]<br>
-// ARC-NATIVE: declare i8* @objc_autoreleaseReturnValue(i8*)<br>
-// ARC-NATIVE: declare i8* @objc_msgSend(i8*, i8*, ...) [[NLB]]<br>
-// ARC-NATIVE: declare void @objc_release(i8*) [[NLB]]<br>
-// ARC-NATIVE: declare i8* @objc_retainAutoreleasedReturnValue(i8*)<br>
-// ARC-NATIVE: declare i8* @objc_initWeak(i8**, i8*)<br>
-// ARC-NATIVE: declare i8* @objc_storeWeak(i8**, i8*)<br>
-// ARC-NATIVE: declare i8* @objc_loadWeakRetained(i8**)<br>
-// ARC-NATIVE: declare void @objc_destroyWeak(i8**)<br>
-// ARC-NATIVE: declare i8* @objc_autorelease(i8*)<br>
-// ARC-NATIVE: declare i8* @objc_retainAutorelease(i8*)<br>
+// ARC-ALIEN: declare extern_weak void @llvm.objc.release(i8*)<br>
+// ARC-ALIEN: declare extern_weak i8* @llvm.objc.retainAutoreleasedReturnValue(i8*)<br>
+// ARC-ALIEN: declare extern_weak i8* @llvm.objc.initWeak(i8**, i8*)<br>
+// ARC-ALIEN: declare extern_weak i8* @llvm.objc.storeWeak(i8**, i8*)<br>
+// ARC-ALIEN: declare extern_weak i8* @llvm.objc.loadWeakRetained(i8**)<br>
+// ARC-ALIEN: declare extern_weak void @llvm.objc.destroyWeak(i8**)<br>
+// ARC-ALIEN: declare extern_weak i8* @llvm.objc.autorelease(i8*)<br>
+// ARC-ALIEN: declare extern_weak i8* @llvm.objc.retainAutorelease(i8*)<br>
+<br>
+// ARC-NATIVE: declare void @llvm.objc.storeStrong(i8**, i8*)<br>
+// ARC-NATIVE: declare i8* @llvm.objc.retain(i8*)<br>
+// ARC-NATIVE: declare i8* @llvm.objc.autoreleaseReturnValue(i8*)<br>
+// ARC-NATIVE: declare i8* @objc_msgSend(i8*, i8*, ...) [[NLB:#[0-9]+]]<br>
+// ARC-NATIVE: declare void @llvm.objc.release(i8*)<br>
+// ARC-NATIVE: declare i8* @llvm.objc.retainAutoreleasedReturnValue(i8*)<br>
+// ARC-NATIVE: declare i8* @llvm.objc.initWeak(i8**, i8*)<br>
+// ARC-NATIVE: declare i8* @llvm.objc.storeWeak(i8**, i8*)<br>
+// ARC-NATIVE: declare i8* @llvm.objc.loadWeakRetained(i8**)<br>
+// ARC-NATIVE: declare void @llvm.objc.destroyWeak(i8**)<br>
+// ARC-NATIVE: declare i8* @llvm.objc.autorelease(i8*)<br>
+// ARC-NATIVE: declare i8* @llvm.objc.retainAutorelease(i8*)<br>
<br>
 // CHECK-LABEL: define void @test0<br>
 void test0(id x) {<br>
   // CHECK:      [[X:%.*]] = alloca i8*<br>
-  // CHECK-NEXT: [[PARM:%.*]] = call i8* @objc_retain(i8* {{.*}})<br>
+  // CHECK-NEXT: [[PARM:%.*]] = call i8* @llvm.objc.retain(i8* {{.*}})<br>
   // CHECK-NEXT: store i8* [[PARM]], i8** [[X]]<br>
   // CHECK-NEXT: [[TMP:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[TMP]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[TMP]])<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -46,20 +46,20 @@ void test0(id x) {<br>
 id test1(id x) {<br>
   // CHECK:      [[X:%.*]] = alloca i8*<br>
   // CHECK-NEXT: [[Y:%.*]] = alloca i8*<br>
-  // CHECK-NEXT: [[PARM:%.*]] = call i8* @objc_retain(i8* {{%.*}})<br>
+  // CHECK-NEXT: [[PARM:%.*]] = call i8* @llvm.objc.retain(i8* {{%.*}})<br>
   // CHECK-NEXT: store i8* [[PARM]], i8** [[X]]<br>
   // CHECK-NEXT: [[YPTR1:%.*]] = bitcast i8** [[Y]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[YPTR1]])<br>
   // CHECK-NEXT: store i8* null, i8** [[Y]]<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-  // CHECK-NEXT: [[RET:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+  // CHECK-NEXT: [[RET:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: [[YPTR2:%.*]] = bitcast i8** [[Y]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[YPTR2]])<br>
   // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
-  // CHECK-NEXT: [[T1:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[RET]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[RET]])<br>
   // CHECK-NEXT: ret i8* [[T1]]<br>
   id y;<br>
   return y;<br>
@@ -113,19 +113,19 @@ void test3_unelided() {<br>
   // CHECK-NEXT: [[ALLOC:%.*]] = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: bitcast<br>
-  // CHECK-NEXT: call void @objc_release(i8*<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8*<br>
   [Test3 alloc];<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST3]]*, [[TEST3]]** [[X]]<br>
   // CHECK-NEXT: load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST3]]* [[T0]] to i8*<br>
   // CHECK-NEXT: [[COPY:%.*]] = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend {{.*}})(i8* [[T1]],<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[COPY]]) [[NUW:#[0-9]+]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[COPY]]) [[NUW:#[0-9]+]]<br>
   [x copy];<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST3]]*, [[TEST3]]** [[X]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST3]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]]<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast [[TEST3]]** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -163,13 +163,13 @@ void test3() {<br>
   // Assignment to x.<br>
   // CHECK-NEXT: [[TMP:%.*]] = load i8*, i8** [[X]]<br>
   // CHECK-NEXT: store i8* [[COPY]], i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[TMP]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[TMP]]) [[NUW]]<br>
<br>
   x = [x copy];<br>
<br>
   // Cleanup for x.<br>
   // CHECK-NEXT: [[TMP:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[TMP]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[TMP]]) [[NUW]]<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -193,7 +193,7 @@ id test4() {<br>
   // Retain/release elided.<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: [[INIT:%.*]] = bitcast<br>
-  // CHECK-NEXT: [[RET:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[INIT]])<br>
+  // CHECK-NEXT: [[RET:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[INIT]])<br>
<br>
   // CHECK-NEXT: ret i8* [[RET]]<br>
<br>
@@ -212,10 +212,10 @@ void test5(Test5 *x, id y) {<br>
   // CHECK:      [[X:%.*]] = alloca [[TEST5:%.*]]*,<br>
   // CHECK-NEXT: [[Y:%.*]] = alloca i8*<br>
   // CHECK-NEXT: bitcast [[TEST5]]* {{%.*}} to i8*<br>
-  // CHECK-NEXT: call i8* @objc_retain<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retain<br>
   // CHECK-NEXT: [[PARMX:%.*]] = bitcast i8* {{%.*}} to [[TEST5]]*<br>
   // CHECK-NEXT: store [[TEST5]]* [[PARMX]], [[TEST5]]** [[X]]<br>
-  // CHECK-NEXT: call i8* @objc_retain<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retain<br>
   // CHECK-NEXT: store<br>
<br>
   // CHECK-NEXT: load [[TEST5]]*, [[TEST5]]** [[X]]<br>
@@ -225,7 +225,7 @@ void test5(Test5 *x, id y) {<br>
   // CHECK-NEXT: [[VAR:%.*]] = bitcast<br>
   // CHECK-NEXT: [[TMP:%.*]] = load i8*, i8** [[VAR]]<br>
   // CHECK-NEXT: store i8* null, i8** [[VAR]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[TMP]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[TMP]]) [[NUW]]<br>
   x->var = 0;<br>
<br>
   // CHECK-NEXT: [[YVAL:%.*]] = load i8*, i8** [[Y]]<br>
@@ -234,18 +234,18 @@ void test5(Test5 *x, id y) {<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: getelementptr<br>
   // CHECK-NEXT: [[VAR:%.*]] = bitcast<br>
-  // CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retain(i8* [[YVAL]]) [[NUW]]<br>
+  // CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* [[YVAL]]) [[NUW]]<br>
   // CHECK-NEXT: [[TMP:%.*]] = load i8*, i8** [[VAR]]<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[VAR]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[TMP]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[TMP]]) [[NUW]]<br>
   x->var = y;<br>
<br>
   // Epilogue.<br>
   // CHECK-NEXT: [[TMP:%.*]] = load i8*, i8** [[Y]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[TMP]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[TMP]]) [[NUW]]<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST5]]*, [[TEST5]]** [[X]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST5]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]]<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -258,7 +258,7 @@ void test6() {<br>
   // CHECK-NEXT: [[CALL:%.*]] = call i8* @test6_helper()<br>
   // CHECK-NEXT: store i8* [[CALL]], i8** [[X]]<br>
   // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -273,10 +273,10 @@ void test7() {<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[XPTR1]])<br>
   // CHECK-NEXT: store i8* null, i8** [[X]]<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]]) [[NUW]]<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]]) [[NUW]]<br>
   // CHECK-NEXT: call void @test7_helper(i8* [[T1]])<br>
   // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -292,7 +292,7 @@ void test8() {<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[XPTR1]])<br>
   // CHECK-NEXT: [[T0:%.*]] = call i8* @test8_helper()<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -318,25 +318,25 @@ void test10() {<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: [[T0:%.*]] = call [[TEST10]]* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST10]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[V:%.*]] = bitcast i8* [[T2]] to [[TEST10]]*<br>
   // CHECK-NEXT: load i8*, i8** @OBJC_SELECTOR_REFERENCES_{{[0-9]*}}<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: [[T0:%.*]] = call [[TEST10]]* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST10]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST10]]*<br>
   // CHECK-NEXT: [[T4:%.*]] = bitcast [[TEST10]]* [[T3]] to i8*<br>
   // CHECK-NEXT: store i8* [[T4]], i8** [[Y]]<br>
   // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST10]]* [[V]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: [[YPTR2:%.*]] = bitcast i8** [[Y]] to i8*<br>
   // CHECK-NEXT: void @llvm.lifetime.end.p0i8(i64 8, i8* [[YPTR2]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST10]]*, [[TEST10]]** [[X]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST10]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast [[TEST10]]** [[X]] to i8*<br>
   // CHECK-NEXT: void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -353,7 +353,7 @@ void test11(id (*f)(void) __attribute__(<br>
   // CHECK-NEXT: [[T1:%.*]] = call i8* [[T0]]()<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[X]], align<br>
   // CHECK-NEXT: [[T3:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T3]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T3]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -371,27 +371,27 @@ void test12(void) {<br>
   // CHECK-NEXT: [[XPTR1:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[XPTR1]])<br>
   // CHECK-NEXT: [[T0:%.*]] = call i8* @test12_helper()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
-  // CHECK-NEXT: call i8* @objc_initWeak(i8** [[X]], i8* [[T1]])<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[X]], i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
<br>
   x = test12_helper();<br>
   // CHECK-NEXT: [[T0:%.*]] = call i8* @test12_helper()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
-  // CHECK-NEXT: call i8* @objc_storeWeak(i8** [[X]], i8* [[T1]])<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: call i8* @llvm.objc.storeWeak(i8** [[X]], i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
<br>
   id y = x;<br>
   // CHECK-NEXT: [[YPTR1:%.*]] = bitcast i8** [[Y]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[YPTR1]])<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_loadWeakRetained(i8** [[X]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[X]])<br>
   // CHECK-NEXT: store i8* [[T2]], i8** [[Y]], align<br>
<br>
   // CHECK-NEXT: [[T4:%.*]] = load i8*, i8** [[Y]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T4]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T4]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[YPTR2:%.*]] = bitcast i8** [[Y]] to i8*<br>
   // CHECK-NEXT: void @llvm.lifetime.end.p0i8(i64 8, i8* [[YPTR2]])<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(i8** [[X]])<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[X]])<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK: ret void<br>
@@ -410,7 +410,7 @@ void test13(void) {<br>
   extern fnty *test13_func;<br>
   // CHECK-NEXT: [[FN:%.*]] = load void (i8*)*, void (i8*)** @test13_func, align<br>
   // CHECK-NEXT: [[X_VAL:%.*]] = load i8*, i8** [[X]], align<br>
-  // CHECK-NEXT: [[X_TMP:%.*]] = call i8* @objc_retain(i8* [[X_VAL]]) [[NUW]]<br>
+  // CHECK-NEXT: [[X_TMP:%.*]] = call i8* @llvm.objc.retain(i8* [[X_VAL]]) [[NUW]]<br>
   // CHECK-NEXT: call void [[FN]](i8* [[X_TMP]])<br>
   test13_func(x);<br>
<br>
@@ -420,14 +420,14 @@ void test13(void) {<br>
   // CHECK-NEXT: [[BLOCK_FN_PTR:%.*]] = getelementptr inbounds [[BLOCKTY]], [[BLOCKTY]]* [[BLOCK]], i32 0, i32 3<br>
   // CHECK-NEXT: [[BLOCK_OPAQUE:%.*]] = bitcast [[BLOCKTY]]* [[BLOCK]] to i8*<br>
   // CHECK-NEXT: [[X_VAL:%.*]] = load i8*, i8** [[X]], align<br>
-  // CHECK-NEXT: [[X_TMP:%.*]] = call i8* @objc_retain(i8* [[X_VAL]]) [[NUW]]<br>
+  // CHECK-NEXT: [[X_TMP:%.*]] = call i8* @llvm.objc.retain(i8* [[X_VAL]]) [[NUW]]<br>
   // CHECK-NEXT: [[BLOCK_FN_TMP:%.*]] = load i8*, i8** [[BLOCK_FN_PTR]]<br>
   // CHECK-NEXT: [[BLOCK_FN:%.*]] = bitcast i8* [[BLOCK_FN_TMP]] to void (i8*, i8*)*<br>
   // CHECK-NEXT: call void [[BLOCK_FN]](i8* [[BLOCK_OPAQUE]], i8* [[X_TMP]])<br>
   test13_block(x);<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]]<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -479,14 +479,14 @@ void test13(void) {<br>
   // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST16]]* [[BASE]] to i8*<br>
   // CHECK-NEXT: [[T1:%.*]] = getelementptr inbounds i8, i8* [[T0]], i64 [[Y_OFF]]<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to i8**<br>
-  // CHECK-NEXT: call void @objc_storeStrong(i8** [[T2]], i8* null) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T2]], i8* null) [[NUW]]<br>
<br>
   // Destroy z.<br>
   // CHECK-NEXT: [[Z_OFF:%.*]] = load i64, i64* @"OBJC_IVAR_$_Test16.z"<br>
   // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST16]]* [[BASE]] to i8*<br>
   // CHECK-NEXT: [[T1:%.*]] = getelementptr inbounds i8, i8* [[T0]], i64 [[Z_OFF]]<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to i8**<br>
-  // CHECK-NEXT: call void @objc_storeStrong(i8** [[T2]], i8* null) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T2]], i8* null) [[NUW]]<br>
<br>
   // CHECK-NEXT: ret void<br>
<br>
@@ -514,11 +514,11 @@ void test19() {<br>
   x[2] = test19_helper();<br>
<br>
   // CHECK-NEXT: [[CALL:%.*]] = call i8* @test19_helper()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[CALL]]) [[NUW]]<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[CALL]]) [[NUW]]<br>
   // CHECK-NEXT: [[SLOT:%.*]] = getelementptr inbounds [5 x i8*], [5 x i8*]* [[X]], i64 0, i64 2<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[SLOT]]<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[SLOT]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]]<br>
<br>
   // CHECK-NEXT: [[BEGIN:%.*]] = getelementptr inbounds [5 x i8*], [5 x i8*]* [[X]], i32 0, i32 0<br>
   // CHECK-NEXT: [[END:%.*]] = getelementptr inbounds i8*, i8** [[BEGIN]], i64 5<br>
@@ -527,7 +527,7 @@ void test19() {<br>
   // CHECK:      [[AFTER:%.*]] = phi i8** [ [[END]], {{%.*}} ], [ [[NEXT:%.*]], {{%.*}} ]<br>
   // CHECK-NEXT: [[CUR:%.*]] = getelementptr inbounds i8*, i8** [[AFTER]], i64 -1<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[CUR]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[EQ:%.*]] = icmp eq i8** [[CUR]], [[BEGIN]]<br>
   // CHECK-NEXT: br i1 [[EQ]],<br>
<br>
@@ -570,7 +570,7 @@ void test20(unsigned n) {<br>
   // CHECK:      [[AFTER:%.*]] = phi i8** [ [[END]], {{%.*}} ], [ [[CUR:%.*]], {{%.*}} ]<br>
   // CHECK-NEXT: [[CUR:%.*]] = getelementptr inbounds i8*, i8** [[AFTER]], i64 -1<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[CUR]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[EQ:%.*]] = icmp eq i8** [[CUR]], [[VLA]]<br>
   // CHECK-NEXT: br i1 [[EQ]],<br>
<br>
@@ -620,7 +620,7 @@ void test21(unsigned n) {<br>
   // CHECK:      [[AFTER:%.*]] = phi i8** [ [[END]], {{%.*}} ], [ [[CUR:%.*]], {{%.*}} ]<br>
   // CHECK-NEXT: [[CUR:%.*]] = getelementptr inbounds i8*, i8** [[AFTER]], i64 -1<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[CUR]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
   // CHECK-NEXT: [[EQ:%.*]] = icmp eq i8** [[CUR]], [[BEGIN]]<br>
   // CHECK-NEXT: br i1 [[EQ]],<br>
<br>
@@ -656,7 +656,7 @@ void test21(unsigned n) {<br>
 // CHECK-NEXT: br label<br>
 // CHECK:      [[PAST:%.*]] = phi i8** [ [[END]], {{%.*}} ], [ [[CUR:%.*]], {{%.*}} ]<br>
 // CHECK-NEXT: [[CUR]] = getelementptr inbounds i8*, i8** [[PAST]], i64 -1<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[CUR]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[CUR]], i8* null)<br>
 // CHECK-NEXT: [[ISDONE:%.*]] = icmp eq i8** [[CUR]], [[BEGIN]]<br>
 // CHECK-NEXT: br i1 [[ISDONE]],<br>
 // CHECK:      ret void<br>
@@ -674,12 +674,12 @@ void test21(unsigned n) {<br>
 // CHECK-NEXT: store i8* {{%.*}}, i8** [[CMD]]<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[TEST27]]*, [[TEST27]]** [[SELF]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST27]]* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST27]]*<br>
 // CHECK-NEXT: [[RET:%.*]] = bitcast [[TEST27]]* [[T3]] to i8*<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[TEST27]]*, [[TEST27]]** [[SELF]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST27]]* [[T0]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
 // CHECK-NEXT: ret i8* [[RET]]<br>
<br>
 @end<br>
@@ -697,7 +697,7 @@ void test21(unsigned n) {<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[TEST28]]* [[SELF]] to i8*<br>
 // CHECK-NEXT: [[T1:%.*]] = getelementptr inbounds i8, i8* [[T0]], i64 [[OFFSET]]<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T2]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T2]], i8* null)<br>
 // CHECK-NEXT: ret void<br>
<br>
 @interface Test29_super<br>
@@ -738,14 +738,14 @@ static id _test29_allocator = 0;<br>
 // Return statement.<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[CALL]]<br>
 // CHECK-NEXT: [[CALL:%.*]] = bitcast<br>
-// CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retain(i8* [[CALL]]) [[NUW]]<br>
+// CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* [[CALL]]) [[NUW]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[TEST29]]*<br>
 // CHECK-NEXT: [[RET:%.*]] = bitcast [[TEST29]]* [[T1]] to i8*<br>
<br>
 // Cleanup.<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[TEST29]]*, [[TEST29]]** [[SELF]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST29]]* [[T0]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
<br>
 // Return.<br>
 // CHECK-NEXT: ret i8* [[RET]]<br>
@@ -759,7 +759,7 @@ static id _test29_allocator = 0;<br>
 // CHECK-NEXT: alloca<br>
 // CHECK-NEXT: store [[TEST29]]* {{%.*}}, [[TEST29]]** [[SELF]]<br>
 // CHECK-NEXT: store i8* {{%.*}}, i8** [[CMD]]<br>
-// CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retain(i8* {{%.*}})<br>
+// CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* {{%.*}})<br>
 // CHECK-NEXT: store i8* [[T0]], i8** [[ALLOCATOR]]<br>
<br>
 // Evaluate arguments.  Note that the send argument is evaluated<br>
@@ -782,27 +782,27 @@ static id _test29_allocator = 0;<br>
 // Assignment.<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast i8* [[CALL]] to [[TEST29]]*<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST29]]* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]]) [[NUW]]<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]]) [[NUW]]<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST29]]*<br>
 // CHECK-NEXT: [[T4:%.*]] = load [[TEST29]]*, [[TEST29]]** [[SELF]], align<br>
 // CHECK-NEXT: store [[TEST29]]* [[T3]], [[TEST29]]** [[SELF]], align<br>
 // CHECK-NEXT: [[T5:%.*]] = bitcast [[TEST29]]* [[T4]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T5]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T5]])<br>
<br>
 // Return statement.<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[TEST29]]*, [[TEST29]]** [[SELF]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST29]]* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retain(i8* [[T1]]) [[NUW]]<br>
+// CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]]) [[NUW]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[TEST29]]*<br>
 // CHECK-NEXT: [[RET:%.*]] = bitcast [[TEST29]]* [[T1]] to i8*<br>
<br>
 // Cleanup.<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[ALLOCATOR]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]]) [[NUW]], !clang.imprecise_release<br>
<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[TEST29]]*, [[TEST29]]** [[SELF]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST29]]* [[T0]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]]) [[NUW]], !clang.imprecise_release<br>
<br>
 // Return.<br>
 // CHECK-NEXT: ret i8* [[RET]]<br>
@@ -840,21 +840,21 @@ char *helper;<br>
 // CHECK-NEXT: [[T3:%.*]] = getelementptr inbounds i8, i8* [[T2]], i64 [[IVAR]]<br>
 // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to i8**<br>
 // CHECK-NEXT#: [[T5:%.*]] = load i8*, i8** [[T4]]<br>
-// CHECK-NEXT#: [[T6:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
-// CHECK-NEXT#: call void @objc_release(i8* [[T5]])<br>
+// CHECK-NEXT#: [[T6:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
+// CHECK-NEXT#: call void @llvm.objc.release(i8* [[T5]])<br>
 // CHECK-NEXT: store i8* [[T0]], i8** [[T4]]<br>
<br>
 // Return.<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[TEST30]]*, [[TEST30]]** [[SELF]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST30]]* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[TEST30]]*<br>
 // CHECK-NEXT: [[RET:%.*]] = bitcast [[TEST30]]* [[T1]] to i8*<br>
<br>
 // Cleanup.<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[TEST30]]*, [[TEST30]]** [[SELF]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST30]]* [[T0]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
<br>
 // Epilogue.<br>
 // CHECK-NEXT: ret i8* [[RET]]<br>
@@ -876,7 +876,7 @@ char *helper;<br>
 __attribute__((ns_returns_retained)) id test32(void) {<br>
 // CHECK-LABEL:    define i8* @test32()<br>
 // CHECK:      [[CALL:%.*]] = call i8* @test32_helper()<br>
-// CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[CALL]])<br>
+// CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[CALL]])<br>
 // CHECK-NEXT: ret i8* [[T0]]<br>
   extern id test32_helper(void);<br>
   return test32_helper();<br>
@@ -905,7 +905,7 @@ void test33(Test33 *ptr) {<br>
   // CHECK-NEXT: [[TEMP1:%.*]] = alloca [[A_T]]*<br>
   // CHECK-NEXT: [[TEMP2:%.*]] = alloca [[A_T]]*<br>
   // CHECK-NEXT: bitcast<br>
-  // CHECK-NEXT: objc_retain<br>
+  // CHECK-NEXT: llvm.objc.retain<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: store<br>
   // CHECK-NEXT: bitcast<br>
@@ -920,13 +920,13 @@ void test33(Test33 *ptr) {<br>
   // CHECK-NEXT: objc_msgSend{{.*}}, [[A_T]]** [[TEMP0]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[A_T]]*, [[A_T]]** [[TEMP0]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[A_T]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[A_T]]*<br>
   // CHECK-NEXT: call void (...) @clang.arc.use([[A_T]]* [[W0]]) [[NUW]]<br>
   // CHECK-NEXT: [[T4:%.*]] = load [[A_T]]*, [[A_T]]** [[A]]<br>
   // CHECK-NEXT: store [[A_T]]* [[T3]], [[A_T]]** [[A]]<br>
   // CHECK-NEXT: [[T5:%.*]] = bitcast [[A_T]]* [[T4]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T5]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T5]])<br>
<br>
   // CHECK-NEXT: load [[TEST33]]*, [[TEST33]]** [[PTR]]<br>
   // CHECK-NEXT: [[W0:%.*]] = load [[A_T]]*, [[A_T]]** [[A]]<br>
@@ -936,13 +936,13 @@ void test33(Test33 *ptr) {<br>
   // CHECK-NEXT: objc_msgSend{{.*}}, [[A_T]]** [[TEMP1]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[A_T]]*, [[A_T]]** [[TEMP1]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[A_T]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[A_T]]*<br>
   // CHECK-NEXT: call void (...) @clang.arc.use([[A_T]]* [[W0]]) [[NUW]]<br>
   // CHECK-NEXT: [[T4:%.*]] = load [[A_T]]*, [[A_T]]** [[A]]<br>
   // CHECK-NEXT: store [[A_T]]* [[T3]], [[A_T]]** [[A]]<br>
   // CHECK-NEXT: [[T5:%.*]] = bitcast [[A_T]]* [[T4]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T5]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T5]])<br>
<br>
   // CHECK-NEXT: load [[TEST33]]*, [[TEST33]]** [[PTR]]<br>
   // CHECK-NEXT: load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
@@ -962,21 +962,21 @@ void test33(Test33 *ptr) {<br>
   // CHECK-NEXT: objc_msgSend{{.*}}, [[A_T]]** [[TEMP2]])<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[A_T]]*, [[A_T]]** [[TEMP2]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[A_T]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
   // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[A_T]]*<br>
   // CHECK-NEXT: [[T4:%.*]] = load [[A_T]]*, [[A_T]]** [[A]]<br>
   // CHECK-NEXT: store [[A_T]]* [[T3]], [[A_T]]** [[A]]<br>
   // CHECK-NEXT: [[T5:%.*]] = bitcast [[A_T]]* [[T4]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T5]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T5]])<br>
<br>
   // CHECK-NEXT: load<br>
   // CHECK-NEXT: bitcast<br>
-  // CHECK-NEXT: objc_release<br>
+  // CHECK-NEXT: llvm.objc.release<br>
   // CHECK-NEXT: bitcast<br>
   // CHECK-NEXT: call void @llvm.lifetime.end<br>
   // CHECK-NEXT: load<br>
   // CHECK-NEXT: bitcast<br>
-  // CHECK-NEXT: objc_release<br>
+  // CHECK-NEXT: llvm.objc.release<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -985,21 +985,21 @@ void test33(Test33 *ptr) {<br>
 void test36(id x) {<br>
   // CHECK: [[X:%.*]] = alloca i8*<br>
<br>
-  // CHECK: call i8* @objc_retain<br>
-  // CHECK: call i8* @objc_retain<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   id array[3] = { @"A", x, @"y" };<br>
<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[X]]<br>
   // CHECK-NEXT: store i8* null, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   x = 0;<br>
<br>
   // CHECK: br label<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: br i1<br>
<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -1023,17 +1023,17 @@ void test37(void) {<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[TEMP]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[TEST37]]*<br>
   // CHECK-NEXT: [[T2:%.*]] = bitcast [[TEST37]]* [[T1]] to i8*<br>
-  // CHECK-NEXT: [[T3:%.*]] = call i8* @objc_retain(i8* [[T2]])<br>
+  // CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.retain(i8* [[T2]])<br>
   // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to [[TEST37]]*<br>
   // CHECK-NEXT: call void (...) @clang.arc.use(i8* [[W1]]) [[NUW]]<br>
   // CHECK-NEXT: [[T5:%.*]] = load [[TEST37]]*, [[TEST37]]** [[VAR]]<br>
   // CHECK-NEXT: store [[TEST37]]* [[T4]], [[TEST37]]** [[VAR]]<br>
   // CHECK-NEXT: [[T6:%.*]] = bitcast [[TEST37]]* [[T5]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T6]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T6]])<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load [[TEST37]]*, [[TEST37]]** [[VAR]]<br>
   // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST37]]* [[T0]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   // CHECK-NEXT: [[VARPTR2:%.*]] = bitcast [[TEST37]]** [[VAR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[VARPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -1045,7 +1045,7 @@ void test37(void) {<br>
   extern id test43_produce(void);<br>
   return test43_produce();<br>
   // CHECK:      call i8* @test43_produce()<br>
-  // CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue(<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue(<br>
   // CHECK-NEXT: ret <br>
 }<br>
 @end<br>
@@ -1067,21 +1067,21 @@ void test46(__weak id *wp, __weak volati<br>
   // TODO: this is sub-optimal, we should retain at the actual call site.<br>
<br>
   // CHECK:      [[T0:%.*]] = call i8* @test46_helper()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8**, i8*** {{%.*}}, align 8<br>
-  // CHECK-NEXT: [[T3:%.*]] = call i8* @objc_storeWeak(i8** [[T2]], i8* [[T1]])<br>
-  // CHECK-NEXT: [[T4:%.*]] = call i8* @objc_retain(i8* [[T3]])<br>
+  // CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.storeWeak(i8** [[T2]], i8* [[T1]])<br>
+  // CHECK-NEXT: [[T4:%.*]] = call i8* @llvm.objc.retain(i8* [[T3]])<br>
   // CHECK-NEXT: store i8* [[T4]], i8**<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   id x = *wp = test46_helper();<br>
<br>
   // CHECK:      [[T0:%.*]] = call i8* @test46_helper()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8**, i8*** {{%.*}}, align 8<br>
-  // CHECK-NEXT: [[T3:%.*]] = call i8* @objc_storeWeak(i8** [[T2]], i8* [[T1]])<br>
-  // CHECK-NEXT: [[T4:%.*]] = call i8* @objc_retain(i8* [[T3]])<br>
+  // CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.storeWeak(i8** [[T2]], i8* [[T1]])<br>
+  // CHECK-NEXT: [[T4:%.*]] = call i8* @llvm.objc.retain(i8* [[T3]])<br>
   // CHECK-NEXT: store i8* [[T4]], i8**<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   id y = *wvp = test46_helper();<br>
 }<br>
<br>
@@ -1096,16 +1096,16 @@ void test47(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[XPTR1]])<br>
   // CHECK-NEXT: store i8* null, i8** [[X]]<br>
   // CHECK-NEXT: [[CALL:%.*]] = call i8* @test47_helper()<br>
-  // CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[CALL]])<br>
+  // CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[CALL]])<br>
   // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
   // CHECK-NEXT: [[T3:%.*]] = load i8*, i8** [[X]]<br>
   // CHECK-NEXT: store i8* [[T2]], i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T3]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T3]])<br>
   // CHECK-NEXT: [[T4:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T4]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T4]])<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -1118,13 +1118,13 @@ void test48(void) {<br>
   // CHECK:      [[X:%.*]] = alloca i8*<br>
   // CHECK-NEXT: [[XPTR1:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[XPTR1]])<br>
-  // CHECK-NEXT: [[T0:%.*]] = call i8* @objc_initWeak(i8** [[X]], i8* null)<br>
+  // CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.initWeak(i8** [[X]], i8* null)<br>
   // CHECK-NEXT: [[T1:%.*]] = call i8* @test48_helper()<br>
-  // CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
-  // CHECK-NEXT: [[T3:%.*]] = call i8* @objc_storeWeak(i8** [[X]], i8* [[T2]])<br>
-  // CHECK-NEXT: [[T4:%.*]] = call i8* @objc_storeWeak(i8** [[X]], i8* [[T3]])<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T2]])<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(i8** [[X]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.storeWeak(i8** [[X]], i8* [[T2]])<br>
+  // CHECK-NEXT: [[T4:%.*]] = call i8* @llvm.objc.storeWeak(i8** [[X]], i8* [[T3]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T2]])<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[X]])<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -1139,10 +1139,10 @@ void test49(void) {<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[XPTR1]])<br>
   // CHECK-NEXT: store i8* null, i8** [[X]]<br>
   // CHECK-NEXT: [[CALL:%.*]] = call i8* @test49_helper()<br>
-  // CHECK-NEXT: [[T0:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[CALL]])<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_autorelease(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[CALL]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.autorelease(i8* [[T0]])<br>
   // CHECK-NEXT: store i8* [[T2]], i8** [[X]]<br>
-  // CHECK-NEXT: [[T3:%.*]] = call i8* @objc_retainAutorelease(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.retainAutorelease(i8* [[T1]])<br>
   // CHECK-NEXT: store i8* [[T3]], i8** [[X]]<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
@@ -1153,8 +1153,8 @@ void test49(void) {<br>
 id x();<br>
 void test50(id y) {<br>
   ({x();});<br>
-// CHECK: [[T0:%.*]] = call i8* @objc_retain<br>
-// CHECK: call void @objc_release<br>
+// CHECK: [[T0:%.*]] = call i8* @llvm.objc.retain<br>
+// CHECK: call void @llvm.objc.release<br>
 }<br>
<br>
<br>
@@ -1190,7 +1190,7 @@ id test52(void) {<br>
 // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i32* [[X]] to i8*<br>
 // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 4, i8* [[XPTR2]])<br>
 // CHECK-NEXT: [[T2:%.*]] = load i8*, i8** [[TMPALLOCA]]<br>
-// CHECK-NEXT: [[T3:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[T2]])<br>
+// CHECK-NEXT: [[T3:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[T2]])<br>
 // CHECK-NEXT: ret i8* [[T3]]<br>
 }<br>
<br>
@@ -1208,20 +1208,20 @@ void test53(void) {<br>
 // CHECK-NEXT: [[YPTR1:%.*]] = bitcast i8** [[Y]] to i8*<br>
 // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[YPTR1]])<br>
 // CHECK-NEXT: [[T0:%.*]] = call i8* @test53_helper()<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
 // CHECK-NEXT: store i8* [[T1]], i8** [[Y]],<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]],<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
 // CHECK-NEXT: store i8* [[T1]], i8** [[TMPALLOCA]]<br>
 // CHECK-NEXT: [[T2:%.*]] = load i8*, i8** [[Y]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T2]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T2]])<br>
 // CHECK-NEXT: [[YPTR2:%.*]] = bitcast i8** [[Y]] to i8*<br>
 // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[YPTR2]])<br>
 // CHECK-NEXT: [[T3:%.*]] = load i8*, i8** [[TMPALLOCA]]<br>
 // CHECK-NEXT: store i8* [[T3]], i8** [[X]],<br>
 // CHECK-NEXT: load i8*, i8** [[X]],<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
 // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
 // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
 // CHECK-NEXT: ret void<br>
@@ -1233,11 +1233,11 @@ void test54(int first, ...) {<br>
   __builtin_va_list arglist;<br>
   // CHECK: call void @llvm.va_start<br>
   __builtin_va_start(arglist, first);<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   id obj = __builtin_va_arg(arglist, id);<br>
   // CHECK: call void @llvm.va_end<br>
   __builtin_va_end(arglist);<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: ret void<br>
 }<br>
<br>
@@ -1261,7 +1261,7 @@ void test54(int first, ...) {<br>
 + (id) make {<br>
   extern id test56_helper(void);<br>
   // CHECK:      [[T0:%.*]] = call i8* @test56_helper()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: ret i8* [[T1]]<br>
   return test56_helper();<br>
 }<br>
@@ -1275,7 +1275,7 @@ void test56_test(void) {<br>
   // CHECK:      [[T0:%.*]] = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[X]]<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -1305,8 +1305,8 @@ void test56_test(void) {<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[TEST57]]* [[T0]] to i8*<br>
 // CHECK-NEXT: [[T3:%.*]] = getelementptr inbounds i8, i8* [[T2]], i64 [[T1]]<br>
 // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to i8**<br>
-// CHECK-NEXT: [[T5:%.*]] = call i8* @objc_loadWeakRetained(i8** [[T4]])<br>
-// CHECK-NEXT: [[T6:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[T5]])<br>
+// CHECK-NEXT: [[T5:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[T4]])<br>
+// CHECK-NEXT: [[T6:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[T5]])<br>
 // CHECK-NEXT: ret i8* [[T6]]<br>
<br>
 // CHECK: define internal i8* @"\01-[Test57 unsafe]"(<br>
@@ -1328,11 +1328,11 @@ void test59(void) {<br>
<br>
   // CHECK-LABEL:    define void @test59()<br>
   // CHECK:      [[T0:%.*]] = call i8* @test59_getlock()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: call i32 @objc_sync_enter(i8* [[T1]])<br>
   // CHECK-NEXT: call void @test59_body()<br>
   // CHECK-NEXT: call i32 @objc_sync_exit(i8* [[T1]])<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -1350,27 +1350,27 @@ void test61(void) {<br>
   extern id test61_make(void);<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = call i8* @test61_make()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T3:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T4:%.*]] = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*, i8*)*)(i8* [[T1]], i8* [[T3]], i8* [[T2]])<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   [test61_make() performSelector: @selector(test61_void)];<br>
<br>
   // CHECK-NEXT: [[YPTR1:%.*]] = bitcast i8** [[Y]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[YPTR1]])<br>
   // CHECK-NEXT: [[T0:%.*]] = call i8* @test61_make()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T3:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_<br>
   // CHECK-NEXT: [[T4:%.*]] = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*, i8*)*)(i8* [[T1]], i8* [[T3]], i8* [[T2]])<br>
-  // CHECK-NEXT: [[T5:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T4]])<br>
+  // CHECK-NEXT: [[T5:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T4]])<br>
   // CHECK-NEXT: store i8* [[T5]], i8** [[Y]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   id y = [test61_make() performSelector: @selector(test61_id)];<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: [[YPTR2:%.*]] = bitcast i8** [[Y]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[YPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -1400,7 +1400,7 @@ void test62(void) {<br>
     // CHECK-NEXT: store i1 false, i1* [[CLEANUP_REQUIRED]]<br>
     // CHECK-NEXT: br i1 [[T1]],<br>
     // CHECK:      [[T0:%.*]] = call i8* @test62_make()<br>
-    // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+    // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
     // CHECK-NEXT: store i8* [[T1]], i8** [[CLEANUP_VALUE]]<br>
     // CHECK-NEXT: store i1 true, i1* [[CLEANUP_REQUIRED]]<br>
     // CHECK-NEXT: [[T2:%.*]] = icmp ne i8* [[T1]], null<br>
@@ -1409,7 +1409,7 @@ void test62(void) {<br>
     // CHECK-NEXT: [[T0:%.*]] = load i1, i1* [[CLEANUP_REQUIRED]]<br>
     // CHECK-NEXT: br i1 [[T0]],<br>
     // CHECK:      [[T0:%.*]] = load i8*, i8** [[CLEANUP_VALUE]]<br>
-    // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+    // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
     // CHECK-NEXT: br label<br>
     // CHECK:      br i1 [[COND]]<br>
     // CHECK:      call void @test62_body()<br>
@@ -1455,20 +1455,20 @@ void test66(void) {<br>
 // CHECK-LABEL:    define void @test66()<br>
 // CHECK:      [[T0:%.*]] = call [[TEST66:%.*]]* @test66_receiver()<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[TEST66]]* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[TEST66]]*<br>
 // CHECK-NEXT: [[T4:%.*]] = call i8* @test66_arg()<br>
-// CHECK-NEXT: [[T5:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T4]])<br>
+// CHECK-NEXT: [[T5:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T4]])<br>
 // CHECK-NEXT: [[T6:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES<br>
 // CHECK-NEXT: [[T7:%.*]] = bitcast [[TEST66]]* [[T3]] to i8*<br>
 // CHECK-NEXT: [[SIX:%.*]] = icmp eq i8* [[T7]], null<br>
 // CHECK-NEXT: br i1 [[SIX]], label [[NULINIT:%.*]], label [[CALL:%.*]]<br>
 // CHECK: call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, i8*)*)(i8* [[T7]], i8* [[T6]], i8* [[T5]])<br>
 // CHECK-NEXT: br label [[CONT:%.*]]<br>
-// CHECK: call void @objc_release(i8* [[T5]]) [[NUW]]<br>
+// CHECK: call void @llvm.objc.release(i8* [[T5]]) [[NUW]]<br>
 // CHECK-NEXT: br label [[CONT:%.*]]<br>
 // CHECK: [[T8:%.*]] = bitcast [[TEST66]]* [[T3]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T8]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T8]])<br>
 // CHECK-NEXT: ret void<br>
<br>
 // <a>rdar://problem/9953540</a><br>
@@ -1495,10 +1495,10 @@ void test68(void) {<br>
 // CHECK-NEXT: [[CLPTR1:%.*]] = bitcast i8** [[CL]] to i8*<br>
 // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[CLPTR1]])<br>
 // CHECK-NEXT: [[T0:%.*]] = call i8* @test67_helper()<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
 // CHECK-NEXT: store i8* [[T1]], i8** [[CL]], align 8<br>
 // CHECK-NEXT: [[T2:%.*]] = load i8*, i8** [[CL]]<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T2]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T2]])<br>
 // CHECK-NEXT: [[CLPTR2:%.*]] = bitcast i8** [[CL]] to i8*<br>
 // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[CLPTR2]])<br>
 // CHECK-NEXT: ret void<br>
@@ -1519,7 +1519,7 @@ void test70(id i) {<br>
   // CHECK-LABEL: define void @test70<br>
   // CHECK: store i8* null, i8**<br>
   // CHECK: store i8* null, i8**<br>
-  // CHECK: [[ID:%.*]] = call i8* @objc_retain(i8*<br>
+  // CHECK: [[ID:%.*]] = call i8* @llvm.objc.retain(i8*<br>
   // CHECK: store i8* [[ID]], i8**<br>
   id x[3] = {<br>
     [2] = i<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/autorelease.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/autorelease.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/autorelease.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/autorelease.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/autorelease.m Tue Dec 18 12:33:00 2018<br>
@@ -25,9 +25,9 @@<br>
 }<br>
 @end<br>
<br>
-// CHECK: call i8* @objc_autoreleasePoolPush<br>
+// CHECK: call i8* @llvm.objc.autoreleasePoolPush<br>
 // CHECK: [[T:%.*]] = load i8*, i8** [[A:%.*]]<br>
-// CHECK: call void @objc_autoreleasePoolPop<br>
+// CHECK: call void @llvm.objc.autoreleasePoolPop<br>
<br>
 // <a>rdar://13660038</a><br>
 int tryTo(int (*f)(void)) {<br>
@@ -41,7 +41,7 @@ int tryTo(int (*f)(void)) {<br>
 }<br>
 // CHECK-LABEL:    define i32 @tryTo(i32 ()*<br>
 // CHECK:      [[RET:%.*]] = alloca i32,<br>
-// CHECK:      [[T0:%.*]] = call i8* @objc_autoreleasePoolPush()<br>
+// CHECK:      [[T0:%.*]] = call i8* @llvm.objc.autoreleasePoolPush()<br>
 // CHECK-NEXT: [[T1:%.*]] = load i32 ()*, i32 ()** {{%.*}},<br>
 // CHECK-NEXT: [[T2:%.*]] = invoke i32 [[T1]]()<br>
 // CHECK:      store i32 [[T2]], i32* [[RET]]<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/debug-info-block-line.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/debug-info-block-line.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/debug-info-block-line.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/debug-info-block-line.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/debug-info-block-line.m Tue Dec 18 12:33:00 2018<br>
@@ -62,16 +62,16 @@ typedef enum : NSUInteger {<br>
     TMap       *map = [TMap mapForID:mapID];<br>
 // Make sure we do not map code generated for the block to the above line.<br>
 // CHECK: define internal void @"__39-[TServer serverConnection:getCommand:]_block_invoke"<br>
-// CHECK: call void @objc_storeStrong(i8** [[ZERO:%.*]], i8* [[ONE:%.*]]) [[NUW:#[0-9]+]]<br>
-// CHECK: call void @objc_storeStrong(i8** [[TWO:%.*]], i8* [[THREE:%.*]]) [[NUW]]<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** [[ZERO:%.*]], i8* [[ONE:%.*]]) [[NUW:#[0-9]+]]<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** [[TWO:%.*]], i8* [[THREE:%.*]]) [[NUW]]<br>
 // CHECK: call {{.*}}@objc_msgSend{{.*}}, !dbg ![[LINE_ABOVE:[0-9]+]]<br>
 // CHECK: getelementptr<br>
 // CHECK-NOT: !dbg, ![[LINE_ABOVE]]<br>
 // CHECK: bitcast %5** [[TMP:%.*]] to i8**<br>
 // CHECK-NOT: !dbg, ![[LINE_ABOVE]]<br>
-// CHECK: call void @objc_storeStrong(i8** [[VAL1:%.*]], i8* null) [[NUW]]<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** [[VAL1:%.*]], i8* null) [[NUW]]<br>
 // CHECK-NEXT: bitcast %4** [[TMP:%.*]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[VAL2:%.*]], i8* null) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[VAL2:%.*]], i8* null) [[NUW]]<br>
 // CHECK-NEXT: ret<br>
 // CHECK: attributes [[NUW]] = { nounwind }<br>
     [map dataWithCompletionBlock:^(NSData *data, NSError *error) {<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/empty-collection-literals.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/empty-collection-literals.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/empty-collection-literals.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/empty-collection-literals.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/empty-collection-literals.m Tue Dec 18 12:33:00 2018<br>
@@ -17,16 +17,16 @@ void test_empty_array() {<br>
   // CHECK-WITHOUT-EMPTY-COLLECTIONS-NOT: ret void<br>
   // CHECK-WITHOUT-EMPTY-COLLECTIONS: {{call.*objc_msgSend}}<br>
   // CHECK-WITHOUT-EMPTY-COLLECTIONS-NOT: ret void<br>
-  // CHECK-WITHOUT-EMPTY-COLLECTIONS: {{call.*objc_retainAutoreleasedReturnValue}}<br>
+  // CHECK-WITHOUT-EMPTY-COLLECTIONS: {{call.*llvm.objc.retainAutoreleasedReturnValue}}<br>
   // CHECK-WITHOUT-EMPTY-COLLECTIONS: ret void<br>
<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-LABEL: define void @test_empty_array<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void<br>
   // CHECK-WITH-EMPTY-COLLECTIONS: load {{.*}} @__NSArray0__<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void<br>
-  // CHECK-WITH-EMPTY-COLLECTIONS: {{call.*objc_retain\(}}<br>
+  // CHECK-WITH-EMPTY-COLLECTIONS: {{call.*llvm.objc.retain\(}}<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void<br>
-  // CHECK-WITH-EMPTY-COLLECTIONS: call void @objc_storeStrong<br>
+  // CHECK-WITH-EMPTY-COLLECTIONS: call void @llvm.objc.storeStrong<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-NEXT: ret void<br>
   NSArray *arr = @[];<br>
 }<br>
@@ -36,16 +36,16 @@ void test_empty_dictionary() {<br>
   // CHECK-WITHOUT-EMPTY-COLLECTIONS-NOT: ret void<br>
   // CHECK-WITHOUT-EMPTY-COLLECTIONS: {{call.*objc_msgSend}}<br>
   // CHECK-WITHOUT-EMPTY-COLLECTIONS-NOT: ret void<br>
-  // CHECK-WITHOUT-EMPTY-COLLECTIONS: {{call.*objc_retainAutoreleasedReturnValue}}<br>
+  // CHECK-WITHOUT-EMPTY-COLLECTIONS: {{call.*llvm.objc.retainAutoreleasedReturnValue}}<br>
   // CHECK-WITHOUT-EMPTY-COLLECTIONS: ret void<br>
<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-LABEL: define void @test_empty_dictionary<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void<br>
   // CHECK-WITH-EMPTY-COLLECTIONS: load {{.*}} @__NSDictionary0__{{.*}}!invariant.load<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void<br>
-  // CHECK-WITH-EMPTY-COLLECTIONS: {{call.*objc_retain\(}}<br>
+  // CHECK-WITH-EMPTY-COLLECTIONS: {{call.*llvm.objc.retain\(}}<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-NOT: ret void<br>
-  // CHECK-WITH-EMPTY-COLLECTIONS: call void @objc_storeStrong<br>
+  // CHECK-WITH-EMPTY-COLLECTIONS: call void @llvm.objc.storeStrong<br>
   // CHECK-WITH-EMPTY-COLLECTIONS-NEXT: ret void<br>
   NSDictionary *dict = @{};<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/fragile-arc.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/fragile-arc.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/fragile-arc.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/fragile-arc.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/fragile-arc.m Tue Dec 18 12:33:00 2018<br>
@@ -37,7 +37,7 @@<br>
 // CHECK-NEXT: [[IVAR:%.*]] = bitcast i8* [[T1]] to [[OPAQUE]]**<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[OPAQUE]]*, [[OPAQUE]]** [[IVAR]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[OPAQUE]]* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[OPAQUE]]*<br>
 // CHECK-NEXT: store [[OPAQUE]]* [[T3]], [[OPAQUE]]** [[X]]<br>
   Opaque *x = strong;<br>
@@ -48,10 +48,10 @@<br>
 // CHECK-NEXT: [[IVAR:%.*]] = bitcast i8* [[T1]] to [[OPAQUE]]**<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[OPAQUE]]** [[IVAR]] to i8**<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[OPAQUE]]* [[VALUE]] to i8*<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* [[T1]])<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* [[T1]])<br>
   strong = x;<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[OPAQUE]]** [[X]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null)<br>
 // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -64,7 +64,7 @@<br>
 // CHECK-NEXT: [[T1:%.*]] = getelementptr inbounds i8, i8* [[T0]], i32 8<br>
 // CHECK-NEXT: [[IVAR:%.*]] = bitcast i8* [[T1]] to [[OPAQUE]]**<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[OPAQUE]]** [[IVAR]] to i8**<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_loadWeakRetained(i8** [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[T0]])<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast i8* [[T1]] to [[OPAQUE]]*<br>
 // CHECK-NEXT: store [[OPAQUE]]* [[T2]], [[OPAQUE]]** [[X]]<br>
   Opaque *x = weak;<br>
@@ -75,10 +75,10 @@<br>
 // CHECK-NEXT: [[IVAR:%.*]] = bitcast i8* [[T1]] to [[OPAQUE]]**<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[OPAQUE]]** [[IVAR]] to i8**<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[OPAQUE]]* [[VALUE]] to i8*<br>
-// CHECK-NEXT: call i8* @objc_storeWeak(i8** [[T0]], i8* [[T1]])<br>
+// CHECK-NEXT: call i8* @llvm.objc.storeWeak(i8** [[T0]], i8* [[T1]])<br>
   weak = x;<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[OPAQUE]]** [[X]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null)<br>
 // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -89,12 +89,12 @@<br>
 // CHECK-NEXT: [[T1:%.*]] = getelementptr inbounds i8, i8* [[T0]], i32 8<br>
 // CHECK-NEXT: [[IVAR:%.*]] = bitcast i8* [[T1]] to [[OPAQUE]]**<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[OPAQUE]]** [[IVAR]] to i8**<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[T0]])<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[A]]* [[SELF]] to i8*<br>
 // CHECK-NEXT: [[T1:%.*]] = getelementptr inbounds i8, i8* [[T0]], i32 4<br>
 // CHECK-NEXT: [[IVAR:%.*]] = bitcast i8* [[T1]] to [[OPAQUE]]**<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[OPAQUE]]** [[IVAR]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null)<br>
 // CHECK-NEXT: ret void<br>
 @end<br>
<br>
@@ -151,17 +151,17 @@ void testBlockLayoutWeak(__weak id x) {<br>
 // CHECK: br i1<br>
 // CHECK: [[T0:%.*]] = bitcast i8* [[EXN]] to [[A]]*<br>
 // CHECK: [[T1:%.*]] = bitcast [[A]]* [[T0]] to i8*<br>
-// CHECK: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])<br>
+// CHECK: [[T2:%.*]] = call i8* @llvm.objc.retain(i8* [[T1]])<br>
 // CHECK: [[T3:%.*]] = bitcast i8* [[T2]] to [[A]]*<br>
 // CHECK: store [[A]]* [[T3]], [[A]]** [[X]]<br>
 // CHECK: call void @checkpoint(i32 1)<br>
 // CHECK: [[T0:%.*]] = bitcast [[A]]** [[X]] to i8**<br>
-// CHECK: call void @objc_storeStrong(i8** [[T0]], i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null)<br>
 // CHECK: br label<br>
-// CHECK: [[T0:%.*]] = call i8* @objc_retain(i8* [[EXN]])<br>
+// CHECK: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* [[EXN]])<br>
 // CHECK: store i8* [[T0]], i8** [[Y]]<br>
 // CHECK: call void @checkpoint(i32 2)<br>
-// CHECK: call void @objc_storeStrong(i8** [[Y]], i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** [[Y]], i8* null)<br>
 extern void checkpoint(int n);<br>
 void testCatch() {<br>
   @try {<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/mrc-weak.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/mrc-weak.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/mrc-weak.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/mrc-weak.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/mrc-weak.m Tue Dec 18 12:33:00 2018<br>
@@ -46,15 +46,15 @@<br>
<br>
 @implementation Foo<br>
 // CHECK-LABEL: define internal void @"\01-[Foo .cxx_destruct]"<br>
-// CHECK: call void @objc_destroyWeak<br>
+// CHECK: call void @llvm.objc.destroyWeak<br>
 @end<br>
<br>
<br>
 void test1(__weak id x) {}<br>
 // CHECK-LABEL: define void @test1<br>
 // CHECK:      [[X:%.*]] = alloca i8*,<br>
-// CHECK-NEXT: objc_initWeak<br>
-// CHECK-NEXT: objc_destroyWeak<br>
+// CHECK-NEXT: @llvm.objc.initWeak<br>
+// CHECK-NEXT: @llvm.objc.destroyWeak<br>
 // CHECK-NEXT: ret void<br>
<br>
 void test2(id y) {<br>
@@ -65,8 +65,8 @@ void test2(id y) {<br>
 // CHECK-NEXT: [[Z:%.*]] = alloca i8*,<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-// CHECK-NEXT: call i8* @objc_initWeak(i8** [[Z]], i8* [[T0]])<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[Z]])<br>
+// CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[Z]], i8* [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[Z]])<br>
 // CHECK-NEXT: ret void<br>
<br>
 void test3(id y) {<br>
@@ -79,8 +79,8 @@ void test3(id y) {<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: store i8* null, i8** [[Z]]<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-// CHECK-NEXT: call i8* @objc_storeWeak(i8** [[Z]], i8* [[T0]])<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[Z]])<br>
+// CHECK-NEXT: call i8* @llvm.objc.storeWeak(i8** [[Z]], i8* [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[Z]])<br>
 // CHECK-NEXT: ret void<br>
<br>
 void test4(__weak id *p) {<br>
@@ -91,7 +91,7 @@ void test4(__weak id *p) {<br>
 // CHECK-NEXT: [[Y:%.*]] = alloca i8*,<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8**, i8*** [[P]]<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_loadWeak(i8** [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.loadWeak(i8** [[T0]])<br>
 // CHECK-NEXT: store i8* [[T1]], i8** [[Y]]<br>
 // CHECK-NEXT: ret void<br>
<br>
@@ -103,7 +103,7 @@ void test5(__weak id *p) {<br>
 // CHECK-NEXT: [[Y:%.*]] = alloca i8*,<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8**, i8*** [[P]]<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_loadWeakRetained(i8** [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[T0]])<br>
 // CHECK-NEXT: store i8* [[T1]], i8** [[Y]]<br>
 // CHECK-NEXT: ret void<br>
<br>
@@ -116,7 +116,7 @@ void test6(__weak Foo **p) {<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[FOO]]**, [[FOO]]*** [[P]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[FOO]]** [[T0]] to i8**<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_loadWeakRetained(i8** [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[FOO]]*<br>
 // CHECK-NEXT: store [[FOO]]* [[T3]], [[FOO]]** [[Y]]<br>
 // CHECK-NEXT: ret void<br>
@@ -134,32 +134,32 @@ void test7(void) {<br>
 // CHECK-NEXT:  [[T1:%.*]] = bitcast i8* [[T0]] to [[FOO]]*<br>
 // CHECK-NEXT:  [[T2:%.*]] = bitcast [[FOO]]** [[P]] to i8**<br>
 // CHECK-NEXT:  [[T3:%.*]] = bitcast [[FOO]]* [[T1]] to i8*<br>
-// CHECK-NEXT:  call i8* @objc_initWeak(i8** [[T2]], i8* [[T3]])<br>
-// CHECK:       call void @objc_copyWeak<br>
+// CHECK-NEXT:  call i8* @llvm.objc.initWeak(i8** [[T2]], i8* [[T3]])<br>
+// CHECK:       call void @llvm.objc.copyWeak<br>
 // CHECK:       call void @use_block<br>
-// CHECK:       call void @objc_destroyWeak<br>
+// CHECK:       call void @llvm.objc.destroyWeak<br>
<br>
 // CHECK-LABEL: define linkonce_odr hidden void @__copy_helper_block<br>
-// CHECK:       @objc_copyWeak<br>
+// CHECK:       @llvm.objc.copyWeak<br>
<br>
 // CHECK-LABEL: define linkonce_odr hidden void @__destroy_helper_block<br>
-// CHECK:       @objc_destroyWeak<br>
+// CHECK:       @llvm.objc.destroyWeak<br>
<br>
 void test8(void) {<br>
   __block __weak Foo *p = get_object();<br>
   use_block(^{ [p run ]; });<br>
 }<br>
 // CHECK-LABEL: define void @test8<br>
-// CHECK:       call i8* @objc_initWeak<br>
-// CHECK-NOT:   call void @objc_copyWeak<br>
+// CHECK:       call i8* @llvm.objc.initWeak<br>
+// CHECK-NOT:   call void @llvm.objc.copyWeak<br>
 // CHECK:       call void @use_block<br>
-// CHECK:       call void @objc_destroyWeak<br>
+// CHECK:       call void @llvm.objc.destroyWeak<br>
<br>
 // CHECK-LABEL: define internal void @__Block_byref_object_copy<br>
-// CHECK:       call void @objc_moveWeak<br>
+// CHECK:       call void @llvm.objc.moveWeak<br>
<br>
 // CHECK-LABEL: define internal void @__Block_byref_object_dispose<br>
-// CHECK:       call void @objc_destroyWeak<br>
+// CHECK:       call void @llvm.objc.destroyWeak<br>
<br>
 // CHECK-LABEL: define void @test9_baseline()<br>
 // CHECK:       define linkonce_odr hidden void @__copy_helper<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/noescape.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/noescape.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/noescape.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/noescape.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/noescape.m Tue Dec 18 12:33:00 2018<br>
@@ -94,7 +94,7 @@ void test5(BlockTy2 b, int *p) {<br>
 // CHECK: %[[BLOCK:.*]] = alloca <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8* }>, align 8<br>
 // CHECK-NOARC: store i8* %[[B]], i8** %[[B_ADDR]], align 8<br>
 // CHECK-ARC: store i8* null, i8** %[[B_ADDR]], align 8<br>
-// CHECK-ARC: call void @objc_storeStrong(i8** %[[B_ADDR]], i8* %[[B]])<br>
+// CHECK-ARC: call void @llvm.objc.storeStrong(i8** %[[B_ADDR]], i8* %[[B]])<br>
 // CHECK-ARC: %[[V0:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8* }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8* }>* %[[BLOCK]], i32 0, i32 5<br>
 // CHECK: %[[BLOCK_ISA:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8* }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8* }>* %[[BLOCK]], i32 0, i32 0<br>
 // CHECK: store i8* bitcast (i8** @_NSConcreteGlobalBlock to i8*), i8** %[[BLOCK_ISA]], align 8<br>
@@ -106,11 +106,11 @@ void test5(BlockTy2 b, int *p) {<br>
 // CHECK-NOARC: %[[V1:.*]] = load i8*, i8** %[[B_ADDR]], align 8<br>
 // CHECK-NOARC: store i8* %[[V1]], i8** %[[BLOCK_CAPTURED]], align 8<br>
 // CHECK-ARC: %[[V2:.*]] = load i8*, i8** %[[B_ADDR]], align 8<br>
-// CHECK-ARC: %[[V3:.*]] = call i8* @objc_retain(i8* %[[V2]])<br>
+// CHECK-ARC: %[[V3:.*]] = call i8* @llvm.objc.retain(i8* %[[V2]])<br>
 // CHECK-ARC: store i8* %[[V3]], i8** %[[BLOCK_CAPTURED]], align 8<br>
 // CHECK: call void @noescapeFunc0(<br>
-// CHECK-ARC: call void @objc_storeStrong(i8** %[[V0]], i8* null)<br>
-// CHECK-ARC: call void @objc_storeStrong(i8** %[[B_ADDR]], i8* null)<br>
+// CHECK-ARC: call void @llvm.objc.storeStrong(i8** %[[V0]], i8* null)<br>
+// CHECK-ARC: call void @llvm.objc.storeStrong(i8** %[[B_ADDR]], i8* null)<br>
<br>
 // Non-escaping blocks don't need copy/dispose helper functions.<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/ns_consume_null_check.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/ns_consume_null_check.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/ns_consume_null_check.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/ns_consume_null_check.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/ns_consume_null_check.m Tue Dec 18 12:33:00 2018<br>
@@ -17,7 +17,7 @@ void test0(void) {<br>
   [x isEqual : obj];<br>
 }<br>
 // CHECK-LABEL:     define void @test0()<br>
-// CHECK:       [[FIVE:%.*]] = call i8* @objc_retain<br>
+// CHECK:       [[FIVE:%.*]] = call i8* @llvm.objc.retain<br>
 // CHECK-NEXT:  [[SIX:%.*]] = bitcast<br>
 // CHECK-NEXT:  [[SEVEN:%.*]]  = icmp eq i8* [[SIX]], null<br>
 // CHECK-NEXT:  br i1 [[SEVEN]], label [[NULLINIT:%.*]], label [[CALL_LABEL:%.*]]<br>
@@ -25,7 +25,7 @@ void test0(void) {<br>
 // CHECK-NEXT:  [[EIGHT:%.*]] = bitcast i8* [[FN]]<br>
 // CHECK-NEXT:  [[CALL:%.*]] = call signext i8 [[EIGHT]]<br>
 // CHECK-NEXT:  br label [[CONT:%.*]]<br>
-// CHECK:       call void @objc_release(i8* [[FIVE]]) [[NUW:#[0-9]+]]<br>
+// CHECK:       call void @llvm.objc.release(i8* [[FIVE]]) [[NUW:#[0-9]+]]<br>
 // CHECK-NEXT:  br label [[CONT]]<br>
 // CHECK:       phi i8 [ [[CALL]], {{%.*}} ], [ 0, {{%.*}} ]<br>
<br>
@@ -44,11 +44,11 @@ void test1(void) {<br>
 // CHECK:      [[T0:%.*]] = call i8* bitcast (<br>
 // CHECK-NEXT: store i8* [[T0]], i8** [[OBJ]]<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[OBJ]]<br>
-// CHECK-NEXT: call i8* @objc_initWeak(i8** [[WEAKOBJ]], i8* [[T0]]) [[NUW]]<br>
+// CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[WEAKOBJ]], i8* [[T0]]) [[NUW]]<br>
 //   Okay, start the message-send.<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[MYOBJECT:%.*]]*, [[MYOBJECT:%.*]]** @x<br>
 // CHECK-NEXT: [[ARG:%.*]] = load i8*, i8** [[OBJ]]<br>
-// CHECK-NEXT: [[ARG_RETAINED:%.*]] = call i8* @objc_retain(i8* [[ARG]])<br>
+// CHECK-NEXT: [[ARG_RETAINED:%.*]] = call i8* @llvm.objc.retain(i8* [[ARG]])<br>
 // CHECK-NEXT: load i8*, i8** @<br>
 // CHECK-NEXT: [[SELF:%.*]] = bitcast [[MYOBJECT]]* [[T0]] to i8*<br>
 //   Null check.<br>
@@ -65,7 +65,7 @@ void test1(void) {<br>
 // CHECK-NEXT: [[IMAGCALL:%.*]] = load float, float* [[T0]]<br>
 // CHECK-NEXT: br label [[CONT:%.*]]{{$}}<br>
 //   Null path.<br>
-// CHECK:      call void @objc_release(i8* [[ARG_RETAINED]]) [[NUW]]<br>
+// CHECK:      call void @llvm.objc.release(i8* [[ARG_RETAINED]]) [[NUW]]<br>
 // CHECK-NEXT: br label [[CONT]]<br>
 //   Join point.<br>
 // CHECK:      [[REAL:%.*]] = phi float [ [[REALCALL]], [[INVOKE_CONT]] ], [ 0.000000e+00, [[FORNULL]] ]<br>
@@ -75,11 +75,11 @@ void test1(void) {<br>
 // CHECK-NEXT: store float [[REAL]], float* [[T0]]<br>
 // CHECK-NEXT: store float [[IMAG]], float* [[T1]]<br>
 //   Epilogue.<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[WEAKOBJ]]) [[NUW]]<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[OBJ]], i8* null) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[WEAKOBJ]]) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[OBJ]], i8* null) [[NUW]]<br>
 // CHECK-NEXT: ret void<br>
 //   Cleanup.<br>
 // CHECK:      landingpad<br>
-// CHECK:      call void @objc_destroyWeak(i8** [[WEAKOBJ]]) [[NUW]]<br>
+// CHECK:      call void @llvm.objc.destroyWeak(i8** [[WEAKOBJ]]) [[NUW]]<br>
<br>
 // CHECK: attributes [[NUW]] = { nounwind }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m Tue Dec 18 12:33:00 2018<br>
@@ -25,9 +25,9 @@ void doRange() {<br>
   // CHECK:      [[RECV:%.*]]       = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   NSRange ns_range = { .location = 0, .length = 42 };<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8* {{.*}}[[RANGE_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *range = @(ns_range);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -44,9 +44,9 @@ void doPoint() {<br>
   // CHECK:      [[RECV:%.*]]       = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   CGPoint cg_point = { .x = 42, .y = 24 };<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8* {{.*}}[[POINT_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *point = @(cg_point);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -63,9 +63,9 @@ void doSize() {<br>
   // CHECK:      [[RECV:%.*]]       = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   CGSize cg_size = { .width = 42, .height = 24 };<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8* {{.*}}[[SIZE_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *size = @(cg_size);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -84,9 +84,9 @@ void doRect() {<br>
   CGSize cg_size = { .width = 42, .height = 24 };<br>
   CGRect cg_rect = { .origin = cg_point, .size = cg_size };<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8*{{.*}}[[RECT_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *rect = @(cg_rect);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -103,9 +103,9 @@ void doNSEdgeInsets() {<br>
   // CHECK:      [[RECV:%.*]]       = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   NSEdgeInsets ns_edge_insets;<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8*{{.*}}[[EDGE_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *edge_insets = @(ns_edge_insets);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -118,9 +118,9 @@ void doRangeRValue() {<br>
   // CHECK:     [[SEL:%.*]]             = load i8*, i8** [[VALUE_SEL]]<br>
   // CHECK:     [[RECV:%.*]]            = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   // CHECK:     call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[COERCE_CAST]], i8* {{.*}}[[RANGE_STR]]{{.*}})<br>
-  // CHECK:     call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:     call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *range_rvalue = @(getRange());<br>
-  // CHECK:     call void @objc_release<br>
+  // CHECK:     call void @llvm.objc.release<br>
   // CHECK:     ret void<br>
 }<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m Tue Dec 18 12:33:00 2018<br>
@@ -25,9 +25,9 @@ void doRange() {<br>
   // CHECK:      [[RECV:%.*]]       = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   NSRange ns_range = { .location = 0, .length = 42 };<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8* {{.*}}[[RANGE_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *range = @(ns_range);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -44,9 +44,9 @@ void doPoint() {<br>
   // CHECK:      [[RECV:%.*]]       = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   NSPoint ns_point = { .x = 42, .y = 24 };<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8* {{.*}}[[POINT_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *point = @(ns_point);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -63,9 +63,9 @@ void doSize() {<br>
   // CHECK:      [[RECV:%.*]]       = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   NSSize ns_size = { .width = 42, .height = 24 };<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8* {{.*}}[[SIZE_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *size = @(ns_size);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -84,9 +84,9 @@ void doRect() {<br>
   NSSize ns_size = { .width = 42, .height = 24 };<br>
   NSRect ns_rect = { .origin = ns_point, .size = ns_size };<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8*{{.*}}[[RECT_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *rect = @(ns_rect);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -103,9 +103,9 @@ void doNSEdgeInsets() {<br>
   // CHECK:      [[RECV:%.*]]       = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   NSEdgeInsets ns_edge_insets;<br>
   // CHECK:      call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[PARAM_CAST]], i8*{{.*}}[[EDGE_STR]]{{.*}})<br>
-  // CHECK:      call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:      call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *edge_insets = @(ns_edge_insets);<br>
-  // CHECK:      call void @objc_release<br>
+  // CHECK:      call void @llvm.objc.release<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -122,9 +122,9 @@ void doRangeRValue() {<br>
   // CHECK:     [[SEL:%.*]]             = load i8*, i8** [[VALUE_SEL]]<br>
   // CHECK:     [[RECV:%.*]]            = bitcast %struct._class_t* [[RECV_PTR]] to i8*<br>
   // CHECK:     call {{.*objc_msgSend.*}}(i8* [[RECV]], i8* [[SEL]], i8* [[COERCE_CAST]], i8* {{.*}}[[RANGE_STR]]{{.*}})<br>
-  // CHECK:     call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK:     call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   NSValue *range_rvalue = @(getRange());<br>
-  // CHECK:     call void @objc_release<br>
+  // CHECK:     call void @llvm.objc.release<br>
   // CHECK:     ret void<br>
 }<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/objc-arc-container-subscripting.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc-arc-container-subscripting.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc-arc-container-subscripting.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/objc-arc-container-subscripting.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/objc-arc-container-subscripting.m Tue Dec 18 12:33:00 2018<br>
@@ -12,10 +12,10 @@ id func() {<br>
 }<br>
<br>
 // CHECK: [[call:%.*]] = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend<br>
-// CHECK: [[SIX:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[call]]) [[NUW:#[0-9]+]]<br>
+// CHECK: [[SIX:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[call]]) [[NUW:#[0-9]+]]<br>
 // CHECK: [[ARRAY_CASTED:%.*]] = bitcast %0** {{%.*}} to i8**<br>
-// CHECK: call void @objc_storeStrong(i8** [[ARRAY_CASTED]], i8* null)<br>
-// CHECK: [[EIGHT:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[SIX]]) [[NUW]]<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** [[ARRAY_CASTED]], i8* null)<br>
+// CHECK: [[EIGHT:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[SIX]]) [[NUW]]<br>
 // CHECK: ret i8* [[EIGHT]]<br>
<br>
 // CHECK: attributes [[NUW]] = { nounwind }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/os_log.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/os_log.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/os_log.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/os_log.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/os_log.m Tue Dec 18 12:33:00 2018<br>
@@ -21,7 +21,7 @@ void *test_builtin_os_log(void *buf) {<br>
<br>
   // CHECK: %[[CALL:.*]] = tail call %[[TY0:.*]]* (...) @GenString()<br>
   // CHECK: %[[V0:.*]] = bitcast %[[TY0]]* %[[CALL]] to i8*<br>
-  // CHECK: %[[V1:.*]] = tail call i8* @objc_retainAutoreleasedReturnValue(i8* %[[V0]])<br>
+  // CHECK: %[[V1:.*]] = tail call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* %[[V0]])<br>
   // CHECK: %[[V2:.*]] = ptrtoint %[[TY0]]* %[[CALL]] to i64<br>
   // CHECK: store i8 2, i8* %[[BUF]], align 1<br>
   // CHECK: %[[NUMARGS_I:.*]] = getelementptr i8, i8* %[[BUF]], i64 1<br>
@@ -34,7 +34,7 @@ void *test_builtin_os_log(void *buf) {<br>
   // CHECK: %[[ARGDATACAST_I:.*]] = bitcast i8* %[[ARGDATA_I]] to i64*<br>
   // CHECK: store i64 %[[V2]], i64* %[[ARGDATACAST_I]], align 1<br>
   // CHECK: tail call void (...) @clang.arc.use(%[[TY0]]* %[[CALL]])<br>
-  // CHECK: tail call void @objc_release(i8* %[[V0]])<br>
+  // CHECK: tail call void @llvm.objc.release(i8* %[[V0]])<br>
   // CHECK: ret i8* %[[BUF]]<br>
<br>
   // clang.arc.use is used and removed in IR optimizations. At O0, we should not<br>
@@ -45,13 +45,13 @@ void *test_builtin_os_log(void *buf) {<br>
   // CHECK-O0: %[[V0:.*]] = load i8*, i8** %[[BUF_ADDR]], align 8<br>
   // CHECK-O0: %[[CALL:.*]] = call %[[TY0:.*]]* (...) @GenString()<br>
   // CHECK-O0: %[[V1:.*]] = bitcast %[[TY0]]* %[[CALL]] to i8*<br>
-  // CHECK-O0: %[[V2:.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* %[[V1]])<br>
+  // CHECK-O0: %[[V2:.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* %[[V1]])<br>
   // CHECK-O0: %[[V3:.*]] = bitcast i8* %[[V2]] to %[[TY0]]*<br>
   // CHECK-O0: %[[V4:.*]] = ptrtoint %[[TY0]]* %[[V3]] to i64<br>
   // CHECK-O0: call void @__os_log_helper_1_2_1_8_64(i8* %[[V0]], i64 %[[V4]])<br>
   // CHECK-O0: %[[V5:.*]] = bitcast %[[TY0]]* %[[V3]] to i8*<br>
   // CHECK-O0-NOT call void (...) @clang.arc.use({{.*}}<br>
-  // CHECK-O0: call void @objc_release(i8* %[[V5]])<br>
+  // CHECK-O0: call void @llvm.objc.release(i8* %[[V5]])<br>
   // CHECK-O0: ret i8* %[[V0]]<br>
 }<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/parameterized_classes.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/parameterized_classes.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/parameterized_classes.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/parameterized_classes.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/parameterized_classes.m Tue Dec 18 12:33:00 2018<br>
@@ -61,11 +61,11 @@ void printMe(NSString *name) { }<br>
 // CHECK-LABEL: define void @blockTest<br>
 void blockTest(NSMutableArray<void (^)(void)> *array, NSString *name) {<br>
   // CHECK-NOT: ret void<br>
-  // CHECK: call i8* @objc_retainBlock<br>
+  // CHECK: call i8* @llvm.objc.retainBlock<br>
   [array addObject: ^ { printMe(name); }];<br>
   // CHECK-NOT: ret void<br>
   array[0] = ^ { printMe(name); };<br>
-  // CHECK: call i8* @objc_retainBlock<br>
+  // CHECK: call i8* @llvm.objc.retainBlock<br>
   // CHECK: ret void<br>
 }<br>
<br>
@@ -80,7 +80,7 @@ void blockTest(NSMutableArray<void (^)(v<br>
 // CHECK: %[[V5:.*]] = bitcast i8* %[[ADDPTR]] to %[[IVARTY]]**<br>
 // CHECK: %[[V6:.*]] = bitcast %[[IVARTY]]** %[[V5]] to i8**<br>
 // CHECK: %[[V7:.*]] = bitcast %[[IVARTY]]* %[[V2]] to i8*<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V6]], i8* %[[V7]])<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V6]], i8* %[[V7]])<br>
<br>
 @interface Base<DestType> : NSObject {<br>
   DestType _destination;<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/stret-lifetime.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/stret-lifetime.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/stret-lifetime.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/stret-lifetime.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/stret-lifetime.m Tue Dec 18 12:33:00 2018<br>
@@ -27,7 +27,7 @@ void foo(id o, id p) {<br>
   // CHECK: @llvm.lifetime.end<br>
   // ARC: br label<br>
<br>
-  // ARC: call void @objc_release<br>
+  // ARC: call void @llvm.objc.release<br>
   // ARC: br label<br>
<br>
   // CHECK-NOT: call void @llvm.memset<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/strong-in-c-struct.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/strong-in-c-struct.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/strong-in-c-struct.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/strong-in-c-struct.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/strong-in-c-struct.m Tue Dec 18 12:33:00 2018<br>
@@ -125,7 +125,7 @@ void func(Strong *);<br>
 // CHECK: %[[V1:.*]] = bitcast i8** %[[V0]] to i8*<br>
 // CHECK: %[[V2:.*]] = getelementptr inbounds i8, i8* %[[V1]], i64 24<br>
 // CHECK: %[[V3:.*]] = bitcast i8* %[[V2]] to i8**<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V3]], i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V3]], i8* null)<br>
 // CHECK: ret void<br>
<br>
 // CHECK: define linkonce_odr hidden void @__destructor_8_s16(i8** %[[DST:.*]])<br>
@@ -135,7 +135,7 @@ void func(Strong *);<br>
 // CHECK: %[[V1:.*]] = bitcast i8** %[[V0]] to i8*<br>
 // CHECK: %[[V2:.*]] = getelementptr inbounds i8, i8* %[[V1]], i64 16<br>
 // CHECK: %[[V3:.*]] = bitcast i8* %[[V2]] to i8**<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V3]], i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V3]], i8* null)<br>
 // CHECK: ret void<br>
<br>
 void test_constructor_destructor_StrongOuter(void) {<br>
@@ -169,7 +169,7 @@ void test_constructor_destructor_StrongO<br>
 // CHECK: %[[V6:.*]] = getelementptr inbounds i8, i8* %[[V5]], i64 24<br>
 // CHECK: %[[V7:.*]] = bitcast i8* %[[V6]] to i8**<br>
 // CHECK: %[[V8:.*]] = load i8*, i8** %[[V7]], align 8<br>
-// CHECK: %[[V9:.*]] = call i8* @objc_retain(i8* %[[V8]])<br>
+// CHECK: %[[V9:.*]] = call i8* @llvm.objc.retain(i8* %[[V8]])<br>
 // CHECK: store i8* %[[V9]], i8** %[[V4]], align 8<br>
 // CHECK: %[[V10:.*]] = bitcast i8** %[[V0]] to i8*<br>
 // CHECK: %[[V11:.*]] = getelementptr inbounds i8, i8* %[[V10]], i64 32<br>
@@ -200,7 +200,7 @@ void test_constructor_destructor_StrongO<br>
 // CHECK: %[[V8:.*]] = getelementptr inbounds i8, i8* %[[V7]], i64 16<br>
 // CHECK: %[[V9:.*]] = bitcast i8* %[[V8]] to i8**<br>
 // CHECK: %[[V10:.*]] = load i8*, i8** %[[V9]], align 8<br>
-// CHECK: %[[V11:.*]] = call i8* @objc_retain(i8* %[[V10]])<br>
+// CHECK: %[[V11:.*]] = call i8* @llvm.objc.retain(i8* %[[V10]])<br>
 // CHECK: store i8* %[[V11]], i8** %[[V6]], align 8<br>
 // CHECK: ret void<br>
<br>
@@ -222,7 +222,7 @@ void test_copy_constructor_StrongOuter(S<br>
 // CHECK: %[[V6:.*]] = getelementptr inbounds i8, i8* %[[V5]], i64 24<br>
 // CHECK: %[[V7:.*]] = bitcast i8* %[[V6]] to i8**<br>
 // CHECK: %[[V8:.*]] = load i8*, i8** %[[V7]], align 8<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V4]], i8* %[[V8]])<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V4]], i8* %[[V8]])<br>
<br>
 void test_copy_assignment_StrongOuter(StrongOuter *d, StrongOuter *s) {<br>
   *d = *s;<br>
@@ -283,7 +283,7 @@ void test_move_constructor_StrongOuter(v<br>
 // CHECK: store i8* null, i8** %[[V7]], align 8<br>
 // CHECK: %[[V9:.*]] = load i8*, i8** %[[V4]], align 8<br>
 // CHECK: store i8* %[[V8]], i8** %[[V4]], align 8<br>
-// CHECK: call void @objc_release(i8* %[[V9]])<br>
+// CHECK: call void @llvm.objc.release(i8* %[[V9]])<br>
<br>
 void test_move_assignment_StrongOuter(StrongOuter *p) {<br>
   *p = getStrongOuter();<br>
@@ -363,7 +363,7 @@ void test_destructor_ignored_result(void<br>
 // CHECK: %[[V0:.*]] = load i8**, i8*** %[[DST_ADDR]], align 8<br>
 // CHECK: %[[V1:.*]] = load i8**, i8*** %[[SRC_ADDR]], align 8<br>
 // CHECK: %[[V2:.*]] = load i8*, i8** %[[V1]], align 8<br>
-// CHECK: %[[V3:.*]] = call i8* @objc_retainBlock(i8* %[[V2]])<br>
+// CHECK: %[[V3:.*]] = call i8* @llvm.objc.retainBlock(i8* %[[V2]])<br>
 // CHECK: store i8* %[[V3]], i8** %[[V0]], align 8<br>
 // CHECK: ret void<br>
<br>
@@ -382,10 +382,10 @@ void test_copy_constructor_StrongBlock(S<br>
 // CHECK: %[[V0:.*]] = load i8**, i8*** %[[DST_ADDR]], align 8<br>
 // CHECK: %[[V1:.*]] = load i8**, i8*** %[[SRC_ADDR]], align 8<br>
 // CHECK: %[[V2:.*]] = load i8*, i8** %[[V1]], align 8<br>
-// CHECK: %[[V3:.*]] = call i8* @objc_retainBlock(i8* %[[V2]])<br>
+// CHECK: %[[V3:.*]] = call i8* @llvm.objc.retainBlock(i8* %[[V2]])<br>
 // CHECK: %[[V4:.*]] = load i8*, i8** %[[V0]], align 8<br>
 // CHECK: store i8* %[[V3]], i8** %[[V0]], align 8<br>
-// CHECK: call void @objc_release(i8* %[[V4]])<br>
+// CHECK: call void @llvm.objc.release(i8* %[[V4]])<br>
 // CHECK: ret void<br>
<br>
 void test_copy_assignment_StrongBlock(StrongBlock *d, StrongBlock *s) {<br>
@@ -398,7 +398,7 @@ void test_copy_assignment_StrongBlock(St<br>
<br>
 // CHECK: define linkonce_odr hidden void @__copy_constructor_8_8_t0w4_sv8(<br>
 // CHECK: %[[V8:.*]] = load volatile i8*, i8** %{{.*}}, align 8<br>
-// CHECK: %[[V9:.*]] = call i8* @objc_retain(i8* %[[V8]])<br>
+// CHECK: %[[V9:.*]] = call i8* @llvm.objc.retain(i8* %[[V8]])<br>
 // CHECK: store volatile i8* %[[V9]], i8** %{{.*}}, align 8<br>
<br>
 void test_copy_constructor_StrongVolatile0(StrongVolatile *s) {<br>
<br>
Modified: cfe/trunk/test/CodeGenObjC/weak-in-c-struct.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/weak-in-c-struct.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/weak-in-c-struct.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjC/weak-in-c-struct.m (original)<br>
+++ cfe/trunk/test/CodeGenObjC/weak-in-c-struct.m Tue Dec 18 12:33:00 2018<br>
@@ -40,7 +40,7 @@ void calleeWeak(Weak);<br>
 // ARM64: %[[V1:.*]] = bitcast i8** %[[V0]] to i8*<br>
 // ARM64: %[[V2:.*]] = getelementptr inbounds i8, i8* %[[V1]], i64 8<br>
 // ARM64: %[[V3:.*]] = bitcast i8* %[[V2]] to i8**<br>
-// ARM64: call void @objc_destroyWeak(i8** %[[V3]])<br>
+// ARM64: call void @llvm.objc.destroyWeak(i8** %[[V3]])<br>
<br>
 void test_constructor_destructor_Weak(void) {<br>
   Weak t;<br>
@@ -67,7 +67,7 @@ void test_constructor_destructor_Weak(vo<br>
 // ARM64: %[[V8:.*]] = bitcast i8** %[[V1]] to i8*<br>
 // ARM64: %[[V9:.*]] = getelementptr inbounds i8, i8* %[[V8]], i64 8<br>
 // ARM64: %[[V10:.*]] = bitcast i8* %[[V9]] to i8**<br>
-// ARM64: call void @objc_copyWeak(i8** %[[V7]], i8** %[[V10]])<br>
+// ARM64: call void @llvm.objc.copyWeak(i8** %[[V7]], i8** %[[V10]])<br>
<br>
 void test_copy_constructor_Weak(Weak *s) {<br>
   Weak t = *s;<br>
@@ -93,9 +93,9 @@ void test_copy_constructor_Weak(Weak *s)<br>
 // ARM64: %[[V8:.*]] = bitcast i8** %[[V1]] to i8*<br>
 // ARM64: %[[V9:.*]] = getelementptr inbounds i8, i8* %[[V8]], i64 8<br>
 // ARM64: %[[V10:.*]] = bitcast i8* %[[V9]] to i8**<br>
-// ARM64: %[[V11:.*]] = call i8* @objc_loadWeakRetained(i8** %[[V10]])<br>
-// ARM64: %[[V12:.*]] = call i8* @objc_storeWeak(i8** %[[V7]], i8* %[[V11]])<br>
-// ARM64: call void @objc_release(i8* %[[V11]])<br>
+// ARM64: %[[V11:.*]] = call i8* @llvm.objc.loadWeakRetained(i8** %[[V10]])<br>
+// ARM64: %[[V12:.*]] = call i8* @llvm.objc.storeWeak(i8** %[[V7]], i8* %[[V11]])<br>
+// ARM64: call void @llvm.objc.release(i8* %[[V11]])<br>
<br>
 void test_copy_assignment_Weak(Weak *d, Weak *s) {<br>
   *d = *s;<br>
@@ -121,7 +121,7 @@ void test_copy_assignment_Weak(Weak *d,<br>
 // ARM64: %[[V8:.*]] = bitcast i8** %[[V1]] to i8*<br>
 // ARM64: %[[V9:.*]] = getelementptr inbounds i8, i8* %[[V8]], i64 8<br>
 // ARM64: %[[V10:.*]] = bitcast i8* %[[V9]] to i8**<br>
-// ARM64: call void @objc_moveWeak(i8** %[[V7]], i8** %[[V10]])<br>
+// ARM64: call void @llvm.objc.moveWeak(i8** %[[V7]], i8** %[[V10]])<br>
<br>
 void test_move_constructor_Weak(void) {<br>
   __block Weak t;<br>
@@ -148,10 +148,10 @@ void test_move_constructor_Weak(void) {<br>
 // ARM64: %[[V8:.*]] = bitcast i8** %[[V1]] to i8*<br>
 // ARM64: %[[V9:.*]] = getelementptr inbounds i8, i8* %[[V8]], i64 8<br>
 // ARM64: %[[V10:.*]] = bitcast i8* %[[V9]] to i8**<br>
-// ARM64: %[[V11:.*]] = call i8* @objc_loadWeakRetained(i8** %[[V10]])<br>
-// ARM64: %[[V12:.*]] = call i8* @objc_storeWeak(i8** %[[V7]], i8* %[[V11]])<br>
-// ARM64: call void @objc_destroyWeak(i8** %[[V10]])<br>
-// ARM64: call void @objc_release(i8* %[[V11]])<br>
+// ARM64: %[[V11:.*]] = call i8* @llvm.objc.loadWeakRetained(i8** %[[V10]])<br>
+// ARM64: %[[V12:.*]] = call i8* @llvm.objc.storeWeak(i8** %[[V7]], i8* %[[V11]])<br>
+// ARM64: call void @llvm.objc.destroyWeak(i8** %[[V10]])<br>
+// ARM64: call void @llvm.objc.release(i8* %[[V11]])<br>
<br>
 void test_move_assignment_Weak(Weak *p) {<br>
   *p = getWeak();<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-attrs.mm/" rel="noreferrer" target="_blank">arc-attrs.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-attrs.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-attrs.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-attrs.mm/" rel="noreferrer" target="_blank">arc-attrs.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-attrs.mm/" rel="noreferrer" target="_blank">arc-attrs.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -15,7 +15,7 @@ void sanityTest() {<br>
   // CHECK-NEXT: call void @_Z13releaseObjectP11objc_object(i8* [[OBJ2]])<br>
   releaseObject(makeObject2());<br>
<br>
-  // CHECK-NEXT: call void @objc_storeStrong(i8** [[X]], i8* null)<br>
+  // CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[X]], i8* null)<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -43,7 +43,7 @@ void templateTest() {<br>
   // CHECK-NEXT: call void @_Z14releaseObjectTIU8__strongP11objc_objectEvT_(i8* [[OBJ3]])<br>
   releaseObjectT(makeObject1());<br>
<br>
-  // CHECK-NEXT: call void @objc_storeStrong(i8** [[X]], i8* null)<br>
+  // CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[X]], i8* null)<br>
   // CHECK-NEXT: ret void<br>
 }<br>
<br>
@@ -58,7 +58,7 @@ ForwardConsumed::ForwardConsumed(__attri<br>
 // CHECK-NOT:  objc_retain<br>
 // CHECK:      store i8* {{.*}}, i8** [[X:%.*]],<br>
 // CHECK-NOT:  [[X]]<br>
-// CHECK:      call void @objc_storeStrong(i8** [[X]], i8* null)<br>
+// CHECK:      call void @llvm.objc.storeStrong(i8** [[X]], i8* null)<br>
<br>
 // CHECK: define void @_ZN15ForwardConsumedC1EP11objc_object(<br>
 // CHECK-NOT:  objc_retain<br>
@@ -66,4 +66,4 @@ ForwardConsumed::ForwardConsumed(__attri<br>
 // CHECK:      [[T0:%.*]] = load i8*, i8** [[X]],<br>
 // CHECK-NEXT: store i8* null, i8** [[X]],<br>
 // CHECK-NEXT: call void @_ZN15ForwardConsumedC2EP11objc_object({{.*}}, i8* [[T0]])<br>
-// CHECK:      call void @objc_storeStrong(i8** [[X]], i8* null)<br>
+// CHECK:      call void @llvm.objc.storeStrong(i8** [[X]], i8* null)<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-blocks.mm/" rel="noreferrer" target="_blank">arc-blocks.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-blocks.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-blocks.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-blocks.mm/" rel="noreferrer" target="_blank">arc-blocks.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-blocks.mm/" rel="noreferrer" target="_blank">arc-blocks.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -72,7 +72,7 @@ namespace test1 {<br>
 // CHECK: %[[V10:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>* %[[BLOCK_DEST]], i32 0, i32 5<br>
 // CHECK: %[[BLOCKCOPY_SRC2:.*]] = load i8*, i8** %[[V9]], align 8<br>
 // CHECK: store i8* null, i8** %[[V10]], align 8<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V10]], i8* %[[BLOCKCOPY_SRC2]])<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V10]], i8* %[[BLOCKCOPY_SRC2]])<br>
<br>
 // CHECK: %[[V4:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>* %[[BLOCK_SOURCE]], i32 0, i32 6<br>
 // CHECK: %[[V5:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>* %[[BLOCK_DEST]], i32 0, i32 6<br>
@@ -82,7 +82,7 @@ namespace test1 {<br>
<br>
 // CHECK: %[[V7:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>* %[[BLOCK_SOURCE]], i32 0, i32 7<br>
 // CHECK: %[[V8:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>* %[[BLOCK_DEST]], i32 0, i32 7<br>
-// CHECK: call void @objc_copyWeak(i8** %[[V8]], i8** %[[V7]])<br>
+// CHECK: call void @llvm.objc.copyWeak(i8** %[[V8]], i8** %[[V7]])<br>
<br>
 // CHECK: %[[V11:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>* %[[BLOCK_SOURCE]], i32 0, i32 8<br>
 // CHECK: %[[V12:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8*, %[[STRUCT_TEST1_S0]], %[[STRUCT_TEST1_S0]], %[[STRUCT_TRIVIAL_INTERNAL]] }>* %[[BLOCK_DEST]], i32 0, i32 8<br>
@@ -109,10 +109,10 @@ namespace test1 {<br>
 // CHECK: br label %[[EHCLEANUP]]<br>
<br>
 // CHECK: [[EHCLEANUP]]:<br>
-// CHECK: call void @objc_destroyWeak(i8** %[[V8]])<br>
+// CHECK: call void @llvm.objc.destroyWeak(i8** %[[V8]])<br>
 // CHECK: %[[V21:.*]] = load i8*, i8** %[[V5]], align 8<br>
 // CHECK: call void @_Block_object_dispose(i8* %[[V21]], i32 8)<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V10]], i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V10]], i8* null)<br>
 // CHECK: br label %[[EH_RESUME:.*]]<br>
<br>
 // CHECK: [[EH_RESUME]]:<br>
@@ -122,7 +122,7 @@ namespace test1 {<br>
 // CHECK: call void @__clang_call_terminate(<br>
<br>
 // CHECK-O1-LABEL: define linkonce_odr hidden void @__copy_helper_block_ea8_32s40r48w56c15_ZTSN5test12S0E60c15_ZTSN5test12S0E(<br>
-// CHECK-O1: tail call void @objc_release({{.*}}) {{.*}} !clang.imprecise_release<br>
+// CHECK-O1: tail call void @llvm.objc.release({{.*}}) {{.*}} !clang.imprecise_release<br>
 // CHECK-NOEXCP: define linkonce_odr hidden void @__copy_helper_block_8_32s40r48w56c15_ZTSN5test12S0E60c15_ZTSN5test12S0E(<br>
<br>
 // CHECK: define linkonce_odr hidden void @__destroy_helper_block_ea8_32s40r48w56c15_ZTSN5test12S0E60c15_ZTSN5test12S0E(<br>
@@ -140,10 +140,10 @@ namespace test1 {<br>
 // CHECK: to label %[[INVOKE_CONT2:.*]] unwind label %[[LPAD1:.*]]<br>
<br>
 // CHECK: [[INVOKE_CONT2]]:<br>
-// CHECK: call void @objc_destroyWeak(i8** %[[V3]])<br>
+// CHECK: call void @llvm.objc.destroyWeak(i8** %[[V3]])<br>
 // CHECK: %[[V7:.*]] = load i8*, i8** %[[V2]], align 8<br>
 // CHECK: call void @_Block_object_dispose(i8* %[[V7]], i32 8)<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V4]], i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V4]], i8* null)<br>
 // CHECK: ret void<br>
<br>
 // CHECK: [[LPAD]]:<br>
@@ -157,10 +157,10 @@ namespace test1 {<br>
 // CHECK: br label %[[EHCLEANUP]]<br>
<br>
 // CHECK: [[EHCLEANUP]]:<br>
-// CHECK: call void @objc_destroyWeak(i8** %[[V3]])<br>
+// CHECK: call void @llvm.objc.destroyWeak(i8** %[[V3]])<br>
 // CHECK: %[[V14:.*]] = load i8*, i8** %[[V2]], align 8<br>
 // CHECK: call void @_Block_object_dispose(i8* %[[V14]], i32 8)<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V4]], i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V4]], i8* null)<br>
 // CHECK: br label %[[EH_RESUME:.*]]<br>
<br>
 // CHECK: [[EH_RESUME]]:<br>
@@ -170,8 +170,8 @@ namespace test1 {<br>
 // CHECK: call void @__clang_call_terminate(<br>
<br>
 // CHECK-O1-LABEL: define linkonce_odr hidden void @__destroy_helper_block_ea8_32s40r48w56c15_ZTSN5test12S0E60c15_ZTSN5test12S0E(<br>
-// CHECK-O1: tail call void @objc_release({{.*}}) {{.*}} !clang.imprecise_release<br>
-// CHECK-O1: tail call void @objc_release({{.*}}) {{.*}} !clang.imprecise_release<br>
+// CHECK-O1: tail call void @llvm.objc.release({{.*}}) {{.*}} !clang.imprecise_release<br>
+// CHECK-O1: tail call void @llvm.objc.release({{.*}}) {{.*}} !clang.imprecise_release<br>
 // CHECK-NOEXCP: define linkonce_odr hidden void @__destroy_helper_block_8_32s40r48w56c15_ZTSN5test12S0E60c15_ZTSN5test12S0E(<br>
<br>
 namespace {<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-constexpr.mm/" rel="noreferrer" target="_blank">arc-constexpr.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-constexpr.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-constexpr.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-constexpr.mm/" rel="noreferrer" target="_blank">arc-constexpr.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-constexpr.mm/" rel="noreferrer" target="_blank">arc-constexpr.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -6,11 +6,11 @@<br>
<br>
 // CHECK-LABEL: define void @_Z5test1v<br>
 // CHECK:   %[[ALLOCA:[A-Z]+]] = alloca %[[TYPE]]*<br>
-// CHECK:   %[[V0:[0-9]+]] = call i8* @objc_retain(i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]]<br>
+// CHECK:   %[[V0:[0-9]+]] = call i8* @llvm.objc.retain(i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]]<br>
 // CHECK:   %[[V1:[0-9]+]] = bitcast i8* %[[V0]] to %[[TYPE]]*<br>
 // CHECK:   store %[[TYPE]]* %[[V1]], %[[TYPE]]** %[[ALLOCA]]<br>
 // CHECK:   %[[V2:[0-9]+]] = bitcast %[[TYPE]]** %[[ALLOCA]]<br>
-// CHECK:   call void @objc_storeStrong(i8** %[[V2]], i8* null)<br>
+// CHECK:   call void @llvm.objc.storeStrong(i8** %[[V2]], i8* null)<br>
 void test1() {<br>
   constexpr NSString *S = @"abc";<br>
 }<br>
@@ -18,16 +18,16 @@ void test1() {<br>
 // CHECK-LABEL: define void @_Z5test2v<br>
 // CHECK:      %[[CONST:[a-zA-Z]+]] = alloca %[[TYPE]]*<br>
 // CHECK:      %[[REF_CONST:[a-zA-Z]+]] = alloca %[[TYPE]]*<br>
-// CHECK:      %[[V0:[0-9]+]] = call i8* @objc_retain(i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]]<br>
+// CHECK:      %[[V0:[0-9]+]] = call i8* @llvm.objc.retain(i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]]<br>
 // CHECK-NEXT: %[[V1:[0-9]+]] = bitcast i8* %[[V0]] to %[[TYPE]]*<br>
 // CHECK-NEXT: store %[[TYPE]]* %[[V1]], %[[TYPE]]** %[[CONST]]<br>
-// CHECK:      %[[V2:[0-9]+]] = call i8* @objc_retain(i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]]<br>
+// CHECK:      %[[V2:[0-9]+]] = call i8* @llvm.objc.retain(i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]]<br>
 // CHECK-NEXT: %[[V3:[0-9]+]] = bitcast i8* %[[V2]] to %[[TYPE]]*<br>
 // CHECK-NEXT: store %[[TYPE]]* %[[V3]], %[[TYPE]]** %[[REF_CONST]]<br>
 // CHECK:      %[[V4:[0-9]+]] = bitcast %[[TYPE]]** %[[REF_CONST]]<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** %[[V4]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** %[[V4]], i8* null)<br>
 // CHECK:      %[[V5:[0-9]+]] = bitcast %[[TYPE]]** %[[CONST]]<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** %[[V5]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** %[[V5]], i8* null)<br>
 void test2() {<br>
   constexpr NSString *Const = @"abc";<br>
   // In IR RefConst should be initialized with Const initializer instead of<br>
@@ -39,12 +39,12 @@ void test2() {<br>
 // CHECK:      %[[WEAK_CONST:[a-zA-Z]+]] = alloca %[[TYPE]]*<br>
 // CHECK:      %[[REF_WEAK_CONST:[a-zA-Z]+]] = alloca %[[TYPE]]*<br>
 // CHECK:      %[[V0:[0-9]+]] = bitcast %[[TYPE]]** %[[WEAK_CONST]]<br>
-// CHECK-NEXT: %[[V1:[0-9]+]] = call i8* @objc_initWeak(i8** %[[V0]], i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]]<br>
+// CHECK-NEXT: %[[V1:[0-9]+]] = call i8* @llvm.objc.initWeak(i8** %[[V0]], i8* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]]<br>
 // CHECK:      store %[[TYPE]]* bitcast (%struct.__NSConstantString_tag* @[[CFSTRING]] to %[[TYPE]]*), %[[TYPE]]** %[[REF_WEAK_CONST]]<br>
 // CHECK:      %[[V2:[0-9]+]] = bitcast %[[TYPE]]** %[[REF_WEAK_CONST]]<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** %[[V2]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** %[[V2]], i8* null)<br>
 // CHECK:      %[[V3:[0-9]+]] = bitcast %[[TYPE]]** %[[WEAK_CONST]]<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** %[[V3]])<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** %[[V3]])<br>
 void test3() {<br>
   __weak constexpr NSString *WeakConst = @"abc";<br>
   NSString* RefWeakConst = WeakConst;<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-cxx11-init-list.mm/" rel="noreferrer" target="_blank">arc-cxx11-init-list.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-cxx11-init-list.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-cxx11-init-list.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-cxx11-init-list.mm/" rel="noreferrer" target="_blank">arc-cxx11-init-list.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-cxx11-init-list.mm/" rel="noreferrer" target="_blank">arc-cxx11-init-list.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -29,14 +29,14 @@ extern "C" void single() { function({ [I<br>
 // CHECK: [[INSTANCE:%.*]] = {{.*}} call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* {{.*}}, i8* {{.*}})<br>
 // CHECK-NEXT: [[CAST:%.*]] = bitcast [{{[0-9]+}} x %0*]* %{{.*}} to i8**<br>
 // CHECK-NEXT: store i8* [[INSTANCE]], i8** [[CAST]],<br>
-// CHECK: call void @objc_release(i8* {{.*}})<br>
+// CHECK: call void @llvm.objc.release(i8* {{.*}})<br>
<br>
 extern "C" void multiple() { function({ [I new], [I new] }); }<br>
<br>
 // CHECK: [[INSTANCE:%.*]] = {{.*}} call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* {{.*}}, i8* {{.*}})<br>
 // CHECK-NEXT: [[CAST:%.*]] = bitcast [{{[0-9]+}} x %0*]* %{{.*}} to i8**<br>
 // CHECK-NEXT: store i8* [[INSTANCE]], i8** [[CAST]],<br>
-// CHECK: call void @objc_release(i8* {{.*}})<br>
+// CHECK: call void @llvm.objc.release(i8* {{.*}})<br>
<br>
 std::initializer_list<id> foo1() {<br>
   return {@"str0", @"str1"};<br>
@@ -58,11 +58,11 @@ extern "C" void extended() {<br>
<br>
 // CHECK: [[INSTANCE:%.*]] = {{.*}} call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* {{.*}}, i8* {{.*}})<br>
 // CHECK: {{.*}} call void @_Z8externalv()<br>
-// CHECK: {{.*}} call void @objc_release(i8* {{.*}})<br>
+// CHECK: {{.*}} call void @llvm.objc.release(i8* {{.*}})<br>
<br>
 std::initializer_list<I *> il = { [I new] };<br>
<br>
-// CHECK: [[POOL:%.*]] = {{.*}} call i8* @objc_autoreleasePoolPush()<br>
+// CHECK: [[POOL:%.*]] = {{.*}} call i8* @llvm.objc.autoreleasePoolPush()<br>
 // CHECK: [[INSTANCE:%.*]] = {{.*}} call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* {{.*}}, i8* {{.*}})<br>
 // CHECK-NEXT: store i8* [[INSTANCE]], i8** bitcast ([1 x %0*]* @_ZGR2il_ to i8**)<br>
-// CHECK: {{.*}} call void @objc_autoreleasePoolPop(i8* [[POOL]])<br>
+// CHECK: {{.*}} call void @llvm.objc.autoreleasePoolPop(i8* [[POOL]])<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-exceptions.mm/" rel="noreferrer" target="_blank">arc-exceptions.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-exceptions.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-exceptions.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-exceptions.mm/" rel="noreferrer" target="_blank">arc-exceptions.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-exceptions.mm/" rel="noreferrer" target="_blank">arc-exceptions.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -17,11 +17,11 @@ void test0(void) {<br>
 // CHECK:      [[T0:%.*]] = call i8* @objc_begin_catch(<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[ETY]]*<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[ETY]]* [[T1]] to i8*<br>
-// CHECK-NEXT: [[T3:%.*]] = call i8* @objc_retain(i8* [[T2]]) [[NUW:#[0-9]+]]<br>
+// CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.retain(i8* [[T2]]) [[NUW:#[0-9]+]]<br>
 // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to [[ETY]]*<br>
 // CHECK-NEXT: store [[ETY]]* [[T4]], [[ETY]]** [[E]]<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null) [[NUW]]<br>
 // CHECK-NEXT: call void @objc_end_catch() [[NUW]]<br>
<br>
 void test1_helper(void);<br>
@@ -38,9 +38,9 @@ void test1(void) {<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[ETY]]*<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast [[ETY]]* [[T1]] to i8*<br>
-// CHECK-NEXT: call i8* @objc_initWeak(i8** [[T2]], i8* [[T3]]) [[NUW]]<br>
+// CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[T2]], i8* [[T3]]) [[NUW]]<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[T0]]) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[T0]]) [[NUW]]<br>
 // CHECK-NEXT: call void @objc_end_catch() [[NUW]]<br>
<br>
 void test2_helper(void);<br>
@@ -56,11 +56,11 @@ void test2(void) {<br>
 // CHECK:      [[T0:%.*]] = call i8* @__cxa_begin_catch(<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[ETY]]*<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[ETY]]* [[T1]] to i8*<br>
-// CHECK-NEXT: [[T3:%.*]] = call i8* @objc_retain(i8* [[T2]]) [[NUW]]<br>
+// CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.retain(i8* [[T2]]) [[NUW]]<br>
 // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to [[ETY]]*<br>
 // CHECK-NEXT: store [[ETY]]* [[T4]], [[ETY]]** [[E]]<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[T0]], i8* null) [[NUW]]<br>
 // CHECK-NEXT: call void @__cxa_end_catch() [[NUW]]<br>
<br>
 void test3_helper(void);<br>
@@ -77,9 +77,9 @@ void test3(void) {<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast i8* [[T0]] to [[ETY]]*<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast [[ETY]]* [[T1]] to i8*<br>
-// CHECK-NEXT: call i8* @objc_initWeak(i8** [[T2]], i8* [[T3]]) [[NUW]]<br>
+// CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[T2]], i8* [[T3]]) [[NUW]]<br>
 // CHECK-NEXT: [[T0:%.*]] = bitcast [[ETY]]** [[E]] to i8**<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[T0]]) [[NUW]]<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[T0]]) [[NUW]]<br>
 // CHECK-NEXT: call void @__cxa_end_catch() [[NUW]]<br>
<br>
 namespace test4 {<br>
@@ -112,11 +112,11 @@ namespace test4 {<br>
   // CHECK-NEXT: br label<br>
   // CHECK:      [[AFTER:%.*]] = phi i8** [ [[ARRAYEND]], {{%.*}} ], [ [[ELT:%.*]], {{%.*}} ]<br>
   // CHECK-NEXT: [[ELT]] = getelementptr inbounds i8*, i8** [[AFTER]], i64 -1<br>
-  // CHECK-NEXT: call void @objc_storeStrong(i8** [[ELT]], i8* null) [[NUW]]<br>
+  // CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[ELT]], i8* null) [[NUW]]<br>
   // CHECK-NEXT: [[DONE:%.*]] = icmp eq i8** [[ELT]], [[ARRAYBEGIN]]<br>
   // CHECK-NEXT: br i1 [[DONE]],<br>
   //     - Next, destroy single.<br>
-  // CHECK:      call void @objc_storeStrong(i8** [[SINGLE]], i8* null) [[NUW]]<br>
+  // CHECK:      call void @llvm.objc.storeStrong(i8** [[SINGLE]], i8* null) [[NUW]]<br>
   // CHECK:      br label<br>
   // CHECK:      resume<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-forwarded-lambda-call.mm/" rel="noreferrer" target="_blank">arc-forwarded-lambda-call.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-forwarded-lambda-call.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-forwarded-lambda-call.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-forwarded-lambda-call.mm/" rel="noreferrer" target="_blank">arc-forwarded-lambda-call.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-forwarded-lambda-call.mm/" rel="noreferrer" target="_blank">arc-forwarded-lambda-call.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -5,8 +5,8 @@ void test0(id x) {<br>
   test0_helper([=]() { return x; });<br>
   // CHECK-LABEL: define internal i8* @___Z5test0P11objc_object_block_invoke<br>
   // CHECK: [[T0:%.*]] = call i8* @"_ZZ5test0P11objc_objectENK3$_0clEv"<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
-  // CHECK-NEXT: [[T2:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: ret i8* [[T2]]<br>
 }<br>
<br>
@@ -28,8 +28,8 @@ void test1() {<br>
   test1_helper([](){ return test1_rv; });<br>
   // CHECK-LABEL: define internal i8* @"_ZZ5test1vEN3$_18__invokeEv"<br>
   // CHECK: [[T0:%.*]] = call i8* @"_ZZ5test1vENK3$_1clEv"<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
-  // CHECK-NEXT: [[T2:%.*]] = tail call i8* @objc_autoreleaseReturnValue(i8* [[T1]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T2:%.*]] = tail call i8* @llvm.objc.autoreleaseReturnValue(i8* [[T1]])<br>
   // CHECK-NEXT: ret i8* [[T2]]<br>
 }<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-globals.mm/" rel="noreferrer" target="_blank">arc-globals.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-globals.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-globals.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-globals.mm/" rel="noreferrer" target="_blank">arc-globals.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-globals.mm/" rel="noreferrer" target="_blank">arc-globals.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -7,21 +7,21 @@ id getObject();<br>
<br>
 // CHECK-LABEL: define internal void @__cxx_global_var_init<br>
 // CHECK: call i8* @_Z9getObjectv<br>
-// CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue<br>
+// CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
 // CHECK-NEXT: {{store i8*.*@global_obj}}<br>
 // CHECK-NEXT: ret void<br>
 id global_obj = getObject();<br>
<br>
 // CHECK-LABEL: define internal void @__cxx_global_var_init<br>
 // CHECK: call i8* @_Z9getObjectv<br>
-// CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue<br>
+// CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
 // CHECK-NEXT: {{store i8*.*@global_obj2}}<br>
 // CHECK-NEXT: ret void<br>
 id global_obj2 = getObject();<br>
<br>
 // CHECK-LABEL: define internal void @_GLOBAL__sub_I_arc_globals.mm<br>
-// CHECK: call i8* @objc_autoreleasePoolPush()<br>
+// CHECK: call i8* @llvm.objc.autoreleasePoolPush()<br>
 // CHECK-NEXT: call void @__cxx_global_var_init<br>
 // CHECK-NEXT: call void @__cxx_global_var_init.1<br>
-// CHECK-NEXT: call void @objc_autoreleasePoolPop(<br>
+// CHECK-NEXT: call void @llvm.objc.autoreleasePoolPop(<br>
 // CHECK-NEXT: ret void<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-indirect.mm/" rel="noreferrer" target="_blank">arc-indirect.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-indirect.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-indirect.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-indirect.mm/" rel="noreferrer" target="_blank">arc-indirect.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-indirect.mm/" rel="noreferrer" target="_blank">arc-indirect.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -19,4 +19,4 @@ struct S {<br>
 // CHECK-DARWIN: define internal void @"\01-[C object:struct:]"(<{ %0*, i8*, i8*, %struct.S, [3 x i8] }>* inalloca)<br>
 // CHECK: %obj = getelementptr inbounds <{ %0*, i8*, i8*, %struct.S, [3 x i8] }>, <{ %0*, i8*, i8*, %struct.S, [3 x i8] }>* %0, i32 0, i32 2<br>
 // CHECK: %[[INSTANCE:[0-9]+]] = load i8*, i8** %obj, align 4<br>
-// CHECK: call void @objc_storeStrong(i8** %obj, i8* %[[INSTANCE]])<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %obj, i8* %[[INSTANCE]])<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-move.mm/" rel="noreferrer" target="_blank">arc-move.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-move.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-move.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-move.mm/" rel="noreferrer" target="_blank">arc-move.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-move.mm/" rel="noreferrer" target="_blank">arc-move.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -6,7 +6,7 @@ void simple_move(__strong id &x, __stron<br>
   // CHECK: store i8* null<br>
   // CHECK: = load i8*, i8**<br>
   // CHECK: store i8*<br>
-  // CHECK-NEXT: call void @objc_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release<br>
   x = static_cast<__strong id&&>(y);<br>
   // CHECK-NEXT: ret void<br>
 }<br>
@@ -39,7 +39,7 @@ void library_move(__strong id &x, __stro<br>
   // CHECK: load i8**, i8***<br>
   // CHECK-NEXT: load i8*, i8**<br>
   // CHECK-NEXT: store i8*<br>
-  // CHECK-NEXT: call void @objc_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release<br>
   // CHECK-NEXT: ret void<br>
   x = move(y);<br>
 }<br>
@@ -66,7 +66,7 @@ void library_move(__strong id &y) {<br>
   // CHECK-NEXT: [[IPTR2:%.*]] = bitcast i32* [[I]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 4, i8* [[IPTR2]])<br>
   // CHECK-NEXT: [[OBJ:%[a-zA-Z0-9]+]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[OBJ]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[OBJ]])<br>
   // CHECK-NEXT: [[XPTR2:%.*]] = bitcast i8** [[X]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[XPTR2]])<br>
   // CHECK-NEXT: ret void<br>
@@ -77,9 +77,9 @@ void const_move(const __strong id &x) {<br>
   // CHECK:      [[Y:%.*]] = alloca i8*,<br>
   // CHECK:      [[X:%.*]] = call dereferenceable({{[0-9]+}}) i8** @_Z4moveIRU8__strongKP11objc_objectEON16remove_referenceIT_E4typeEOS5_(<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]]<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[Y]]<br>
   // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
   id y = move(x);<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-new-delete.mm/" rel="noreferrer" target="_blank">arc-new-delete.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-new-delete.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-new-delete.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-new-delete.mm/" rel="noreferrer" target="_blank">arc-new-delete.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-new-delete.mm/" rel="noreferrer" target="_blank">arc-new-delete.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -8,8 +8,8 @@ typedef __weak id weak_id;<br>
 void test_new(id invalue) {<br>
   // CHECK: [[INVALUEADDR:%.*]] = alloca i8*<br>
   // UNOPT-NEXT: store i8* null, i8** [[INVALUEADDR]]<br>
-  // UNOPT-NEXT: call void @objc_storeStrong(i8** [[INVALUEADDR]], i8* [[INVALUE:%.*]])<br>
-  // OPT-NEXT: [[T0:%.*]] = call i8* @objc_retain(i8* [[INVALUE:%.*]])<br>
+  // UNOPT-NEXT: call void @llvm.objc.storeStrong(i8** [[INVALUEADDR]], i8* [[INVALUE:%.*]])<br>
+  // OPT-NEXT: [[T0:%.*]] = call i8* @llvm.objc.retain(i8* [[INVALUE:%.*]])<br>
   // OPT-NEXT: store i8* [[T0]], i8** [[INVALUEADDR]]<br>
<br>
   // CHECK: call i8* @_Znwm<br>
@@ -19,7 +19,7 @@ void test_new(id invalue) {<br>
   // CHECK: call i8* @_Znwm<br>
   // CHECK-NEXT: {{bitcast i8\*.*to i8\*\*}}<br>
   // UNOPT-NEXT: store i8* null, i8**<br>
-  // OPT-NEXT: call i8* @objc_initWeak(i8** {{.*}}, i8* null)<br>
+  // OPT-NEXT: call i8* @llvm.objc.initWeak(i8** {{.*}}, i8* null)<br>
   new weak_id;<br>
<br>
   // CHECK: call i8* @_Znwm<br>
@@ -29,20 +29,20 @@ void test_new(id invalue) {<br>
   // CHECK: call i8* @_Znwm<br>
   // CHECK-NEXT: {{bitcast i8\*.*to i8\*\*}}<br>
   // UNOPT-NEXT: store i8* null, i8**<br>
-  // OPT-NEXT: call i8* @objc_initWeak(i8** {{.*}}, i8* null)<br>
+  // OPT-NEXT: call i8* @llvm.objc.initWeak(i8** {{.*}}, i8* null)<br>
   new __weak id;<br>
<br>
   // CHECK: call i8* @_Znwm<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   // CHECK: store i8*<br>
   new __strong id(invalue);<br>
<br>
   // CHECK: call i8* @_Znwm<br>
-  // CHECK: call i8* @objc_initWeak<br>
+  // CHECK: call i8* @llvm.objc.initWeak<br>
   new __weak id(invalue);<br>
<br>
-  // UNOPT: call void @objc_storeStrong<br>
-  // OPT: call void @objc_release<br>
+  // UNOPT: call void @llvm.objc.storeStrong<br>
+  // OPT: call void @llvm.objc.release<br>
   // CHECK: ret void<br>
 }<br>
<br>
@@ -63,13 +63,13 @@ void test_array_new() {<br>
 // CHECK-LABEL: define void @_Z11test_deletePU8__strongP11objc_objectPU6__weakS0_<br>
 void test_delete(__strong id *sptr, __weak id *wptr) {<br>
   // CHECK: br i1<br>
-  // UNOPT: call void @objc_storeStrong(i8** {{.*}}, i8* null)<br>
+  // UNOPT: call void @llvm.objc.storeStrong(i8** {{.*}}, i8* null)<br>
   // OPT: load i8*, i8**<br>
-  // OPT-NEXT: call void @objc_release<br>
+  // OPT-NEXT: call void @llvm.objc.release<br>
   // CHECK: call void @_ZdlPv<br>
   delete sptr;<br>
<br>
-  // CHECK: call void @objc_destroyWeak<br>
+  // CHECK: call void @llvm.objc.destroyWeak<br>
   // CHECK: call void @_ZdlPv<br>
   delete wptr;<br>
<br>
@@ -84,9 +84,9 @@ void test_array_delete(__strong id *sptr<br>
   // CHECK-NEXT: icmp eq i8** [[BEGIN]], [[END]]<br>
   // CHECK: [[PAST:%.*]] = phi i8** [ [[END]], {{%.*}} ], [ [[CUR:%.*]],<br>
   // CHECK-NEXT: [[CUR]] = getelementptr inbounds i8*, i8** [[PAST]], i64 -1<br>
-  // UNOPT-NEXT: call void @objc_storeStrong(i8** [[CUR]], i8* null)<br>
+  // UNOPT-NEXT: call void @llvm.objc.storeStrong(i8** [[CUR]], i8* null)<br>
   // OPT-NEXT: [[T0:%.*]] = load i8*, i8** [[CUR]]<br>
-  // OPT-NEXT: objc_release(i8* [[T0]])<br>
+  // OPT-NEXT: llvm.objc.release(i8* [[T0]])<br>
   // CHECK-NEXT: icmp eq i8** [[CUR]], [[BEGIN]]<br>
   // CHECK: call void @_ZdaPv<br>
   delete [] sptr;<br>
@@ -97,7 +97,7 @@ void test_array_delete(__strong id *sptr<br>
   // CHECK-NEXT: icmp eq i8** [[BEGIN]], [[END]]<br>
   // CHECK: [[PAST:%.*]] = phi i8** [ [[END]], {{%.*}} ], [ [[CUR:%.*]],<br>
   // CHECK-NEXT: [[CUR]] = getelementptr inbounds i8*, i8** [[PAST]], i64 -1<br>
-  // CHECK-NEXT: call void @objc_destroyWeak(i8** [[CUR]])<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[CUR]])<br>
   // CHECK-NEXT: icmp eq i8** [[CUR]], [[BEGIN]]<br>
   // CHECK: call void @_ZdaPv<br>
   delete [] wptr;<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-pseudo-destructors.mm/" rel="noreferrer" target="_blank">arc-pseudo-destructors.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-pseudo-destructors.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-pseudo-destructors.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-pseudo-destructors.mm/" rel="noreferrer" target="_blank">arc-pseudo-destructors.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-pseudo-destructors.mm/" rel="noreferrer" target="_blank">arc-pseudo-destructors.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -4,18 +4,18 @@<br>
 void test_objc_object_pseudo_dtor(__strong id *ptr, __weak id *wptr) {<br>
   // CHECK: load i8**, i8***<br>
   // CHECK-NEXT: load i8*, i8**<br>
-  // CHECK-NEXT: call void @objc_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release<br>
   ptr->~id();<br>
<br>
-  // CHECK: call void @objc_destroyWeak(i8** {{%.*}})<br>
+  // CHECK: call void @llvm.objc.destroyWeak(i8** {{%.*}})<br>
   wptr->~id();<br>
<br>
   // CHECK: load i8**, i8***<br>
   // CHECK-NEXT: load i8*, i8**<br>
-  // CHECK-NEXT: call void @objc_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release<br>
   (*ptr).~id();<br>
<br>
-  // CHECK: call void @objc_destroyWeak(i8** {{%.*}})<br>
+  // CHECK: call void @llvm.objc.destroyWeak(i8** {{%.*}})<br>
   (*wptr).~id();<br>
   // CHECK: ret void<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-references.mm/" rel="noreferrer" target="_blank">arc-references.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-references.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-references.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-references.mm/" rel="noreferrer" target="_blank">arc-references.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-references.mm/" rel="noreferrer" target="_blank">arc-references.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -10,17 +10,17 @@ void callee();<br>
 // CHECK-LABEL: define void @_Z5test0v()<br>
 void test0() {<br>
   // CHECK: call i8* @_Z9getObjectv<br>
-  // CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   const __strong id &ref1 = getObject();<br>
   // CHECK: call void @_Z6calleev<br>
   callee();<br>
   // CHECK: call i8* @_Z9getObjectv<br>
-  // CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue<br>
-  // CHECK-NEXT: call i8* @objc_autorelease<br>
+  // CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
+  // CHECK-NEXT: call i8* @llvm.objc.autorelease<br>
   const __autoreleasing id &ref2 = getObject();<br>
   // CHECK: call void @_Z6calleev<br>
   callee();<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: ret<br>
 }<br>
<br>
@@ -39,12 +39,12 @@ typedef __strong id strong_id;<br>
 //CHECK: define void @_Z5test3v<br>
 void test3() {<br>
   // CHECK: [[REF:%.*]] = alloca i8**, align 8<br>
-  // CHECK: call i8* @objc_initWeak<br>
+  // CHECK: call i8* @llvm.objc.initWeak<br>
   // CHECK-NEXT: store i8**<br>
   const __weak id &ref = strong_id();<br>
   // CHECK-NEXT: call void @_Z6calleev()<br>
   callee();<br>
-  // CHECK-NEXT: call void @objc_destroyWeak<br>
+  // CHECK-NEXT: call void @llvm.objc.destroyWeak<br>
   // CHECK-NEXT: [[PTR:%.*]] = bitcast i8*** [[REF]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTR]])<br>
   // CHECK-NEXT: ret void<br>
@@ -52,11 +52,11 @@ void test3() {<br>
<br>
 // CHECK-LABEL: define void @_Z5test4RU8__strongP11objc_object<br>
 void test4(__strong id &x) {<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   __strong A* const &ar = x;<br>
   // CHECK: store i32 17, i32*<br>
   int i = 17;<br>
-  // CHECK: call void @objc_release(<br>
+  // CHECK: call void @llvm.objc.release(<br>
   // CHECK: ret void<br>
 }<br>
<br>
@@ -66,14 +66,14 @@ void sink(__strong A* &&);<br>
 void test5(__strong id &x) {<br>
   // CHECK:      [[REFTMP:%.*]] = alloca {{%.*}}*, align 8<br>
   // CHECK:      [[I:%.*]] = alloca i32, align 4<br>
-  // CHECK:      [[OBJ_ID:%.*]] = call i8* @objc_retain(<br>
+  // CHECK:      [[OBJ_ID:%.*]] = call i8* @llvm.objc.retain(<br>
   // CHECK-NEXT: [[OBJ_A:%.*]] = bitcast i8* [[OBJ_ID]] to [[A:%[a-zA-Z0-9]+]]*<br>
   // CHECK-NEXT: store [[A]]* [[OBJ_A]], [[A]]** [[REFTMP:%[a-zA-Z0-9]+]]<br>
   // CHECK-NEXT: call void @_Z4sinkOU8__strongP1A<br>
   sink(x);  <br>
   // CHECK-NEXT: [[OBJ_A:%[a-zA-Z0-9]+]] = load [[A]]*, [[A]]** [[REFTMP]]<br>
   // CHECK-NEXT: [[OBJ_ID:%[a-zA-Z0-9]+]] = bitcast [[A]]* [[OBJ_A]] to i8*<br>
-  // CHECK-NEXT: call void @objc_release<br>
+  // CHECK-NEXT: call void @llvm.objc.release<br>
   // CHECK-NEXT: [[IPTR1:%.*]] = bitcast i32* [[I]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 4, i8* [[IPTR1]])<br>
   // CHECK-NEXT: store i32 17, i32<br>
@@ -85,7 +85,7 @@ void test5(__strong id &x) {<br>
<br>
 // CHECK-LABEL: define internal void @__cxx_global_var_init(<br>
 // CHECK: call i8* @_Z9getObjectv<br>
-// CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue<br>
+// CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
 const __strong id &global_ref = getObject();<br>
<br>
 // Note: we intentionally don't release the object.<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-returns-inner-reference-ptr.mm/" rel="noreferrer" target="_blank">arc-returns-inner-reference-ptr.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-returns-inner-reference-ptr.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-returns-inner-reference-ptr.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-returns-inner-reference-ptr.mm/" rel="noreferrer" target="_blank">arc-returns-inner-reference-ptr.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-returns-inner-reference-ptr.mm/" rel="noreferrer" target="_blank">arc-returns-inner-reference-ptr.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -15,8 +15,8 @@ void foo() {<br>
<br>
 // CHECK: [[T0:%.*]] = load {{%.*}} {{%.*}}, align 8<br>
 // CHECK: [[T1:%.*]] = bitcast {{%.*}} [[T0]] to i8*<br>
-// call i8* @objc_retainAutorelease(i8* [[T1]]) nounwind<br>
+// call i8* @llvm.objc.retainAutorelease(i8* [[T1]]) nounwind<br>
 // CHECK: [[T2:%.*]] = load {{%.*}} {{%.*}}, align 8<br>
 // CHECK: [[T3:%.*]] = bitcast {{%.*}} [[T2]] to i8*<br>
-// call i8* @objc_retainAutorelease(i8* [[T3]]) nounwind<br>
+// call i8* @llvm.objc.retainAutorelease(i8* [[T3]]) nounwind<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-special-member-functions.mm/" rel="noreferrer" target="_blank">arc-special-member-functions.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-special-member-functions.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-special-member-functions.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-special-member-functions.mm/" rel="noreferrer" target="_blank">arc-special-member-functions.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-special-member-functions.mm/" rel="noreferrer" target="_blank">arc-special-member-functions.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -91,7 +91,7 @@ void test_ObjCMember_copy_assign(ObjCMem<br>
<br>
 // Implicitly-generated copy assignment operator for ObjCMember<br>
 // CHECK:    {{define linkonce_odr.*@_ZN10ObjCMemberaSERKS_}}<br>
-// CHECK:      call void @objc_storeStrong<br>
+// CHECK:      call void @llvm.objc.storeStrong<br>
 // CHECK:      ret<br>
<br>
 // CHECK-LABEL: define void @_Z47test_ObjCArrayMember_default_construct_destructv<br>
@@ -120,7 +120,7 @@ void test_ObjCArrayMember_copy_assign(Ob<br>
<br>
 // Implicitly-generated copy assignment operator for ObjCArrayMember<br>
 // CHECK: {{define linkonce_odr.*@_ZN15ObjCArrayMemberaSERKS_}}<br>
-// CHECK:      call void @objc_storeStrong<br>
+// CHECK:      call void @llvm.objc.storeStrong<br>
 // CHECK-NEXT: br label<br>
 // CHECK: ret<br>
<br>
@@ -155,13 +155,13 @@ void test_ObjCBlockMember_copy_assign(Ob<br>
 // CHECK:      [[T0:%.*]] = getelementptr inbounds [[T:%.*]], [[T:%.*]]* {{%.*}}, i32 0, i32 0<br>
 // CHECK-NEXT: [[T1:%.*]] = load i32 (i32)*, i32 (i32)** [[T0]], align 8<br>
 // CHECK-NEXT: [[T2:%.*]] = bitcast i32 (i32)* [[T1]] to i8*<br>
-// CHECK-NEXT: [[T3:%.*]] = call i8* @objc_retainBlock(i8* [[T2]])<br>
+// CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.retainBlock(i8* [[T2]])<br>
 // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to i32 (i32)*<br>
 // CHECK-NEXT: [[T5:%.*]] = getelementptr inbounds [[T]], [[T]]* {{%.*}}, i32 0, i32 0<br>
 // CHECK-NEXT: [[T6:%.*]] = load i32 (i32)*, i32 (i32)** [[T5]], align 8<br>
 // CHECK-NEXT: store i32 (i32)* [[T4]], i32 (i32)** [[T5]]<br>
 // CHECK-NEXT: [[T7:%.*]] = bitcast i32 (i32)* [[T6]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T7]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T7]])<br>
 // CHECK-NEXT: ret<br>
<br>
 // Check that the Weak object passed to this constructor is not destructed after<br>
@@ -179,13 +179,13 @@ void test_ObjCBlockMember_copy_assign(Ob<br>
<br>
 // Implicitly-generated destructor for ObjCMember<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN10ObjCMemberD2Ev<br>
-// CHECK: call void @objc_storeStrong<br>
+// CHECK: call void @llvm.objc.storeStrong<br>
 // CHECK: ret void<br>
<br>
 // Implicitly-generated copy constructor for ObjCMember<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN10ObjCMemberC2ERKS_<br>
 // CHECK-NOT: objc_release<br>
-// CHECK: call i8* @objc_retain<br>
+// CHECK: call i8* @llvm.objc.retain<br>
 // CHECK-NEXT: store i8*<br>
 // CHECK-NEXT: ret void<br>
<br>
@@ -201,14 +201,14 @@ void test_ObjCBlockMember_copy_assign(Ob<br>
 // CHECK-NEXT: br label<br>
 // CHECK:      [[PAST:%.*]] = phi i8** [ [[END]], {{%.*}} ], [ [[CUR:%.*]], {{%.*}} ]<br>
 // CHECK-NEXT: [[CUR]] = getelementptr inbounds i8*, i8** [[PAST]], i64 -1<br>
-// CHECK-NEXT: call void @objc_storeStrong(i8** [[CUR]], i8* null)<br>
+// CHECK-NEXT: call void @llvm.objc.storeStrong(i8** [[CUR]], i8* null)<br>
 // CHECK-NEXT: [[T1:%.*]] = icmp eq i8** [[CUR]], [[BEGIN]]<br>
 // CHECK-NEXT: br i1 [[T1]],<br>
 // CHECK:      ret void<br>
<br>
 // Implicitly-generated copy constructor for ObjCArrayMember<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN15ObjCArrayMemberC2ERKS_<br>
-// CHECK: call i8* @objc_retain<br>
+// CHECK: call i8* @llvm.objc.retain<br>
 // CHECK-NEXT: store i8*<br>
 // CHECK: br i1<br>
 // CHECK: ret<br>
@@ -220,11 +220,11 @@ void test_ObjCBlockMember_copy_assign(Ob<br>
<br>
 // Implicitly-generated destructor for ObjCBlockMember<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN15ObjCBlockMemberD2Ev<br>
-// CHECK: call void @objc_storeStrong(i8*<br>
+// CHECK: call void @llvm.objc.storeStrong(i8*<br>
 // CHECK: ret<br>
<br>
 // Implicitly-generated copy constructor for ObjCBlockMember<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN15ObjCBlockMemberC2ERKS_<br>
-// CHECK: call i8* @objc_retainBlock<br>
+// CHECK: call i8* @llvm.objc.retainBlock<br>
 // CHECK: ret<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-weak.mm/" rel="noreferrer" target="_blank">arc-weak.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-weak.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-weak.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-weak.mm/" rel="noreferrer" target="_blank">arc-weak.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc-weak.mm/" rel="noreferrer" target="_blank">arc-weak.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -15,9 +15,9 @@ void test0(__weak B **src) {<br>
 // CHECK-NEXT:  [[T1:%.*]] = bitcast [[B]]** [[T0]] to [[A]]**<br>
 // CHECK-NEXT:  [[T2:%.*]] = bitcast [[A]]** [[DEST]] to i8**<br>
 // CHECK-NEXT:  [[T3:%.*]] = bitcast [[A]]** [[T1]] to i8**<br>
-// CHECK-NEXT:  call void @objc_copyWeak(i8** [[T2]], i8** [[T3]])<br>
+// CHECK-NEXT:  call void @llvm.objc.copyWeak(i8** [[T2]], i8** [[T3]])<br>
 // CHECK-NEXT:  [[T0:%.*]] = bitcast [[A]]** [[DEST]] to i8**<br>
-// CHECK:       call void @objc_destroyWeak(i8** [[T0]])<br>
+// CHECK:       call void @llvm.objc.destroyWeak(i8** [[T0]])<br>
<br>
 void test1(__weak B **src) {<br>
   __weak A *dest = static_cast<__weak B*&&>(*src);<br>
@@ -29,6 +29,6 @@ void test1(__weak B **src) {<br>
 // CHECK-NEXT:  [[T1:%.*]] = bitcast [[B]]** [[T0]] to [[A]]**<br>
 // CHECK-NEXT:  [[T2:%.*]] = bitcast [[A]]** [[DEST]] to i8**<br>
 // CHECK-NEXT:  [[T3:%.*]] = bitcast [[A]]** [[T1]] to i8**<br>
-// CHECK-NEXT:  call void @objc_moveWeak(i8** [[T2]], i8** [[T3]])<br>
+// CHECK-NEXT:  call void @llvm.objc.moveWeak(i8** [[T2]], i8** [[T3]])<br>
 // CHECK-NEXT:  [[T0:%.*]] = bitcast [[A]]** [[DEST]] to i8**<br>
-// CHECK:       call void @objc_destroyWeak(i8** [[T0]])<br>
+// CHECK:       call void @llvm.objc.destroyWeak(i8** [[T0]])<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://arc.mm/" rel="noreferrer" target="_blank">arc.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://arc.mm/" rel="noreferrer" target="_blank">arc.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://arc.mm/" rel="noreferrer" target="_blank">arc.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -20,21 +20,21 @@ void test0(__weak id *wp, __weak volatil<br>
   // TODO: in the non-volatile case, we do not need to be reloading.<br>
<br>
   // CHECK:      [[T0:%.*]] = call i8* @_Z12test0_helperv()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8**, i8*** {{%.*}}, align 8<br>
-  // CHECK-NEXT: [[T3:%.*]] = call i8* @objc_storeWeak(i8** [[T2]], i8* [[T1]])<br>
-  // CHECK-NEXT: [[T4:%.*]] = call i8* @objc_retain(i8* [[T3]])<br>
+  // CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.storeWeak(i8** [[T2]], i8* [[T1]])<br>
+  // CHECK-NEXT: [[T4:%.*]] = call i8* @llvm.objc.retain(i8* [[T3]])<br>
   // CHECK-NEXT: store i8* [[T4]], i8**<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   id x = *wp = test0_helper();<br>
<br>
   // CHECK:      [[T0:%.*]] = call i8* @_Z12test0_helperv()<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8**, i8*** {{%.*}}, align 8<br>
-  // CHECK-NEXT: [[T3:%.*]] = call i8* @objc_storeWeak(i8** [[T2]], i8* [[T1]])<br>
-  // CHECK-NEXT: [[T4:%.*]] = call i8* @objc_loadWeakRetained(i8** [[T2]])<br>
+  // CHECK-NEXT: [[T3:%.*]] = call i8* @llvm.objc.storeWeak(i8** [[T2]], i8* [[T1]])<br>
+  // CHECK-NEXT: [[T4:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[T2]])<br>
   // CHECK-NEXT: store i8* [[T4]], i8**<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T1]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T1]])<br>
   id y = *wvp = test0_helper();<br>
 }<br>
<br>
@@ -69,7 +69,7 @@ void test34(int cond) {<br>
   // CHECK-NEXT: store i8* null, i8** [[STRONG]]<br>
   // CHECK-NEXT: [[WEAKP:%.*]] = bitcast i8** [[WEAK]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 8, i8* [[WEAKP]])<br>
-  // CHECK-NEXT: call i8* @objc_initWeak(i8** [[WEAK]], i8* null)<br>
+  // CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[WEAK]], i8* null)<br>
<br>
   // CHECK-NEXT: [[T0:%.*]] = load i32, i32* [[COND]]<br>
   // CHECK-NEXT: [[T1:%.*]] = icmp ne i32 [[T0]], 0<br>
@@ -85,11 +85,11 @@ void test34(int cond) {<br>
   // CHECK-NEXT: [[T0:%.*]] = icmp eq i8** [[ARG]], null<br>
   // CHECK-NEXT: br i1 [[T0]],<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[TEMP1]]<br>
-  // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retain(i8* [[T0]])<br>
+  // CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.retain(i8* [[T0]])<br>
   // CHECK-NEXT: call void (...) @clang.arc.use(i8* [[W0]])<br>
   // CHECK-NEXT: [[T2:%.*]] = load i8*, i8** [[ARG]]<br>
   // CHECK-NEXT: store i8* [[T1]], i8** [[ARG]]<br>
-  // CHECK-NEXT: call void @objc_release(i8* [[T2]])<br>
+  // CHECK-NEXT: call void @llvm.objc.release(i8* [[T2]])<br>
   // CHECK-NEXT: br label<br>
<br>
   // CHECK:      [[T0:%.*]] = load i32, i32* [[COND]]<br>
@@ -99,7 +99,7 @@ void test34(int cond) {<br>
   // CHECK-NEXT: [[T1:%.*]] = select i1 [[T0]], i8** null, i8** [[TEMP2]]<br>
   // CHECK-NEXT: store i1 false, i1* [[CONDCLEANUP]]<br>
   // CHECK-NEXT: br i1 [[T0]],<br>
-  // CHECK:      [[T0:%.*]] = call i8* @objc_loadWeakRetained(i8** [[ARG]])<br>
+  // CHECK:      [[T0:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[ARG]])<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[CONDCLEANUPSAVE]]<br>
   // CHECK-NEXT: store i1 true, i1* [[CONDCLEANUP]]<br>
   // CHECK-NEXT: store i8* [[T0]], i8** [[TEMP2]]<br>
@@ -108,10 +108,10 @@ void test34(int cond) {<br>
   // CHECK-NEXT: [[T0:%.*]] = icmp eq i8** [[ARG]], null<br>
   // CHECK-NEXT: br i1 [[T0]],<br>
   // CHECK:      [[T0:%.*]] = load i8*, i8** [[TEMP2]]<br>
-  // CHECK-NEXT: call i8* @objc_storeWeak(i8** [[ARG]], i8* [[T0]])<br>
+  // CHECK-NEXT: call i8* @llvm.objc.storeWeak(i8** [[ARG]], i8* [[T0]])<br>
   // CHECK-NEXT: br label<br>
<br>
-  // CHECK:      call void @objc_destroyWeak(i8** [[WEAK]])<br>
+  // CHECK:      call void @llvm.objc.destroyWeak(i8** [[WEAK]])<br>
   // CHECK:      ret void<br>
 }<br>
<br>
@@ -126,36 +126,36 @@ struct Test35_Helper {<br>
 void test35(Test35_Helper x0, Test35_Helper *x0p) {<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* @_ZN13Test35_Helper11makeObject1Ev<br>
-  // CHECK-NOT: call i8* @objc_retain<br>
+  // CHECK-NOT: call i8* @llvm.objc.retain<br>
   id obj1 = Test35_Helper::makeObject1();<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* @_ZN13Test35_Helper11makeObject2Ev<br>
-  // CHECK-NOT: call i8* @objc_retain<br>
+  // CHECK-NOT: call i8* @llvm.objc.retain<br>
   id obj2 = x0.makeObject2();<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* @_ZN13Test35_Helper11makeObject2Ev<br>
-  // CHECK-NOT: call i8* @objc_retain<br>
+  // CHECK-NOT: call i8* @llvm.objc.retain<br>
   id obj3 = x0p->makeObject2();<br>
   id (Test35_Helper::*pmf)() __attribute__((ns_returns_retained))<br>
     = &Test35_Helper::makeObject2;<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* %<br>
-  // CHECK-NOT: call i8* @objc_retain<br>
+  // CHECK-NOT: call i8* @llvm.objc.retain<br>
   id obj4 = (x0.*pmf)();<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* %<br>
-  // CHECK-NOT: call i8* @objc_retain<br>
+  // CHECK-NOT: call i8* @llvm.objc.retain<br>
   id obj5 = (x0p->*pmf)();<br>
<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
   // CHECK-NEXT: ret void<br>
 }<br>
@@ -164,36 +164,36 @@ void test35(Test35_Helper x0, Test35_Hel<br>
 void test35b(Test35_Helper x0, Test35_Helper *x0p) {<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* @_ZN13Test35_Helper11makeObject3Ev<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   id obj1 = Test35_Helper::makeObject3();<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* @_ZN13Test35_Helper11makeObject4Ev<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   id obj2 = x0.makeObject4();<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* @_ZN13Test35_Helper11makeObject4Ev<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   id obj3 = x0p->makeObject4();<br>
   id (Test35_Helper::*pmf)() = &Test35_Helper::makeObject4;<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* %<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   id obj4 = (x0.*pmf)();<br>
   // CHECK: call void @llvm.lifetime.start<br>
   // CHECK: call i8* %<br>
-  // CHECK: call i8* @objc_retain<br>
+  // CHECK: call i8* @llvm.objc.retain<br>
   id obj5 = (x0p->*pmf)();<br>
<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK: call void @llvm.lifetime.end<br>
   // CHECK-NEXT: ret void<br>
 }<br>
@@ -201,10 +201,10 @@ void test35b(Test35_Helper x0, Test35_He<br>
 // <a>rdar://problem/9603128</a><br>
 // CHECK-LABEL: define i8* @_Z6test36P11objc_object(<br>
 id test36(id z) {<br>
-  // CHECK: objc_retain<br>
-  // CHECK: objc_retain<br>
-  // CHECK: objc_release<br>
-  // CHECK: objc_autoreleaseReturnValue<br>
+  // CHECK: llvm.objc.retain<br>
+  // CHECK: llvm.objc.retain<br>
+  // CHECK: llvm.objc.release<br>
+  // CHECK: llvm.objc.autoreleaseReturnValue<br>
   return z;<br>
 }<br>
<br>
@@ -224,7 +224,7 @@ template void test37<Test37>(Test37 *a);<br>
 // CHECK-LABEL: define weak_odr void @_Z6test37I6Test37EvPT_(<br>
 // CHECK:      [[T0:%.*]] = call [[NSARRAY]]* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to [[NSARRAY]]* (i8*, i8*)*)(<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[NSARRAY]]* [[T0]] to i8*<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[T1]])<br>
 // CHECK-NEXT: [[COLL:%.*]] = bitcast i8* [[T2]] to [[NSARRAY]]*<br>
<br>
 // Make sure it's not immediately released before starting the iteration.<br>
@@ -242,7 +242,7 @@ template void test37<Test37>(Test37 *a);<br>
<br>
 // This bitcast is for the final release.<br>
 // CHECK:      [[T0:%.*]] = bitcast [[NSARRAY]]* [[COLL]] to i8*<br>
-// CHECK-NEXT: call void @objc_release(i8* [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.release(i8* [[T0]])<br>
<br>
 template<typename T><br>
 void send_release() {<br>
@@ -252,10 +252,10 @@ void send_release() {<br>
 // CHECK-LABEL: define weak_odr void @_Z12send_releaseIiEvv(<br>
 // CHECK: call %0* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend<br>
 // CHECK-NEXT: bitcast<br>
-// CHECK-NEXT: call i8* @objc_retainAutoreleasedReturnValue<br>
+// CHECK-NEXT: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
 // CHECK-NEXT: bitcast<br>
 // CHECK-NEXT: bitcast<br>
-// CHECK-NEXT: call void @objc_release<br>
+// CHECK-NEXT: call void @llvm.objc.release<br>
 // CHECK-NEXT: ret void<br>
 template void send_release<int>();<br>
<br>
@@ -268,9 +268,9 @@ Test37 *instantiate_init() {<br>
 // CHECK-LABEL: define weak_odr %2* @_Z16instantiate_initIiEP6Test37v<br>
 // CHECK: call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend<br>
 // CHECK: call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend<br>
-// CHECK: call i8* @objc_retain<br>
-// CHECK: call void @objc_release<br>
-// CHECK: call i8* @objc_autoreleaseReturnValue<br>
+// CHECK: call i8* @llvm.objc.retain<br>
+// CHECK: call void @llvm.objc.release<br>
+// CHECK: call i8* @llvm.objc.autoreleaseReturnValue<br>
 template Test37* instantiate_init<int>();<br>
<br>
 // Just make sure that the AST invariants hold properly here,<br>
@@ -322,7 +322,7 @@ template void test40_helper<int>();<br>
 // CHECK-NEXT: store i8* [[T0]], i8** [[TEMP]]<br>
 // CHECK:      @objc_msgSend<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[TEMP]]<br>
-// CHECK-NEXT: call i8* @objc_retain(i8* [[T0]])<br>
+// CHECK-NEXT: call i8* @llvm.objc.retain(i8* [[T0]])<br>
<br>
 // Check that moves out of __weak variables are compiled to use objc_moveWeak.<br>
 void test41(__weak id &&x) {<br>
@@ -332,5 +332,5 @@ void test41(__weak id &&x) {<br>
 // CHECK:      [[X:%.*]] = alloca i8**<br>
 // CHECK:      [[Y:%.*]] = alloca i8*<br>
 // CHECK:      [[T0:%.*]] = load i8**, i8*** [[X]]<br>
-// CHECK-NEXT: call void @objc_moveWeak(i8** [[Y]], i8** [[T0]])<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[Y]])<br>
+// CHECK-NEXT: call void @llvm.objc.moveWeak(i8** [[Y]], i8** [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[Y]])<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://block-nested-in-lambda.mm/" rel="noreferrer" target="_blank">block-nested-in-lambda.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/block-nested-in-lambda.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/block-nested-in-lambda.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://block-nested-in-lambda.mm/" rel="noreferrer" target="_blank">block-nested-in-lambda.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://block-nested-in-lambda.mm/" rel="noreferrer" target="_blank">block-nested-in-lambda.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -51,27 +51,27 @@ void test0() {<br>
 // CHECK: store %[[STRUCT_BLOCK_DESCRIPTOR]]* bitcast ({ i64, i64, i8*, i8*, i8*, i64 }* @"__block_descriptor_56_8_32s40s_e5_v8@?0l" to %[[STRUCT_BLOCK_DESCRIPTOR]]*), %[[STRUCT_BLOCK_DESCRIPTOR]]** %[[BLOCK_DESCRIPTOR]], align 8<br>
<br>
 // CHECK-LABEL: define linkonce_odr hidden void @__copy_helper_block_8_32s40s(<br>
-// CHECK-NOT: call void @objc_storeStrong(<br>
+// CHECK-NOT: call void @llvm.objc.storeStrong(<br>
 // CHECK: %[[V4:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>* %{{.*}}, i32 0, i32 5<br>
 // CHECK: %[[V5:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>* %{{.*}}, i32 0, i32 5<br>
 // CHECK: %[[BLOCKCOPY_SRC:.*]] = load i8*, i8** %[[V4]], align 8<br>
 // CHECK: store i8* null, i8** %[[V5]], align 8<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V5]], i8* %[[BLOCKCOPY_SRC]])<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V5]], i8* %[[BLOCKCOPY_SRC]])<br>
 // CHECK: %[[V6:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>* %{{.*}}, i32 0, i32 6<br>
 // CHECK: %[[V7:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>* %{{.*}}, i32 0, i32 6<br>
 // CHECK: %[[BLOCKCOPY_SRC2:.*]] = load i8*, i8** %[[V6]], align 8<br>
 // CHECK: store i8* null, i8** %[[V7]], align 8<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V7]], i8* %[[BLOCKCOPY_SRC2]])<br>
-// CHECK-NOT: call void @objc_storeStrong(<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V7]], i8* %[[BLOCKCOPY_SRC2]])<br>
+// CHECK-NOT: call void @llvm.objc.storeStrong(<br>
 // CHECK: ret void<br>
<br>
 // CHECK-LABEL: define linkonce_odr hidden void @__destroy_helper_block_8_32s40s(<br>
 // CHECK: %[[V2:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>* %{{.*}}, i32 0, i32 5<br>
 // CHECK: %[[V3:.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>, <{ i8*, i32, i32, i8*, %[[STRUCT_BLOCK_DESCRIPTOR]]*, i8*, i8*, i8** }>* %{{.*}}, i32 0, i32 6<br>
-// CHECK-NOT: call void @objc_storeStrong(<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V3]], i8* null)<br>
-// CHECK: call void @objc_storeStrong(i8** %[[V2]], i8* null)<br>
-// CHECK-NOT: call void @objc_storeStrong(<br>
+// CHECK-NOT: call void @llvm.objc.storeStrong(<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V3]], i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** %[[V2]], i8* null)<br>
+// CHECK-NOT: call void @llvm.objc.storeStrong(<br>
 // CHECK: ret void<br>
<br>
 void test1() {<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://destroy.mm/" rel="noreferrer" target="_blank">destroy.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/destroy.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/destroy.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://destroy.mm/" rel="noreferrer" target="_blank">destroy.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://destroy.mm/" rel="noreferrer" target="_blank">destroy.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -44,7 +44,7 @@ void test4() {<br>
 // CHECK: call void @_ZN8tderivedIiED1Ev<br>
<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN7derivedD2Ev<br>
-// CHECK: call void @objc_storeStrong(i8** {{.*}}, i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** {{.*}}, i8* null)<br>
<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN8tderivedIiED2Ev<br>
-// CHECK: call void @objc_storeStrong(i8** {{.*}}, i8* null)<br>
+// CHECK: call void @llvm.objc.storeStrong(i8** {{.*}}, i8* null)<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://lambda-expressions.mm/" rel="noreferrer" target="_blank">lambda-expressions.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/lambda-expressions.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/lambda-expressions.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://lambda-expressions.mm/" rel="noreferrer" target="_blank">lambda-expressions.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://lambda-expressions.mm/" rel="noreferrer" target="_blank">lambda-expressions.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -20,8 +20,8 @@ fp f() { auto x = []{ return 3; }; retur<br>
 // ARC-LABEL: define internal i32 ()* @"_ZZ1fvENK3$_0cvU13block_pointerFivEEv"<br>
 // ARC: store i8* bitcast (i8** @_NSConcreteStackBlock to i8*)<br>
 // ARC: store i8* bitcast (i32 (i8*)* @"___ZZ1fvENK3$_0cvU13block_pointerFivEEv_block_invoke" to i8*)<br>
-// ARC: call i8* @objc_retainBlock<br>
-// ARC: call i8* @objc_autoreleaseReturnValue<br>
+// ARC: call i8* @llvm.objc.retainBlock<br>
+// ARC: call i8* @llvm.objc.autoreleaseReturnValue<br>
<br>
 typedef int (^fp)();<br>
 fp global;<br>
@@ -35,8 +35,8 @@ void f2() { global = []{ return 3; }; }<br>
<br>
 // ARC: define void @_Z2f2v() [[NUW:#[0-9]+]] {<br>
 // ARC: store i8* bitcast (i32 (i8*)* @___Z2f2v_block_invoke to i8*),<br>
-// ARC: call i8* @objc_retainBlock<br>
-// ARC: call void @objc_release<br>
+// ARC: call i8* @llvm.objc.retainBlock<br>
+// ARC: call void @llvm.objc.release<br>
 // ARC-LABEL: define internal i32 @___Z2f2v_block_invoke<br>
 // ARC: call i32 @"_ZZ2f2vENK3$_1clEv<br>
<br>
@@ -72,7 +72,7 @@ void take_block(void (^block)()) { block<br>
 // ARC:   store i32 %{{.*}}, i32* %[[CAPTURE1]]<br>
<br>
 // ARC-LABEL: define internal void @"_ZZ10-[Foo foo]ENK3$_4clEv"(<br>
-// ARC-NOT: @objc_storeStrong(<br>
+// ARC-NOT: @llvm.objc.storeStrong(<br>
 // ARC: ret void<br>
<br>
 // ARC: define internal void @"___ZZN13LambdaCapture4foo1ERiENK3$_3clEv_block_invoke"<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://literals.mm/" rel="noreferrer" target="_blank">literals.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/literals.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/literals.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://literals.mm/" rel="noreferrer" target="_blank">literals.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://literals.mm/" rel="noreferrer" target="_blank">literals.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -29,7 +29,7 @@ void test_array() {<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 1, i8* [[TMP_CAST]])<br>
   // CHECK-NEXT: call void @_ZN1XC1Ev({{.*}} [[TMPX]])<br>
   // CHECK-NEXT: [[OBJECT0:%[a-zA-Z0-9.]+]] = invoke i8* @_ZNK1XcvP11objc_objectEv<br>
-  // CHECK: [[RET0:%[a-zA-Z0-9.]+]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[OBJECT0]])<br>
+  // CHECK: [[RET0:%[a-zA-Z0-9.]+]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[OBJECT0]])<br>
   // CHECK: store i8* [[RET0]], i8** [[ELEMENT0]]<br>
<br>
   // Initializing the second element<br>
@@ -38,36 +38,36 @@ void test_array() {<br>
   // CHECK-NEXT: call void @llvm.lifetime.start.p0i8(i64 1, i8* [[TMP_CAST]])<br>
   // CHECK-NEXT: invoke void @_ZN1YC1Ev({{.*}} [[TMPY]])<br>
   // CHECK: [[OBJECT1:%[a-zA-Z0-9.]+]] = invoke i8* @_ZNK1YcvP11objc_objectEv<br>
-  // CHECK: [[RET1:%[a-zA-Z0-9.]+]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[OBJECT1]])<br>
+  // CHECK: [[RET1:%[a-zA-Z0-9.]+]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[OBJECT1]])<br>
   // CHECK: store i8* [[RET1]], i8** [[ELEMENT1]]<br>
<br>
   // Build the array<br>
   // CHECK: {{invoke.*@objc_msgSend}}<br>
-  // CHECK: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   id arr = @[ X(), Y() ];<br>
<br>
   // Destroy temporaries<br>
   // CHECK-NOT: ret void<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NOT: ret void<br>
   // CHECK: invoke void @_ZN1YD1Ev<br>
   // CHECK-NOT: ret void<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: call void @_ZN1XD1Ev<br>
   // CHECK-NOT: ret void<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: [[PTR2:%.*]] = bitcast i8** [[ARR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTR2]])<br>
   // CHECK-NEXT: ret void<br>
<br>
   // Check cleanups<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK-NOT: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK-NOT: call void @llvm.objc.release<br>
   // CHECK: invoke void @_ZN1YD1Ev<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK-NOT: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK-NOT: call void @llvm.objc.release<br>
   // CHECK: invoke void @_ZN1XD1Ev<br>
-  // CHECK-NOT: call void @objc_release<br>
+  // CHECK-NOT: call void @llvm.objc.release<br>
   // CHECK: unreachable<br>
 }<br>
<br>
@@ -83,43 +83,43 @@ void test_array_instantiation() {<br>
   // CHECK: [[ELEMENT0:%[a-zA-Z0-9.]+]] = getelementptr inbounds [2 x i8*], [2 x i8*]* [[OBJECTS]], i64 0, i64 0<br>
   // CHECK: call void @_ZN1XC1Ev<br>
   // CHECK-NEXT: [[OBJECT0:%[a-zA-Z0-9.]+]] = invoke i8* @_ZNK1XcvP11objc_objectEv<br>
-  // CHECK: [[RET0:%[a-zA-Z0-9.]+]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[OBJECT0]])<br>
+  // CHECK: [[RET0:%[a-zA-Z0-9.]+]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[OBJECT0]])<br>
   // CHECK: store i8* [[RET0]], i8** [[ELEMENT0]]<br>
<br>
   // Initializing the second element<br>
   // CHECK: [[ELEMENT1:%[a-zA-Z0-9.]+]] = getelementptr inbounds [2 x i8*], [2 x i8*]* [[OBJECTS]], i64 0, i64 1<br>
   // CHECK: invoke void @_ZN1YC1Ev<br>
   // CHECK: [[OBJECT1:%[a-zA-Z0-9.]+]] = invoke i8* @_ZNK1YcvP11objc_objectEv<br>
-  // CHECK: [[RET1:%[a-zA-Z0-9.]+]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[OBJECT1]])<br>
+  // CHECK: [[RET1:%[a-zA-Z0-9.]+]] = call i8* @llvm.objc.retainAutoreleasedReturnValue(i8* [[OBJECT1]])<br>
   // CHECK: store i8* [[RET1]], i8** [[ELEMENT1]]<br>
<br>
   // Build the array<br>
   // CHECK: {{invoke.*@objc_msgSend}}<br>
-  // CHECK: call i8* @objc_retainAutoreleasedReturnValue<br>
+  // CHECK: call i8* @llvm.objc.retainAutoreleasedReturnValue<br>
   id arr = @[ X(), Y() ];<br>
<br>
   // Destroy temporaries<br>
   // CHECK-NOT: ret void<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NOT: ret void<br>
   // CHECK: invoke void @_ZN1YD1Ev<br>
   // CHECK-NOT: ret void<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: call void @_ZN1XD1Ev<br>
   // CHECK-NOT: ret void<br>
-  // CHECK: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
   // CHECK-NEXT: [[PTR2]] = bitcast i8** [[ARR]] to i8*<br>
   // CHECK-NEXT: call void @llvm.lifetime.end.p0i8(i64 8, i8* [[PTR2]])<br>
   // CHECK-NEXT: ret void<br>
<br>
   // Check cleanups<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK-NOT: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK-NOT: call void @llvm.objc.release<br>
   // CHECK: invoke void @_ZN1YD1Ev<br>
-  // CHECK: call void @objc_release<br>
-  // CHECK-NOT: call void @objc_release<br>
+  // CHECK: call void @llvm.objc.release<br>
+  // CHECK-NOT: call void @llvm.objc.release<br>
   // CHECK: invoke void @_ZN1XD1Ev<br>
-  // CHECK-NOT: call void @objc_release<br>
+  // CHECK-NOT: call void @llvm.objc.release<br>
   // CHECK: unreachable<br>
 }<br>
<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://microsoft-abi-arc-param-order.mm/" rel="noreferrer" target="_blank">microsoft-abi-arc-param-order.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/microsoft-abi-arc-param-order.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/microsoft-abi-arc-param-order.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://microsoft-abi-arc-param-order.mm/" rel="noreferrer" target="_blank">microsoft-abi-arc-param-order.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://microsoft-abi-arc-param-order.mm/" rel="noreferrer" target="_blank">microsoft-abi-arc-param-order.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -13,8 +13,8 @@ struct A {<br>
 // CHECK:                       (<{ %struct.A, i8*, %struct.A, i8* }>* inalloca)<br>
 void test_arc_order(A a, id __attribute__((ns_consumed)) b , A c, id __attribute__((ns_consumed)) d) {<br>
   // CHECK: call x86_thiscallcc void @"??1A@@QAE@XZ"(%struct.A* %{{.*}})<br>
-  // CHECK: call void @objc_storeStrong(i8** %{{.*}}, i8* null)<br>
+  // CHECK: call void @llvm.objc.storeStrong(i8** %{{.*}}, i8* null)<br>
   // CHECK: call x86_thiscallcc void @"??1A@@QAE@XZ"(%struct.A* %{{.*}})<br>
-  // CHECK: call void @objc_storeStrong(i8** %{{.*}}, i8* null)<br>
+  // CHECK: call void @llvm.objc.storeStrong(i8** %{{.*}}, i8* null)<br>
   // CHECK: ret void<br>
 }<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://mrc-weak.mm/" rel="noreferrer" target="_blank">mrc-weak.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/mrc-weak.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/mrc-weak.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://mrc-weak.mm/" rel="noreferrer" target="_blank">mrc-weak.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://mrc-weak.mm/" rel="noreferrer" target="_blank">mrc-weak.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -26,15 +26,15 @@<br>
<br>
 @implementation Foo<br>
 // CHECK-LABEL: define internal void @"\01-[Foo .cxx_destruct]"<br>
-// CHECK: call void @objc_destroyWeak<br>
+// CHECK: call void @llvm.objc.destroyWeak<br>
 @end<br>
<br>
<br>
 void test1(__weak id x) {}<br>
 // CHECK-LABEL: define void @_Z5test1P11objc_object(<br>
 // CHECK:      [[X:%.*]] = alloca i8*,<br>
-// CHECK-NEXT: objc_initWeak<br>
-// CHECK-NEXT: objc_destroyWeak<br>
+// CHECK-NEXT: llvm.objc.initWeak<br>
+// CHECK-NEXT: llvm.objc.destroyWeak<br>
 // CHECK-NEXT: ret void<br>
<br>
 void test2(id y) {<br>
@@ -45,8 +45,8 @@ void test2(id y) {<br>
 // CHECK-NEXT: [[Z:%.*]] = alloca i8*,<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-// CHECK-NEXT: call i8* @objc_initWeak(i8** [[Z]], i8* [[T0]])<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[Z]])<br>
+// CHECK-NEXT: call i8* @llvm.objc.initWeak(i8** [[Z]], i8* [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[Z]])<br>
 // CHECK-NEXT: ret void<br>
<br>
 void test3(id y) {<br>
@@ -59,8 +59,8 @@ void test3(id y) {<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: store i8* null, i8** [[Z]]<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[Y]]<br>
-// CHECK-NEXT: call i8* @objc_storeWeak(i8** [[Z]], i8* [[T0]])<br>
-// CHECK-NEXT: call void @objc_destroyWeak(i8** [[Z]])<br>
+// CHECK-NEXT: call i8* @llvm.objc.storeWeak(i8** [[Z]], i8* [[T0]])<br>
+// CHECK-NEXT: call void @llvm.objc.destroyWeak(i8** [[Z]])<br>
 // CHECK-NEXT: ret void<br>
<br>
 void test4(__weak id *p) {<br>
@@ -71,7 +71,7 @@ void test4(__weak id *p) {<br>
 // CHECK-NEXT: [[Y:%.*]] = alloca i8*,<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8**, i8*** [[P]]<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_loadWeak(i8** [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.loadWeak(i8** [[T0]])<br>
 // CHECK-NEXT: store i8* [[T1]], i8** [[Y]]<br>
 // CHECK-NEXT: ret void<br>
<br>
@@ -83,7 +83,7 @@ void test5(__weak id *p) {<br>
 // CHECK-NEXT: [[Y:%.*]] = alloca i8*,<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: [[T0:%.*]] = load i8**, i8*** [[P]]<br>
-// CHECK-NEXT: [[T1:%.*]] = call i8* @objc_loadWeakRetained(i8** [[T0]])<br>
+// CHECK-NEXT: [[T1:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[T0]])<br>
 // CHECK-NEXT: store i8* [[T1]], i8** [[Y]]<br>
 // CHECK-NEXT: ret void<br>
<br>
@@ -96,7 +96,7 @@ void test6(__weak Foo **p) {<br>
 // CHECK-NEXT: store<br>
 // CHECK-NEXT: [[T0:%.*]] = load [[FOO]]**, [[FOO]]*** [[P]]<br>
 // CHECK-NEXT: [[T1:%.*]] = bitcast [[FOO]]** [[T0]] to i8**<br>
-// CHECK-NEXT: [[T2:%.*]] = call i8* @objc_loadWeakRetained(i8** [[T1]])<br>
+// CHECK-NEXT: [[T2:%.*]] = call i8* @llvm.objc.loadWeakRetained(i8** [[T1]])<br>
 // CHECK-NEXT: [[T3:%.*]] = bitcast i8* [[T2]] to [[FOO]]*<br>
 // CHECK-NEXT: store [[FOO]]* [[T3]], [[FOO]]** [[Y]]<br>
 // CHECK-NEXT: ret void<br>
@@ -114,32 +114,32 @@ void test7(void) {<br>
 // CHECK-NEXT:  [[T1:%.*]] = bitcast i8* [[T0]] to [[FOO]]*<br>
 // CHECK-NEXT:  [[T2:%.*]] = bitcast [[FOO]]** [[P]] to i8**<br>
 // CHECK-NEXT:  [[T3:%.*]] = bitcast [[FOO]]* [[T1]] to i8*<br>
-// CHECK-NEXT:  call i8* @objc_initWeak(i8** [[T2]], i8* [[T3]])<br>
-// CHECK:       call void @objc_copyWeak<br>
+// CHECK-NEXT:  call i8* @llvm.objc.initWeak(i8** [[T2]], i8* [[T3]])<br>
+// CHECK:       call void @llvm.objc.copyWeak<br>
 // CHECK:       call void @use_block<br>
-// CHECK:       call void @objc_destroyWeak<br>
+// CHECK:       call void @llvm.objc.destroyWeak<br>
<br>
 // CHECK-LABEL: define linkonce_odr hidden void @__copy_helper_block<br>
-// CHECK:       @objc_copyWeak<br>
+// CHECK:       @llvm.objc.copyWeak<br>
<br>
 // CHECK-LABEL: define linkonce_odr hidden void @__destroy_helper_block<br>
-// CHECK:       @objc_destroyWeak<br>
+// CHECK:       @llvm.objc.destroyWeak<br>
<br>
 void test8(void) {<br>
   __block __weak Foo *p = get_object();<br>
   use_block(^{ [p run ]; });<br>
 }<br>
 // CHECK-LABEL: define void @_Z5test8v<br>
-// CHECK:       call i8* @objc_initWeak<br>
-// CHECK-NOT:   call void @objc_copyWeak<br>
+// CHECK:       call i8* @llvm.objc.initWeak<br>
+// CHECK-NOT:   call void @llvm.objc.copyWeak<br>
 // CHECK:       call void @use_block<br>
-// CHECK:       call void @objc_destroyWeak<br>
+// CHECK:       call void @llvm.objc.destroyWeak<br>
<br>
 // CHECK-LABEL: define internal void @__Block_byref_object_copy<br>
-// CHECK:       call void @objc_moveWeak<br>
+// CHECK:       call void @llvm.objc.moveWeak<br>
<br>
 // CHECK-LABEL: define internal void @__Block_byref_object_dispose<br>
-// CHECK:       call void @objc_destroyWeak<br>
+// CHECK:       call void @llvm.objc.destroyWeak<br>
<br>
 // CHECK-LABEL: define void @_Z14test9_baselinev()<br>
 // CHECK:       define linkonce_odr hidden void @__copy_helper<br>
<br>
Modified: cfe/trunk/test/CodeGenObjCXX/<a href="http://objc-weak.mm/" rel="noreferrer" target="_blank">objc-weak.mm</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/objc-weak.mm?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/objc-weak.mm?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/CodeGenObjCXX/<a href="http://objc-weak.mm/" rel="noreferrer" target="_blank">objc-weak.mm</a> (original)<br>
+++ cfe/trunk/test/CodeGenObjCXX/<a href="http://objc-weak.mm/" rel="noreferrer" target="_blank">objc-weak.mm</a> Tue Dec 18 12:33:00 2018<br>
@@ -18,9 +18,9 @@ id test0() {<br>
 // CHECK:       [[THIS:%this.*]] = load [[A]]*, [[A]]** [[THISADDR]]<br>
 // CHECK:       [[OBJECT:%.*]] = load [[A]]*, [[A]]** [[OBJECTADDR]]<br>
 // CHECK:       [[T0:%.*]] = getelementptr inbounds [[A]], [[A]]* [[OBJECT]], i32 0, i32 0<br>
-// CHECK-NEXT:  [[T1:%.*]] = call i8* @objc_loadWeak(i8** [[T0]])<br>
+// CHECK-NEXT:  [[T1:%.*]] = call i8* @llvm.objc.loadWeak(i8** [[T0]])<br>
 // CHECK-NEXT:  [[T2:%.*]] = getelementptr inbounds [[A]], [[A]]* [[THIS]], i32 0, i32 0<br>
-// CHECK-NEXT:  [[T3:%.*]] = call i8* @objc_storeWeak(i8** [[T2]], i8* [[T1]])<br>
+// CHECK-NEXT:  [[T3:%.*]] = call i8* @llvm.objc.storeWeak(i8** [[T2]], i8* [[T1]])<br>
<br>
 // Move Assignment Operator<br>
 // CHECK-LABEL: define linkonce_odr dereferenceable({{[0-9]+}}) %struct.A* @_ZN1AaSEOS_(<br>
@@ -29,9 +29,9 @@ id test0() {<br>
 // CHECK:       [[THIS:%this.*]] = load [[A]]*, [[A]]** [[THISADDR]]<br>
 // CHECK:       [[OBJECT:%.*]] = load [[A]]*, [[A]]** [[OBJECTADDR]]<br>
 // CHECK:       [[T0:%.*]] = getelementptr inbounds [[A]], [[A]]* [[OBJECT]], i32 0, i32 0<br>
-// CHECK-NEXT:  [[T1:%.*]] = call i8* @objc_loadWeak(i8** [[T0]])<br>
+// CHECK-NEXT:  [[T1:%.*]] = call i8* @llvm.objc.loadWeak(i8** [[T0]])<br>
 // CHECK-NEXT:  [[T2:%.*]] = getelementptr inbounds [[A]], [[A]]* [[THIS]], i32 0, i32 0<br>
-// CHECK-NEXT:  [[T3:%.*]] = call i8* @objc_storeWeak(i8** [[T2]], i8* [[T1]])<br>
+// CHECK-NEXT:  [[T3:%.*]] = call i8* @llvm.objc.storeWeak(i8** [[T2]], i8* [[T1]])<br>
<br>
 // Default Constructor<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN1AC2Ev(<br>
@@ -48,7 +48,7 @@ id test0() {<br>
 // CHECK:       [[T0:%.*]] = getelementptr inbounds [[A]], [[A]]* [[THIS]], i32 0, i32 0<br>
 // CHECK-NEXT:  [[OBJECT:%.*]] = load [[A]]*, [[A]]** [[OBJECTADDR]]<br>
 // CHECK-NEXT:  [[T1:%.*]] = getelementptr inbounds [[A]], [[A]]* [[OBJECT]], i32 0, i32 0<br>
-// CHECK-NEXT:  call void @objc_copyWeak(i8** [[T0]], i8** [[T1]])<br>
+// CHECK-NEXT:  call void @llvm.objc.copyWeak(i8** [[T0]], i8** [[T1]])<br>
<br>
 // Move Constructor<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN1AC2EOS_(<br>
@@ -58,12 +58,12 @@ id test0() {<br>
 // CHECK:       [[T0:%.*]] = getelementptr inbounds [[A]], [[A]]* [[THIS]], i32 0, i32 0<br>
 // CHECK-NEXT:  [[OBJECT:%.*]] = load [[A]]*, [[A]]** [[OBJECTADDR]]<br>
 // CHECK-NEXT:  [[T1:%.*]] = getelementptr inbounds [[A]], [[A]]* [[OBJECT]], i32 0, i32 0<br>
-// CHECK-NEXT:  call void @objc_moveWeak(i8** [[T0]], i8** [[T1]])<br>
+// CHECK-NEXT:  call void @llvm.objc.moveWeak(i8** [[T0]], i8** [[T1]])<br>
<br>
 // Destructor<br>
 // CHECK-LABEL: define linkonce_odr void @_ZN1AD2Ev(<br>
 // CHECK:       [[THISADDR:%this.*]] = alloca [[A:.*]]*<br>
 // CHECK:       [[THIS:%this.*]] = load [[A]]*, [[A]]** [[THISADDR]]<br>
 // CHECK-NEXT:  [[T0:%.*]] = getelementptr inbounds [[A]], [[A]]* [[THIS]], i32 0, i32 0<br>
-// CHECK-NEXT:  call void @objc_destroyWeak(i8** [[T0]])<br>
+// CHECK-NEXT:  call void @llvm.objc.destroyWeak(i8** [[T0]])<br>
<br>
<br>
Modified: cfe/trunk/test/SemaObjC/arc-objc-lifetime-conflict.m<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/arc-objc-lifetime-conflict.m?rev=349535&r1=349534&r2=349535&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/arc-objc-lifetime-conflict.m?rev=349535&r1=349534&r2=349535&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/SemaObjC/arc-objc-lifetime-conflict.m (original)<br>
+++ cfe/trunk/test/SemaObjC/arc-objc-lifetime-conflict.m Tue Dec 18 12:33:00 2018<br>
@@ -1,19 +1,19 @@<br>
 // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-arc -fobjc-runtime-has-weak %s -emit-llvm -o - | FileCheck %s<br>
<br>
 // CHECK: bitcast {{.*}} %self_weak_s_w_s<br>
-// CHECK-NEXT: objc_destroyWeak<br>
+// CHECK-NEXT: llvm.objc.destroyWeak<br>
 // CHECK-NEXT: bitcast {{.*}} %self_strong_w_s<br>
-// CHECK-NEXT: objc_storeStrong<br>
+// CHECK-NEXT: llvm.objc.storeStrong<br>
 // CHECK-NEXT: bitcast {{.*}} %self_weak_s<br>
-// CHECK-NEXT: objc_destroyWeak<br>
+// CHECK-NEXT: llvm.objc.destroyWeak<br>
 // CHECK-NEXT: bitcast {{.*}} %self_weak_s3<br>
-// CHECK-NEXT: objc_destroyWeak<br>
+// CHECK-NEXT: llvm.objc.destroyWeak<br>
 // CHECK-NEXT: bitcast {{.*}} %self_strong3<br>
-// CHECK-NEXT: objc_storeStrong<br>
+// CHECK-NEXT: llvm.objc.storeStrong<br>
 // CHECK-NEXT: bitcast {{.*}} %self_strong2<br>
-// CHECK-NEXT: objc_storeStrong<br>
+// CHECK-NEXT: llvm.objc.storeStrong<br>
 // CHECK-NEXT: bitcast {{.*}} %self_strong<br>
-// CHECK-NEXT: objc_storeStrong<br>
+// CHECK-NEXT: llvm.objc.storeStrong<br>
 @interface NSObject<br>
 @end<br>
 @interface A : NSObject<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div>
</div></blockquote></div><br></div></div>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br></div></blockquote></div><br></div></div></blockquote></div>