Project Alice
Loading...
Searching...
No Matches
Collaboration diagram for Global Values:

Modules

 Values with alignment
 

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)
 
LLVMUnnamedAddr LLVMGetUnnamedAddress (LLVMValueRef Global)
 
void LLVMSetUnnamedAddress (LLVMValueRef Global, LLVMUnnamedAddr UnnamedAddr)
 
LLVMTypeRef LLVMGlobalGetValueType (LLVMValueRef Global)
 
LLVMBool LLVMHasUnnamedAddr (LLVMValueRef Global)
 
void LLVMSetUnnamedAddr (LLVMValueRef Global, LLVMBool HasUnnamedAddr)
 
unsigned LLVMGetAlignment (LLVMValueRef V)
 
void LLVMSetAlignment (LLVMValueRef V, unsigned Bytes)
 
void LLVMGlobalSetMetadata (LLVMValueRef Global, unsigned Kind, LLVMMetadataRef MD)
 
void LLVMGlobalEraseMetadata (LLVMValueRef Global, unsigned Kind)
 
void LLVMGlobalClearMetadata (LLVMValueRef Global)
 
LLVMValueMetadataEntryLLVMGlobalCopyAllMetadata (LLVMValueRef Value, size_t *NumEntries)
 
void LLVMDisposeValueMetadataEntries (LLVMValueMetadataEntry *Entries)
 
unsigned LLVMValueMetadataEntriesGetKind (LLVMValueMetadataEntry *Entries, unsigned Index)
 
LLVMMetadataRef LLVMValueMetadataEntriesGetMetadata (LLVMValueMetadataEntry *Entries, unsigned Index)
 

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

◆ LLVMDisposeValueMetadataEntries()

void LLVMDisposeValueMetadataEntries ( LLVMValueMetadataEntry Entries)

Destroys value metadata entries.

◆ LLVMGetAlignment()

unsigned LLVMGetAlignment ( LLVMValueRef  V)

Obtain the preferred alignment of the value.

See also
llvm::AllocaInst::getAlignment()
llvm::LoadInst::getAlignment()
llvm::StoreInst::getAlignment()
llvm::AtomicRMWInst::setAlignment()
llvm::AtomicCmpXchgInst::setAlignment()
llvm::GlobalValue::getAlignment()

◆ LLVMGetDLLStorageClass()

LLVMDLLStorageClass LLVMGetDLLStorageClass ( LLVMValueRef  Global)

◆ LLVMGetGlobalParent()

LLVMModuleRef LLVMGetGlobalParent ( LLVMValueRef  Global)

◆ LLVMGetLinkage()

LLVMLinkage LLVMGetLinkage ( LLVMValueRef  Global)

◆ LLVMGetSection()

const char * LLVMGetSection ( LLVMValueRef  Global)

◆ LLVMGetUnnamedAddress()

LLVMUnnamedAddr LLVMGetUnnamedAddress ( LLVMValueRef  Global)

◆ LLVMGetVisibility()

LLVMVisibility LLVMGetVisibility ( LLVMValueRef  Global)

◆ LLVMGlobalClearMetadata()

void LLVMGlobalClearMetadata ( LLVMValueRef  Global)

Removes all metadata attachments from this value.

See also
llvm::GlobalObject::clearMetadata()

◆ LLVMGlobalCopyAllMetadata()

LLVMValueMetadataEntry * LLVMGlobalCopyAllMetadata ( LLVMValueRef  Value,
size_t *  NumEntries 
)

Retrieves an array of metadata entries representing the metadata attached to this value. The caller is responsible for freeing this array by calling LLVMDisposeValueMetadataEntries.

See also
llvm::GlobalObject::getAllMetadata()

◆ LLVMGlobalEraseMetadata()

void LLVMGlobalEraseMetadata ( LLVMValueRef  Global,
unsigned  Kind 
)

Erases a metadata attachment of the given kind if it exists.

See also
llvm::GlobalObject::eraseMetadata()

◆ LLVMGlobalGetValueType()

LLVMTypeRef LLVMGlobalGetValueType ( LLVMValueRef  Global)

Returns the "value type" of a global value. This differs from the formal type of a global value which is always a pointer type.

See also
llvm::GlobalValue::getValueType()

◆ LLVMGlobalSetMetadata()

void LLVMGlobalSetMetadata ( LLVMValueRef  Global,
unsigned  Kind,
LLVMMetadataRef  MD 
)

Sets a metadata attachment, erasing the existing metadata attachment if it already exists for the given kind.

See also
llvm::GlobalObject::setMetadata()

◆ LLVMHasUnnamedAddr()

LLVMBool LLVMHasUnnamedAddr ( LLVMValueRef  Global)

Deprecated: Use LLVMGetUnnamedAddress instead.

◆ LLVMIsDeclaration()

LLVMBool LLVMIsDeclaration ( LLVMValueRef  Global)

◆ 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::AtomicRMWInst::setAlignment()
llvm::AtomicCmpXchgInst::setAlignment()
llvm::GlobalValue::setAlignment()

◆ LLVMSetDLLStorageClass()

void LLVMSetDLLStorageClass ( LLVMValueRef  Global,
LLVMDLLStorageClass  Class 
)

◆ LLVMSetLinkage()

void LLVMSetLinkage ( LLVMValueRef  Global,
LLVMLinkage  Linkage 
)
Here is the caller graph for this function:

◆ LLVMSetSection()

void LLVMSetSection ( LLVMValueRef  Global,
const char *  Section 
)

◆ LLVMSetUnnamedAddr()

void LLVMSetUnnamedAddr ( LLVMValueRef  Global,
LLVMBool  HasUnnamedAddr 
)

Deprecated: Use LLVMSetUnnamedAddress instead.

◆ LLVMSetUnnamedAddress()

void LLVMSetUnnamedAddress ( LLVMValueRef  Global,
LLVMUnnamedAddr  UnnamedAddr 
)

◆ LLVMSetVisibility()

void LLVMSetVisibility ( LLVMValueRef  Global,
LLVMVisibility  Viz 
)

◆ LLVMValueMetadataEntriesGetKind()

unsigned LLVMValueMetadataEntriesGetKind ( LLVMValueMetadataEntry Entries,
unsigned  Index 
)

Returns the kind of a value metadata entry at a specific index.

◆ LLVMValueMetadataEntriesGetMetadata()

LLVMMetadataRef LLVMValueMetadataEntriesGetMetadata ( LLVMValueMetadataEntry Entries,
unsigned  Index 
)

Returns the underlying metadata node of a value metadata entry at a specific index.