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 1483 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 1533 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1497 of file Core.cpp.

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

Definition at line 1604 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1557 of file Core.cpp.

References llvm::lltok::GlobalVar.

Definition at line 1549 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetExternallyInitialized ( LLVMValueRef  GlobalVar,
LLVMBool  IsExtInit 
)

Definition at line 1608 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
LLVMBool  IsConstant 
)

Definition at line 1561 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 1544 of file Core.cpp.

References llvm::lltok::GlobalVar.

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
LLVMBool  IsThreadLocal 
)

Definition at line 1553 of file Core.cpp.

References llvm::lltok::GlobalVar.