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 2197 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 2202 of file Core.cpp.

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

◆ LLVMDeleteGlobal()

void LLVMDeleteGlobal ( LLVMValueRef  GlobalVar)

Definition at line 2252 of file Core.cpp.

◆ LLVMGetFirstGlobal()

LLVMValueRef LLVMGetFirstGlobal ( LLVMModuleRef  M)

Definition at line 2220 of file Core.cpp.

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

◆ LLVMGetInitializer()

LLVMValueRef LLVMGetInitializer ( LLVMValueRef  GlobalVar)

◆ LLVMGetLastGlobal()

LLVMValueRef LLVMGetLastGlobal ( LLVMModuleRef  M)

Definition at line 2228 of file Core.cpp.

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

◆ LLVMGetNamedGlobal()

LLVMValueRef LLVMGetNamedGlobal ( LLVMModuleRef  M,
const char Name 
)

Definition at line 2211 of file Core.cpp.

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

◆ LLVMGetNamedGlobalWithLength()

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

Definition at line 2215 of file Core.cpp.

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

◆ LLVMGetNextGlobal()

LLVMValueRef LLVMGetNextGlobal ( LLVMValueRef  GlobalVar)

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

◆ LLVMIsGlobalConstant()

LLVMBool LLVMIsGlobalConstant ( LLVMValueRef  GlobalVar)

Definition at line 2276 of file Core.cpp.

◆ LLVMIsThreadLocal()

LLVMBool LLVMIsThreadLocal ( LLVMValueRef  GlobalVar)

Definition at line 2268 of file Core.cpp.

◆ LLVMSetExternallyInitialized()

void LLVMSetExternallyInitialized ( LLVMValueRef  GlobalVar,
LLVMBool  IsExtInit 
)

Definition at line 2327 of file Core.cpp.

◆ LLVMSetGlobalConstant()

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
LLVMBool  IsConstant 
)

Definition at line 2280 of file Core.cpp.

◆ LLVMSetInitializer()

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 2263 of file Core.cpp.

◆ LLVMSetThreadLocal()

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
LLVMBool  IsThreadLocal 
)

Definition at line 2272 of file Core.cpp.

◆ LLVMSetThreadLocalMode()

void LLVMSetThreadLocalMode ( LLVMValueRef  GlobalVar,
LLVMThreadLocalMode  Mode 
)