LLVM API Documentation
![]() |
This group contains functions that operate on global variable values.
LLVMValueRef LLVMAddGlobal | ( | LLVMModuleRef | M, |
LLVMTypeRef | Ty, | ||
const char * | Name | ||
) |
Definition at line 1286 of file Core.cpp.
References llvm::GlobalValue::ExternalLinkage, llvm::unwrap(), and llvm::wrap().
LLVMValueRef LLVMAddGlobalInAddressSpace | ( | LLVMModuleRef | M, |
LLVMTypeRef | Ty, | ||
const char * | Name, | ||
unsigned | AddressSpace | ||
) |
Definition at line 1291 of file Core.cpp.
References llvm::GlobalValue::ExternalLinkage, llvm::GlobalVariable::NotThreadLocal, llvm::unwrap(), and llvm::wrap().
void LLVMDeleteGlobal | ( | LLVMValueRef | GlobalVar | ) |
Definition at line 1335 of file Core.cpp.
References llvm::lltok::GlobalVar.
LLVMValueRef LLVMGetFirstGlobal | ( | LLVMModuleRef | M | ) |
Definition at line 1303 of file Core.cpp.
References llvm::Module::global_begin(), llvm::Module::global_end(), I, llvm::unwrap(), and llvm::wrap().
LLVMValueRef LLVMGetInitializer | ( | LLVMValueRef | GlobalVar | ) |
Definition at line 1339 of file Core.cpp.
References llvm::GlobalVariable::getInitializer(), llvm::lltok::GlobalVar, llvm::GlobalVariable::hasInitializer(), and llvm::wrap().
LLVMValueRef LLVMGetLastGlobal | ( | LLVMModuleRef | M | ) |
Definition at line 1311 of file Core.cpp.
References llvm::Module::global_begin(), llvm::Module::global_end(), I, llvm::unwrap(), and llvm::wrap().
LLVMValueRef LLVMGetNamedGlobal | ( | LLVMModuleRef | M, |
const char * | Name | ||
) |
Definition at line 1299 of file Core.cpp.
References llvm::unwrap(), and llvm::wrap().
LLVMValueRef LLVMGetNextGlobal | ( | LLVMValueRef | GlobalVar | ) |
Definition at line 1319 of file Core.cpp.
References llvm::GlobalValue::getParent(), llvm::Module::global_end(), llvm::lltok::GlobalVar, I, and llvm::wrap().
LLVMValueRef LLVMGetPreviousGlobal | ( | LLVMValueRef | GlobalVar | ) |
Definition at line 1327 of file Core.cpp.
References llvm::GlobalValue::getParent(), llvm::Module::global_begin(), llvm::lltok::GlobalVar, I, and llvm::wrap().
LLVMThreadLocalMode LLVMGetThreadLocalMode | ( | LLVMValueRef | GlobalVar | ) |
Definition at line 1367 of file Core.cpp.
References llvm::GlobalVariable::GeneralDynamicTLSModel, llvm::GlobalVariable::InitialExecTLSModel, llvm_unreachable, LLVMGeneralDynamicTLSModel, LLVMInitialExecTLSModel, LLVMLocalDynamicTLSModel, LLVMLocalExecTLSModel, LLVMNotThreadLocal, llvm::GlobalVariable::LocalDynamicTLSModel, llvm::GlobalVariable::LocalExecTLSModel, and llvm::GlobalVariable::NotThreadLocal.
LLVMBool LLVMIsExternallyInitialized | ( | LLVMValueRef | GlobalVar | ) |
Definition at line 1406 of file Core.cpp.
References llvm::lltok::GlobalVar.
LLVMBool LLVMIsGlobalConstant | ( | LLVMValueRef | GlobalVar | ) |
Definition at line 1359 of file Core.cpp.
References llvm::lltok::GlobalVar.
LLVMBool LLVMIsThreadLocal | ( | LLVMValueRef | GlobalVar | ) |
Definition at line 1351 of file Core.cpp.
References llvm::lltok::GlobalVar.
void LLVMSetExternallyInitialized | ( | LLVMValueRef | GlobalVar, |
LLVMBool | IsExtInit | ||
) |
Definition at line 1410 of file Core.cpp.
References llvm::lltok::GlobalVar.
void LLVMSetGlobalConstant | ( | LLVMValueRef | GlobalVar, |
LLVMBool | IsConstant | ||
) |
Definition at line 1363 of file Core.cpp.
References llvm::lltok::GlobalVar.
void LLVMSetInitializer | ( | LLVMValueRef | GlobalVar, |
LLVMValueRef | ConstantVal | ||
) |
Definition at line 1346 of file Core.cpp.
References llvm::lltok::GlobalVar.
void LLVMSetThreadLocal | ( | LLVMValueRef | GlobalVar, |
LLVMBool | IsThreadLocal | ||
) |
Definition at line 1355 of file Core.cpp.
References llvm::lltok::GlobalVar.
void LLVMSetThreadLocalMode | ( | LLVMValueRef | GlobalVar, |
LLVMThreadLocalMode | Mode | ||
) |
Definition at line 1384 of file Core.cpp.
References llvm::GlobalVariable::GeneralDynamicTLSModel, llvm::lltok::GlobalVar, llvm::GlobalVariable::InitialExecTLSModel, LLVMGeneralDynamicTLSModel, LLVMInitialExecTLSModel, LLVMLocalDynamicTLSModel, LLVMLocalExecTLSModel, LLVMNotThreadLocal, llvm::GlobalVariable::LocalDynamicTLSModel, llvm::GlobalVariable::LocalExecTLSModel, llvm::GlobalVariable::NotThreadLocal, and llvm::GlobalVariable::setThreadLocalMode().