LLVM  6.0.0svn
Modules | Functions

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 charLLVMGetSection (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

◆ LLVMGetAlignment()

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

References llvm_unreachable, P, and SI.

◆ LLVMGetDLLStorageClass()

LLVMDLLStorageClass LLVMGetDLLStorageClass ( LLVMValueRef  Global)

Definition at line 1591 of file Core.cpp.

◆ LLVMGetGlobalParent()

LLVMModuleRef LLVMGetGlobalParent ( LLVMValueRef  Global)

Definition at line 1472 of file Core.cpp.

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

◆ LLVMGetLinkage()

LLVMLinkage LLVMGetLinkage ( LLVMValueRef  Global)

◆ LLVMGetSection()

const char* LLVMGetSection ( LLVMValueRef  Global)

Definition at line 1571 of file Core.cpp.

References llvm::object::getSection().

◆ LLVMGetVisibility()

LLVMVisibility LLVMGetVisibility ( LLVMValueRef  Global)

Definition at line 1581 of file Core.cpp.

◆ LLVMHasUnnamedAddr()

LLVMBool LLVMHasUnnamedAddr ( LLVMValueRef  Global)

Definition at line 1601 of file Core.cpp.

◆ LLVMIsDeclaration()

LLVMBool LLVMIsDeclaration ( LLVMValueRef  Global)

Definition at line 1476 of file Core.cpp.

◆ LLVMSetAlignment()

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

References llvm_unreachable, P, and SI.

◆ LLVMSetDLLStorageClass()

void LLVMSetDLLStorageClass ( LLVMValueRef  Global,
LLVMDLLStorageClass  Class 
)

Definition at line 1596 of file Core.cpp.

◆ LLVMSetLinkage()

void LLVMSetLinkage ( LLVMValueRef  Global,
LLVMLinkage  Linkage 
)

◆ LLVMSetSection()

void LLVMSetSection ( LLVMValueRef  Global,
const char Section 
)

Definition at line 1577 of file Core.cpp.

◆ LLVMSetUnnamedAddr()

void LLVMSetUnnamedAddr ( LLVMValueRef  Global,
LLVMBool  HasUnnamedAddr 
)

Definition at line 1605 of file Core.cpp.

References llvm::GlobalValue::Global, and llvm::GlobalValue::None.

◆ LLVMSetVisibility()

void LLVMSetVisibility ( LLVMValueRef  Global,
LLVMVisibility  Viz 
)

Definition at line 1586 of file Core.cpp.