LLVM  8.0.1
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 2044 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 2094 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 2058 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 2165 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMIsGlobalConstant()

LLVMBool LLVMIsGlobalConstant ( LLVMValueRef  GlobalVar)

Definition at line 2118 of file Core.cpp.

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

◆ LLVMIsThreadLocal()

LLVMBool LLVMIsThreadLocal ( LLVMValueRef  GlobalVar)

Definition at line 2110 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetExternallyInitialized()

void LLVMSetExternallyInitialized ( LLVMValueRef  GlobalVar,
LLVMBool  IsExtInit 
)

Definition at line 2169 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetGlobalConstant()

void LLVMSetGlobalConstant ( LLVMValueRef  GlobalVar,
LLVMBool  IsConstant 
)

Definition at line 2122 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetInitializer()

void LLVMSetInitializer ( LLVMValueRef  GlobalVar,
LLVMValueRef  ConstantVal 
)

Definition at line 2105 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetThreadLocal()

void LLVMSetThreadLocal ( LLVMValueRef  GlobalVar,
LLVMBool  IsThreadLocal 
)

Definition at line 2114 of file Core.cpp.

References llvm::lltok::GlobalVar.

◆ LLVMSetThreadLocalMode()

void LLVMSetThreadLocalMode ( LLVMValueRef  GlobalVar,
LLVMThreadLocalMode  Mode 
)