LLVM 20.0.0git
Functions

This group contains functions that operate on global variable values. More...

Collaboration diagram for Global Variables:

Functions

LLVMValueRef LLVMAddGlobal (LLVMModuleRef M, LLVMTypeRef Ty, const char *Name)
 
LLVMValueRef LLVMAddGlobalInAddressSpace (LLVMModuleRef M, LLVMTypeRef Ty, const char *Name, unsigned AddressSpace)
 
LLVMValueRef LLVMGetNamedGlobal (LLVMModuleRef M, const char *Name)
 
LLVMValueRef LLVMGetNamedGlobalWithLength (LLVMModuleRef M, const char *Name, size_t Length)
 
LLVMValueRef LLVMGetFirstGlobal (LLVMModuleRef M)
 
LLVMValueRef LLVMGetLastGlobal (LLVMModuleRef M)
 
LLVMValueRef LLVMGetNextGlobal (LLVMValueRef GlobalVar)
 
LLVMValueRef LLVMGetPreviousGlobal (LLVMValueRef GlobalVar)
 
void LLVMDeleteGlobal (LLVMValueRef GlobalVar)
 
LLVMValueRef LLVMGetInitializer (LLVMValueRef GlobalVar)
 
void LLVMSetInitializer (LLVMValueRef GlobalVar, LLVMValueRef ConstantVal)
 
LLVMBool LLVMIsThreadLocal (LLVMValueRef GlobalVar)
 
void LLVMSetThreadLocal (LLVMValueRef GlobalVar, LLVMBool IsThreadLocal)
 
LLVMBool LLVMIsGlobalConstant (LLVMValueRef GlobalVar)
 
void LLVMSetGlobalConstant (LLVMValueRef GlobalVar, LLVMBool IsConstant)
 
LLVMThreadLocalMode LLVMGetThreadLocalMode (LLVMValueRef GlobalVar)
 
void LLVMSetThreadLocalMode (LLVMValueRef GlobalVar, LLVMThreadLocalMode Mode)
 
LLVMBool LLVMIsExternallyInitialized (LLVMValueRef GlobalVar)
 
void LLVMSetExternallyInitialized (LLVMValueRef GlobalVar, LLVMBool IsExtInit)
 

Detailed Description

This group contains functions that operate on global variable values.

See also
llvm::GlobalVariable

Function Documentation

◆ LLVMAddGlobal()

LLVMValueRef LLVMAddGlobal ( LLVMModuleRef  M,
LLVMTypeRef  Ty,
const char Name 
)

Definition at line 2199 of file Core.cpp.

References llvm::GlobalValue::ExternalLinkage, Name, unwrap(), and llvm::wrap().

◆ LLVMAddGlobalInAddressSpace()

LLVMValueRef LLVMAddGlobalInAddressSpace ( LLVMModuleRef  M,
LLVMTypeRef  Ty,
const char Name,
unsigned  AddressSpace 
)

Definition at line 2204 of file Core.cpp.

References llvm::GlobalValue::ExternalLinkage, Name, unwrap(), and llvm::wrap().

◆ LLVMDeleteGlobal()

void LLVMDeleteGlobal ( LLVMValueRef  GlobalVar)

Definition at line 2254 of file Core.cpp.

◆ LLVMGetFirstGlobal()

LLVMValueRef LLVMGetFirstGlobal ( LLVMModuleRef  M)

Definition at line 2222 of file Core.cpp.

References I, Mod, unwrap(), and llvm::wrap().

◆ LLVMGetInitializer()

LLVMValueRef LLVMGetInitializer ( LLVMValueRef  GlobalVar)

◆ LLVMGetLastGlobal()

LLVMValueRef LLVMGetLastGlobal ( LLVMModuleRef  M)

Definition at line 2230 of file Core.cpp.

References I, Mod, unwrap(), and llvm::wrap().

◆ LLVMGetNamedGlobal()

LLVMValueRef LLVMGetNamedGlobal ( LLVMModuleRef  M,
const char Name 
)

Definition at line 2213 of file Core.cpp.

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

◆ LLVMGetNamedGlobalWithLength()

LLVMValueRef LLVMGetNamedGlobalWithLength ( LLVMModuleRef  M,
const char Name,
size_t  Length 
)

Definition at line 2217 of file Core.cpp.

References llvm::Length, Name, unwrap(), and llvm::wrap().

◆ LLVMGetNextGlobal()

LLVMValueRef LLVMGetNextGlobal ( LLVMValueRef  GlobalVar)

Definition at line 2238 of file Core.cpp.

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

◆ LLVMGetPreviousGlobal()

LLVMValueRef LLVMGetPreviousGlobal ( LLVMValueRef  GlobalVar)

◆ LLVMGetThreadLocalMode()

LLVMThreadLocalMode LLVMGetThreadLocalMode ( LLVMValueRef  GlobalVar)

◆ LLVMIsExternallyInitialized()

LLVMBool LLVMIsExternallyInitialized ( LLVMValueRef  GlobalVar)

Definition at line 2325 of file Core.cpp.

◆ LLVMIsGlobalConstant()

LLVMBool LLVMIsGlobalConstant ( LLVMValueRef  GlobalVar)

Definition at line 2278 of file Core.cpp.

◆ LLVMIsThreadLocal()

LLVMBool LLVMIsThreadLocal ( LLVMValueRef  GlobalVar)

Definition at line 2270 of file Core.cpp.

◆ LLVMSetExternallyInitialized()

void LLVMSetExternallyInitialized ( LLVMValueRef  GlobalVar,
LLVMBool  IsExtInit 
)

Definition at line 2329 of file Core.cpp.

◆ LLVMSetGlobalConstant()

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
LLVMBool  IsConstant 
)

Definition at line 2282 of file Core.cpp.

◆ LLVMSetInitializer()

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 2265 of file Core.cpp.

◆ LLVMSetThreadLocal()

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
LLVMBool  IsThreadLocal 
)

Definition at line 2274 of file Core.cpp.

◆ LLVMSetThreadLocalMode()

void LLVMSetThreadLocalMode ( LLVMValueRef  GlobalVar,
LLVMThreadLocalMode  Mode 
)