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 1389 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 1439 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1403 of file Core.cpp.

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

Definition at line 1510 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1463 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1455 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetExternallyInitialized ( LLVMValueRef  GlobalVar,
LLVMBool  IsExtInit 
)

Definition at line 1514 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
LLVMBool  IsConstant 
)

Definition at line 1467 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 1450 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
LLVMBool  IsThreadLocal 
)

Definition at line 1459 of file Core.cpp.

References llvm::lltok::GlobalVar.