mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 08:46:06 +00:00
Documentation cleanup: Escape @objc* in Doxygen comments.
llvm-svn: 158974
This commit is contained in:
parent
24d3d4ae6d
commit
14c41ea3dd
@ -1814,8 +1814,8 @@ static void emitARCCopyOperation(CodeGenFunction &CGF,
|
||||
}
|
||||
|
||||
/// Produce the code to do a retain. Based on the type, calls one of:
|
||||
/// call i8* @objc_retain(i8* %value)
|
||||
/// call i8* @objc_retainBlock(i8* %value)
|
||||
/// call i8* \@objc_retain(i8* %value)
|
||||
/// call i8* \@objc_retainBlock(i8* %value)
|
||||
llvm::Value *CodeGenFunction::EmitARCRetain(QualType type, llvm::Value *value) {
|
||||
if (type->isBlockPointerType())
|
||||
return EmitARCRetainBlock(value, /*mandatory*/ false);
|
||||
@ -1824,7 +1824,7 @@ llvm::Value *CodeGenFunction::EmitARCRetain(QualType type, llvm::Value *value) {
|
||||
}
|
||||
|
||||
/// Retain the given object, with normal retain semantics.
|
||||
/// call i8* @objc_retain(i8* %value)
|
||||
/// call i8* \@objc_retain(i8* %value)
|
||||
llvm::Value *CodeGenFunction::EmitARCRetainNonBlock(llvm::Value *value) {
|
||||
return emitARCValueOperation(*this, value,
|
||||
CGM.getARCEntrypoints().objc_retain,
|
||||
@ -1832,7 +1832,7 @@ llvm::Value *CodeGenFunction::EmitARCRetainNonBlock(llvm::Value *value) {
|
||||
}
|
||||
|
||||
/// Retain the given block, with _Block_copy semantics.
|
||||
/// call i8* @objc_retainBlock(i8* %value)
|
||||
/// call i8* \@objc_retainBlock(i8* %value)
|
||||
///
|
||||
/// \param mandatory - If false, emit the call with metadata
|
||||
/// indicating that it's okay for the optimizer to eliminate this call
|
||||
@ -1862,7 +1862,7 @@ llvm::Value *CodeGenFunction::EmitARCRetainBlock(llvm::Value *value,
|
||||
}
|
||||
|
||||
/// Retain the given object which is the result of a function call.
|
||||
/// call i8* @objc_retainAutoreleasedReturnValue(i8* %value)
|
||||
/// call i8* \@objc_retainAutoreleasedReturnValue(i8* %value)
|
||||
///
|
||||
/// Yes, this function name is one character away from a different
|
||||
/// call with completely different semantics.
|
||||
@ -1912,7 +1912,7 @@ CodeGenFunction::EmitARCRetainAutoreleasedReturnValue(llvm::Value *value) {
|
||||
}
|
||||
|
||||
/// Release the given object.
|
||||
/// call void @objc_release(i8* %value)
|
||||
/// call void \@objc_release(i8* %value)
|
||||
void CodeGenFunction::EmitARCRelease(llvm::Value *value, bool precise) {
|
||||
if (isa<llvm::ConstantPointerNull>(value)) return;
|
||||
|
||||
@ -1939,7 +1939,7 @@ void CodeGenFunction::EmitARCRelease(llvm::Value *value, bool precise) {
|
||||
}
|
||||
|
||||
/// Store into a strong object. Always calls this:
|
||||
/// call void @objc_storeStrong(i8** %addr, i8* %value)
|
||||
/// call void \@objc_storeStrong(i8** %addr, i8* %value)
|
||||
llvm::Value *CodeGenFunction::EmitARCStoreStrongCall(llvm::Value *addr,
|
||||
llvm::Value *value,
|
||||
bool ignored) {
|
||||
@ -1964,7 +1964,7 @@ llvm::Value *CodeGenFunction::EmitARCStoreStrongCall(llvm::Value *addr,
|
||||
}
|
||||
|
||||
/// Store into a strong object. Sometimes calls this:
|
||||
/// call void @objc_storeStrong(i8** %addr, i8* %value)
|
||||
/// call void \@objc_storeStrong(i8** %addr, i8* %value)
|
||||
/// Other times, breaks it down into components.
|
||||
llvm::Value *CodeGenFunction::EmitARCStoreStrong(LValue dst,
|
||||
llvm::Value *newValue,
|
||||
@ -2000,7 +2000,7 @@ llvm::Value *CodeGenFunction::EmitARCStoreStrong(LValue dst,
|
||||
}
|
||||
|
||||
/// Autorelease the given object.
|
||||
/// call i8* @objc_autorelease(i8* %value)
|
||||
/// call i8* \@objc_autorelease(i8* %value)
|
||||
llvm::Value *CodeGenFunction::EmitARCAutorelease(llvm::Value *value) {
|
||||
return emitARCValueOperation(*this, value,
|
||||
CGM.getARCEntrypoints().objc_autorelease,
|
||||
@ -2008,7 +2008,7 @@ llvm::Value *CodeGenFunction::EmitARCAutorelease(llvm::Value *value) {
|
||||
}
|
||||
|
||||
/// Autorelease the given object.
|
||||
/// call i8* @objc_autoreleaseReturnValue(i8* %value)
|
||||
/// call i8* \@objc_autoreleaseReturnValue(i8* %value)
|
||||
llvm::Value *
|
||||
CodeGenFunction::EmitARCAutoreleaseReturnValue(llvm::Value *value) {
|
||||
return emitARCValueOperation(*this, value,
|
||||
@ -2017,7 +2017,7 @@ CodeGenFunction::EmitARCAutoreleaseReturnValue(llvm::Value *value) {
|
||||
}
|
||||
|
||||
/// Do a fused retain/autorelease of the given object.
|
||||
/// call i8* @objc_retainAutoreleaseReturnValue(i8* %value)
|
||||
/// call i8* \@objc_retainAutoreleaseReturnValue(i8* %value)
|
||||
llvm::Value *
|
||||
CodeGenFunction::EmitARCRetainAutoreleaseReturnValue(llvm::Value *value) {
|
||||
return emitARCValueOperation(*this, value,
|
||||
@ -2026,10 +2026,10 @@ CodeGenFunction::EmitARCRetainAutoreleaseReturnValue(llvm::Value *value) {
|
||||
}
|
||||
|
||||
/// Do a fused retain/autorelease of the given object.
|
||||
/// call i8* @objc_retainAutorelease(i8* %value)
|
||||
/// call i8* \@objc_retainAutorelease(i8* %value)
|
||||
/// or
|
||||
/// %retain = call i8* @objc_retainBlock(i8* %value)
|
||||
/// call i8* @objc_autorelease(i8* %retain)
|
||||
/// %retain = call i8* \@objc_retainBlock(i8* %value)
|
||||
/// call i8* \@objc_autorelease(i8* %retain)
|
||||
llvm::Value *CodeGenFunction::EmitARCRetainAutorelease(QualType type,
|
||||
llvm::Value *value) {
|
||||
if (!type->isBlockPointerType())
|
||||
@ -2045,7 +2045,7 @@ llvm::Value *CodeGenFunction::EmitARCRetainAutorelease(QualType type,
|
||||
}
|
||||
|
||||
/// Do a fused retain/autorelease of the given object.
|
||||
/// call i8* @objc_retainAutorelease(i8* %value)
|
||||
/// call i8* \@objc_retainAutorelease(i8* %value)
|
||||
llvm::Value *
|
||||
CodeGenFunction::EmitARCRetainAutoreleaseNonBlock(llvm::Value *value) {
|
||||
return emitARCValueOperation(*this, value,
|
||||
@ -2053,7 +2053,7 @@ CodeGenFunction::EmitARCRetainAutoreleaseNonBlock(llvm::Value *value) {
|
||||
"objc_retainAutorelease");
|
||||
}
|
||||
|
||||
/// i8* @objc_loadWeak(i8** %addr)
|
||||
/// i8* \@objc_loadWeak(i8** %addr)
|
||||
/// Essentially objc_autorelease(objc_loadWeakRetained(addr)).
|
||||
llvm::Value *CodeGenFunction::EmitARCLoadWeak(llvm::Value *addr) {
|
||||
return emitARCLoadOperation(*this, addr,
|
||||
@ -2061,14 +2061,14 @@ llvm::Value *CodeGenFunction::EmitARCLoadWeak(llvm::Value *addr) {
|
||||
"objc_loadWeak");
|
||||
}
|
||||
|
||||
/// i8* @objc_loadWeakRetained(i8** %addr)
|
||||
/// i8* \@objc_loadWeakRetained(i8** %addr)
|
||||
llvm::Value *CodeGenFunction::EmitARCLoadWeakRetained(llvm::Value *addr) {
|
||||
return emitARCLoadOperation(*this, addr,
|
||||
CGM.getARCEntrypoints().objc_loadWeakRetained,
|
||||
"objc_loadWeakRetained");
|
||||
}
|
||||
|
||||
/// i8* @objc_storeWeak(i8** %addr, i8* %value)
|
||||
/// i8* \@objc_storeWeak(i8** %addr, i8* %value)
|
||||
/// Returns %value.
|
||||
llvm::Value *CodeGenFunction::EmitARCStoreWeak(llvm::Value *addr,
|
||||
llvm::Value *value,
|
||||
@ -2078,7 +2078,7 @@ llvm::Value *CodeGenFunction::EmitARCStoreWeak(llvm::Value *addr,
|
||||
"objc_storeWeak", ignored);
|
||||
}
|
||||
|
||||
/// i8* @objc_initWeak(i8** %addr, i8* %value)
|
||||
/// i8* \@objc_initWeak(i8** %addr, i8* %value)
|
||||
/// Returns %value. %addr is known to not have a current weak entry.
|
||||
/// Essentially equivalent to:
|
||||
/// *addr = nil; objc_storeWeak(addr, value);
|
||||
@ -2098,7 +2098,7 @@ void CodeGenFunction::EmitARCInitWeak(llvm::Value *addr, llvm::Value *value) {
|
||||
"objc_initWeak", /*ignored*/ true);
|
||||
}
|
||||
|
||||
/// void @objc_destroyWeak(i8** %addr)
|
||||
/// void \@objc_destroyWeak(i8** %addr)
|
||||
/// Essentially objc_storeWeak(addr, nil).
|
||||
void CodeGenFunction::EmitARCDestroyWeak(llvm::Value *addr) {
|
||||
llvm::Constant *&fn = CGM.getARCEntrypoints().objc_destroyWeak;
|
||||
@ -2116,7 +2116,7 @@ void CodeGenFunction::EmitARCDestroyWeak(llvm::Value *addr) {
|
||||
call->setDoesNotThrow();
|
||||
}
|
||||
|
||||
/// void @objc_moveWeak(i8** %dest, i8** %src)
|
||||
/// void \@objc_moveWeak(i8** %dest, i8** %src)
|
||||
/// Disregards the current value in %dest. Leaves %src pointing to nothing.
|
||||
/// Essentially (objc_copyWeak(dest, src), objc_destroyWeak(src)).
|
||||
void CodeGenFunction::EmitARCMoveWeak(llvm::Value *dst, llvm::Value *src) {
|
||||
@ -2125,7 +2125,7 @@ void CodeGenFunction::EmitARCMoveWeak(llvm::Value *dst, llvm::Value *src) {
|
||||
"objc_moveWeak");
|
||||
}
|
||||
|
||||
/// void @objc_copyWeak(i8** %dest, i8** %src)
|
||||
/// void \@objc_copyWeak(i8** %dest, i8** %src)
|
||||
/// Disregards the current value in %dest. Essentially
|
||||
/// objc_release(objc_initWeak(dest, objc_readWeakRetained(src)))
|
||||
void CodeGenFunction::EmitARCCopyWeak(llvm::Value *dst, llvm::Value *src) {
|
||||
@ -2135,7 +2135,7 @@ void CodeGenFunction::EmitARCCopyWeak(llvm::Value *dst, llvm::Value *src) {
|
||||
}
|
||||
|
||||
/// Produce the code to do a objc_autoreleasepool_push.
|
||||
/// call i8* @objc_autoreleasePoolPush(void)
|
||||
/// call i8* \@objc_autoreleasePoolPush(void)
|
||||
llvm::Value *CodeGenFunction::EmitObjCAutoreleasePoolPush() {
|
||||
llvm::Constant *&fn = CGM.getRREntrypoints().objc_autoreleasePoolPush;
|
||||
if (!fn) {
|
||||
@ -2151,7 +2151,7 @@ llvm::Value *CodeGenFunction::EmitObjCAutoreleasePoolPush() {
|
||||
}
|
||||
|
||||
/// Produce the code to do a primitive release.
|
||||
/// call void @objc_autoreleasePoolPop(i8* %ptr)
|
||||
/// call void \@objc_autoreleasePoolPop(i8* %ptr)
|
||||
void CodeGenFunction::EmitObjCAutoreleasePoolPop(llvm::Value *value) {
|
||||
assert(value->getType() == Int8PtrTy);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user