LLVM  14.0.0git
Functions

This group contains function that operate on global alias values. More...

Collaboration diagram for Global Aliases:

Functions

LLVMValueRef LLVMAddAlias (LLVMModuleRef M, LLVMTypeRef Ty, LLVMValueRef Aliasee, const char *Name)
 Deprecated: Use LLVMAddAlias2 instead. More...
 
LLVMValueRef LLVMAddAlias2 (LLVMModuleRef M, LLVMTypeRef ValueTy, unsigned AddrSpace, LLVMValueRef Aliasee, const char *Name)
 Add a GlobalAlias with the given value type, address space and aliasee. More...
 
LLVMValueRef LLVMGetNamedGlobalAlias (LLVMModuleRef M, const char *Name, size_t NameLen)
 Obtain a GlobalAlias value from a Module by its name. More...
 
LLVMValueRef LLVMGetFirstGlobalAlias (LLVMModuleRef M)
 Obtain an iterator to the first GlobalAlias in a Module. More...
 
LLVMValueRef LLVMGetLastGlobalAlias (LLVMModuleRef M)
 Obtain an iterator to the last GlobalAlias in a Module. More...
 
LLVMValueRef LLVMGetNextGlobalAlias (LLVMValueRef GA)
 Advance a GlobalAlias iterator to the next GlobalAlias. More...
 
LLVMValueRef LLVMGetPreviousGlobalAlias (LLVMValueRef GA)
 Decrement a GlobalAlias iterator to the previous GlobalAlias. More...
 
LLVMValueRef LLVMAliasGetAliasee (LLVMValueRef Alias)
 Retrieve the target value of an alias. More...
 
void LLVMAliasSetAliasee (LLVMValueRef Alias, LLVMValueRef Aliasee)
 Set the target value of an alias. More...
 

Detailed Description

This group contains function that operate on global alias values.

See also
llvm::GlobalAlias

Function Documentation

◆ LLVMAddAlias()

LLVMValueRef LLVMAddAlias ( LLVMModuleRef  M,
LLVMTypeRef  Ty,
LLVMValueRef  Aliasee,
const char *  Name 
)

Deprecated: Use LLVMAddAlias2 instead.

Definition at line 2261 of file Core.cpp.

References llvm::GlobalAlias::create(), llvm::GlobalValue::ExternalLinkage, M, llvm::unwrap(), and llvm::wrap().

◆ LLVMAddAlias2()

LLVMValueRef LLVMAddAlias2 ( LLVMModuleRef  M,
LLVMTypeRef  ValueTy,
unsigned  AddrSpace,
LLVMValueRef  Aliasee,
const char *  Name 
)

Add a GlobalAlias with the given value type, address space and aliasee.

See also
llvm::GlobalAlias::create()

Definition at line 2269 of file Core.cpp.

References llvm::GlobalAlias::create(), llvm::GlobalValue::ExternalLinkage, M, llvm::unwrap(), and llvm::wrap().

◆ LLVMAliasGetAliasee()

LLVMValueRef LLVMAliasGetAliasee ( LLVMValueRef  Alias)

Retrieve the target value of an alias.

Definition at line 2314 of file Core.cpp.

References llvm::wrap().

◆ LLVMAliasSetAliasee()

void LLVMAliasSetAliasee ( LLVMValueRef  Alias,
LLVMValueRef  Aliasee 
)

Set the target value of an alias.

Definition at line 2318 of file Core.cpp.

◆ LLVMGetFirstGlobalAlias()

LLVMValueRef LLVMGetFirstGlobalAlias ( LLVMModuleRef  M)

Obtain an iterator to the first GlobalAlias in a Module.

See also
llvm::Module::alias_begin()

Definition at line 2282 of file Core.cpp.

References llvm::Module::alias_begin(), llvm::Module::alias_end(), I, M, Mod, llvm::unwrap(), and llvm::wrap().

◆ LLVMGetLastGlobalAlias()

LLVMValueRef LLVMGetLastGlobalAlias ( LLVMModuleRef  M)

Obtain an iterator to the last GlobalAlias in a Module.

See also
llvm::Module::alias_end()

Definition at line 2290 of file Core.cpp.

References llvm::Module::alias_begin(), llvm::Module::alias_end(), I, M, Mod, llvm::unwrap(), and llvm::wrap().

◆ LLVMGetNamedGlobalAlias()

LLVMValueRef LLVMGetNamedGlobalAlias ( LLVMModuleRef  M,
const char *  Name,
size_t  NameLen 
)

Obtain a GlobalAlias value from a Module by its name.

The returned value corresponds to a llvm::GlobalAlias value.

See also
llvm::Module::getNamedAlias()

Definition at line 2277 of file Core.cpp.

References M, llvm::unwrap(), and llvm::wrap().

◆ LLVMGetNextGlobalAlias()

LLVMValueRef LLVMGetNextGlobalAlias ( LLVMValueRef  GA)

Advance a GlobalAlias iterator to the next GlobalAlias.

Returns NULL if the iterator was already at the end and there are no more global aliases.

Definition at line 2298 of file Core.cpp.

References llvm::Module::alias_end(), llvm::GlobalValue::getParent(), I, and llvm::wrap().

◆ LLVMGetPreviousGlobalAlias()

LLVMValueRef LLVMGetPreviousGlobalAlias ( LLVMValueRef  GA)

Decrement a GlobalAlias iterator to the previous GlobalAlias.

Returns NULL if the iterator was already at the beginning and there are no previous global aliases.

Definition at line 2306 of file Core.cpp.

References llvm::Module::alias_begin(), llvm::GlobalValue::getParent(), I, and llvm::wrap().