LLVM  3.7.0
Modules | Functions
Global Values

This group contains functions that operate on global values. More...

Collaboration diagram for Global Values:

Modules

 Values with alignment
 Functions in this group only apply to values with alignment, i.e.
 

Functions

LLVMModuleRef LLVMGetGlobalParent (LLVMValueRef Global)
 
LLVMBool LLVMIsDeclaration (LLVMValueRef Global)
 
LLVMLinkage LLVMGetLinkage (LLVMValueRef Global)
 
void LLVMSetLinkage (LLVMValueRef Global, LLVMLinkage Linkage)
 
const char * LLVMGetSection (LLVMValueRef Global)
 
void LLVMSetSection (LLVMValueRef Global, const char *Section)
 
LLVMVisibility LLVMGetVisibility (LLVMValueRef Global)
 
void LLVMSetVisibility (LLVMValueRef Global, LLVMVisibility Viz)
 
LLVMDLLStorageClass LLVMGetDLLStorageClass (LLVMValueRef Global)
 
void LLVMSetDLLStorageClass (LLVMValueRef Global, LLVMDLLStorageClass Class)
 
LLVMBool LLVMHasUnnamedAddr (LLVMValueRef Global)
 
void LLVMSetUnnamedAddr (LLVMValueRef Global, LLVMBool HasUnnamedAddr)
 
unsigned LLVMGetAlignment (LLVMValueRef V)
 Obtain the preferred alignment of the value. More...
 
void LLVMSetAlignment (LLVMValueRef V, unsigned Bytes)
 Set the preferred alignment of the value. More...
 

Detailed Description

This group contains functions that operate on global values.

Functions in this group relate to functions in the llvm::GlobalValue class tree.

See Also
llvm::GlobalValue

Function Documentation

unsigned LLVMGetAlignment ( LLVMValueRef  V)

Obtain the preferred alignment of the value.

See Also
llvm::AllocaInst::getAlignment()
llvm::LoadInst::getAlignment()
llvm::StoreInst::getAlignment()
llvm::GlobalValue::getAlignment()

Definition at line 1476 of file Core.cpp.

References llvm_unreachable, P, and SI.

LLVMDLLStorageClass LLVMGetDLLStorageClass ( LLVMValueRef  Global)

Definition at line 1456 of file Core.cpp.

LLVMModuleRef LLVMGetGlobalParent ( LLVMValueRef  Global)

Definition at line 1339 of file Core.cpp.

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

LLVMLinkage LLVMGetLinkage ( LLVMValueRef  Global)
const char* LLVMGetSection ( LLVMValueRef  Global)

Definition at line 1438 of file Core.cpp.

LLVMVisibility LLVMGetVisibility ( LLVMValueRef  Global)

Definition at line 1446 of file Core.cpp.

LLVMBool LLVMHasUnnamedAddr ( LLVMValueRef  Global)

Definition at line 1466 of file Core.cpp.

LLVMBool LLVMIsDeclaration ( LLVMValueRef  Global)

Definition at line 1343 of file Core.cpp.

void LLVMSetAlignment ( LLVMValueRef  V,
unsigned  Bytes 
)

Set the preferred alignment of the value.

See Also
llvm::AllocaInst::setAlignment()
llvm::LoadInst::setAlignment()
llvm::StoreInst::setAlignment()
llvm::GlobalValue::setAlignment()

Definition at line 1491 of file Core.cpp.

References llvm_unreachable, P, and SI.

void LLVMSetDLLStorageClass ( LLVMValueRef  Global,
LLVMDLLStorageClass  Class 
)

Definition at line 1461 of file Core.cpp.

void LLVMSetLinkage ( LLVMValueRef  Global,
LLVMLinkage  Linkage 
)
void LLVMSetSection ( LLVMValueRef  Global,
const char *  Section 
)

Definition at line 1442 of file Core.cpp.

void LLVMSetUnnamedAddr ( LLVMValueRef  Global,
LLVMBool  HasUnnamedAddr 
)

Definition at line 1470 of file Core.cpp.

void LLVMSetVisibility ( LLVMValueRef  Global,
LLVMVisibility  Viz 
)

Definition at line 1451 of file Core.cpp.