LLVM
8.0.1
|
This group contains functions that operate on global values. More...
Modules | |
Values with alignment | |
Functions in this group only apply to values with alignment, i.e. | |
This group contains functions that operate on global values.
Functions in this group relate to functions in the llvm::GlobalValue class tree.
void LLVMDisposeValueMetadataEntries | ( | LLVMValueMetadataEntry * | Entries | ) |
unsigned LLVMGetAlignment | ( | LLVMValueRef | V | ) |
Obtain the preferred alignment of the value.
Definition at line 1969 of file Core.cpp.
References llvm_unreachable, P, and SI.
LLVMDLLStorageClass LLVMGetDLLStorageClass | ( | LLVMValueRef | Global | ) |
LLVMModuleRef LLVMGetGlobalParent | ( | LLVMValueRef | Global | ) |
Definition at line 1796 of file Core.cpp.
References getParent(), and llvm::wrap().
LLVMLinkage LLVMGetLinkage | ( | LLVMValueRef | Global | ) |
Definition at line 1804 of file Core.cpp.
References llvm::GlobalValue::AppendingLinkage, llvm::GlobalValue::AvailableExternallyLinkage, llvm::GlobalValue::CommonLinkage, llvm::GlobalValue::ExternalLinkage, llvm::GlobalValue::ExternalWeakLinkage, llvm::GlobalValue::InternalLinkage, llvm::GlobalValue::LinkOnceAnyLinkage, llvm::GlobalValue::LinkOnceODRLinkage, llvm_unreachable, LLVMAppendingLinkage, LLVMAvailableExternallyLinkage, LLVMCommonLinkage, LLVMExternalLinkage, LLVMExternalWeakLinkage, LLVMInternalLinkage, LLVMLinkOnceAnyLinkage, LLVMLinkOnceODRLinkage, LLVMPrivateLinkage, LLVMWeakAnyLinkage, LLVMWeakODRLinkage, llvm::GlobalValue::PrivateLinkage, llvm::GlobalValue::WeakAnyLinkage, and llvm::GlobalValue::WeakODRLinkage.
const char* LLVMGetSection | ( | LLVMValueRef | Global | ) |
Definition at line 1898 of file Core.cpp.
References llvm::object::getSection().
LLVMUnnamedAddr LLVMGetUnnamedAddress | ( | LLVMValueRef | Global | ) |
Definition at line 1928 of file Core.cpp.
References llvm::GlobalValue::Global, llvm_unreachable, LLVMGlobalUnnamedAddr, LLVMLocalUnnamedAddr, LLVMNoUnnamedAddr, llvm::GlobalValue::Local, and llvm::GlobalValue::None.
LLVMVisibility LLVMGetVisibility | ( | LLVMValueRef | Global | ) |
void LLVMGlobalClearMetadata | ( | LLVMValueRef | Global | ) |
Removes all metadata attachments from this value.
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
.
Definition at line 1999 of file Core.cpp.
References llvm_getMetadata(), and llvm::unwrap().
void LLVMGlobalEraseMetadata | ( | LLVMValueRef | Global, |
unsigned | Kind | ||
) |
Erases a metadata attachment of the given kind if it exists.
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.
Definition at line 1963 of file Core.cpp.
References llvm::wrap().
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.
Definition at line 2029 of file Core.cpp.
References setMetadata().
LLVMBool LLVMHasUnnamedAddr | ( | LLVMValueRef | Global | ) |
LLVMBool LLVMIsDeclaration | ( | LLVMValueRef | Global | ) |
void LLVMSetAlignment | ( | LLVMValueRef | V, |
unsigned | Bytes | ||
) |
Set the preferred alignment of the value.
Definition at line 1984 of file Core.cpp.
References llvm_unreachable, P, and SI.
void LLVMSetDLLStorageClass | ( | LLVMValueRef | Global, |
LLVMDLLStorageClass | Class | ||
) |
void LLVMSetLinkage | ( | LLVMValueRef | Global, |
LLVMLinkage | Linkage | ||
) |
Definition at line 1833 of file Core.cpp.
References llvm::GlobalValue::AppendingLinkage, llvm::GlobalValue::AvailableExternallyLinkage, llvm::GlobalValue::CommonLinkage, llvm::errs(), llvm::GlobalValue::ExternalLinkage, llvm::GlobalValue::ExternalWeakLinkage, llvm::GlobalValue::InternalLinkage, llvm::GlobalValue::LinkOnceAnyLinkage, llvm::GlobalValue::LinkOnceODRLinkage, LLVM_DEBUG, LLVMAppendingLinkage, LLVMAvailableExternallyLinkage, LLVMCommonLinkage, LLVMDLLExportLinkage, LLVMDLLImportLinkage, LLVMExternalLinkage, LLVMExternalWeakLinkage, LLVMGhostLinkage, LLVMInternalLinkage, LLVMLinkerPrivateLinkage, LLVMLinkerPrivateWeakLinkage, LLVMLinkOnceAnyLinkage, LLVMLinkOnceODRAutoHideLinkage, LLVMLinkOnceODRLinkage, LLVMPrivateLinkage, LLVMWeakAnyLinkage, LLVMWeakODRLinkage, llvm::GlobalValue::PrivateLinkage, llvm::GlobalValue::setLinkage(), llvm::GlobalValue::WeakAnyLinkage, and llvm::GlobalValue::WeakODRLinkage.
void LLVMSetSection | ( | LLVMValueRef | Global, |
const char * | Section | ||
) |
void LLVMSetUnnamedAddr | ( | LLVMValueRef | Global, |
LLVMBool | HasUnnamedAddr | ||
) |
Deprecated: Use LLVMSetUnnamedAddress instead.
Definition at line 1957 of file Core.cpp.
References llvm::GlobalValue::Global, and llvm::GlobalValue::None.
void LLVMSetUnnamedAddress | ( | LLVMValueRef | Global, |
LLVMUnnamedAddr | UnnamedAddr | ||
) |
Definition at line 1940 of file Core.cpp.
References llvm::GlobalValue::Global, LLVMGlobalUnnamedAddr, LLVMLocalUnnamedAddr, LLVMNoUnnamedAddr, llvm::GlobalValue::Local, llvm::GlobalValue::None, and llvm::GlobalValue::setUnnamedAddr().
void LLVMSetVisibility | ( | LLVMValueRef | Global, |
LLVMVisibility | Viz | ||
) |
unsigned LLVMValueMetadataEntriesGetKind | ( | LLVMValueMetadataEntry * | Entries, |
unsigned | Index | ||
) |
Returns the kind of a value metadata entry at a specific index.
Definition at line 2010 of file Core.cpp.
References LLVMOpaqueValueMetadataEntry::Kind.
LLVMMetadataRef LLVMValueMetadataEntriesGetMetadata | ( | LLVMValueMetadataEntry * | Entries, |
unsigned | Index | ||
) |
Returns the underlying metadata node of a value metadata entry at a specific index.
Definition at line 2018 of file Core.cpp.
References LLVMOpaqueValueMetadataEntry::Metadata.