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 2188 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 2193 of file Core.cpp.

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

◆ LLVMDeleteGlobal()

void LLVMDeleteGlobal ( LLVMValueRef  GlobalVar)

Definition at line 2243 of file Core.cpp.

◆ LLVMGetFirstGlobal()

LLVMValueRef LLVMGetFirstGlobal ( LLVMModuleRef  M)

Definition at line 2211 of file Core.cpp.

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

◆ LLVMGetInitializer()

LLVMValueRef LLVMGetInitializer ( LLVMValueRef  GlobalVar)

◆ LLVMGetLastGlobal()

LLVMValueRef LLVMGetLastGlobal ( LLVMModuleRef  M)

Definition at line 2219 of file Core.cpp.

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

◆ LLVMGetNamedGlobal()

LLVMValueRef LLVMGetNamedGlobal ( LLVMModuleRef  M,
const char Name 
)

Definition at line 2202 of file Core.cpp.

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

◆ LLVMGetNamedGlobalWithLength()

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

Definition at line 2206 of file Core.cpp.

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

◆ LLVMGetNextGlobal()

LLVMValueRef LLVMGetNextGlobal ( LLVMValueRef  GlobalVar)

Definition at line 2227 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 2314 of file Core.cpp.

◆ LLVMIsGlobalConstant()

LLVMBool LLVMIsGlobalConstant ( LLVMValueRef  GlobalVar)

Definition at line 2267 of file Core.cpp.

◆ LLVMIsThreadLocal()

LLVMBool LLVMIsThreadLocal ( LLVMValueRef  GlobalVar)

Definition at line 2259 of file Core.cpp.

◆ LLVMSetExternallyInitialized()

void LLVMSetExternallyInitialized ( LLVMValueRef  GlobalVar,
LLVMBool  IsExtInit 
)

Definition at line 2318 of file Core.cpp.

◆ LLVMSetGlobalConstant()

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
LLVMBool  IsConstant 
)

Definition at line 2271 of file Core.cpp.

◆ LLVMSetInitializer()

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 2254 of file Core.cpp.

◆ LLVMSetThreadLocal()

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
LLVMBool  IsThreadLocal 
)

Definition at line 2263 of file Core.cpp.

◆ LLVMSetThreadLocalMode()

void LLVMSetThreadLocalMode ( LLVMValueRef  GlobalVar,
LLVMThreadLocalMode  Mode 
)