LLVM  6.0.0svn
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 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 1645 of file Core.cpp.

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

◆ LLVMAddGlobalInAddressSpace()

LLVMValueRef LLVMAddGlobalInAddressSpace ( LLVMModuleRef  M,
LLVMTypeRef  Ty,
const char Name,
unsigned  AddressSpace 
)

◆ LLVMDeleteGlobal()

void LLVMDeleteGlobal ( LLVMValueRef  GlobalVar)

Definition at line 1695 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMGetFirstGlobal()

LLVMValueRef LLVMGetFirstGlobal ( LLVMModuleRef  M)

◆ LLVMGetInitializer()

LLVMValueRef LLVMGetInitializer ( LLVMValueRef  GlobalVar)

◆ LLVMGetLastGlobal()

LLVMValueRef LLVMGetLastGlobal ( LLVMModuleRef  M)

◆ LLVMGetNamedGlobal()

LLVMValueRef LLVMGetNamedGlobal ( LLVMModuleRef  M,
const char Name 
)

Definition at line 1659 of file Core.cpp.

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

◆ LLVMGetNextGlobal()

LLVMValueRef LLVMGetNextGlobal ( LLVMValueRef  GlobalVar)

◆ LLVMGetPreviousGlobal()

LLVMValueRef LLVMGetPreviousGlobal ( LLVMValueRef  GlobalVar)

◆ LLVMGetThreadLocalMode()

LLVMThreadLocalMode LLVMGetThreadLocalMode ( LLVMValueRef  GlobalVar)

◆ LLVMIsExternallyInitialized()

LLVMBool LLVMIsExternallyInitialized ( LLVMValueRef  GlobalVar)

Definition at line 1766 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMIsGlobalConstant()

LLVMBool LLVMIsGlobalConstant ( LLVMValueRef  GlobalVar)

Definition at line 1719 of file Core.cpp.

References llvm::lltok::GlobalVar, and isConstant().

◆ LLVMIsThreadLocal()

LLVMBool LLVMIsThreadLocal ( LLVMValueRef  GlobalVar)

Definition at line 1711 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetExternallyInitialized()

void LLVMSetExternallyInitialized ( LLVMValueRef  GlobalVar,
LLVMBool  IsExtInit 
)

Definition at line 1770 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetGlobalConstant()

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
LLVMBool  IsConstant 
)

Definition at line 1723 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetInitializer()

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 1706 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetThreadLocal()

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
LLVMBool  IsThreadLocal 
)

Definition at line 1715 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetThreadLocalMode()

void LLVMSetThreadLocalMode ( LLVMValueRef  GlobalVar,
LLVMThreadLocalMode  Mode 
)