LLVM API Documentation

Functions
Global Variables
Constants
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 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

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

Definition at line 1410 of file Core.cpp.

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

LLVMValueRef LLVMAddGlobalInAddressSpace ( LLVMModuleRef  M,
LLVMTypeRef  Ty,
const char *  Name,
unsigned  AddressSpace 
)
void LLVMDeleteGlobal ( LLVMValueRef  GlobalVar)

Definition at line 1460 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1424 of file Core.cpp.

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

Definition at line 1531 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1484 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1476 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetExternallyInitialized ( LLVMValueRef  GlobalVar,
LLVMBool  IsExtInit 
)

Definition at line 1535 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
LLVMBool  IsConstant 
)

Definition at line 1488 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 1471 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
LLVMBool  IsThreadLocal 
)

Definition at line 1480 of file Core.cpp.

References llvm::lltok::GlobalVar.