Enum llvm_constants::ModuleCode [−][src]
#[non_exhaustive]
#[repr(u64)]
pub enum ModuleCode {
Show 17 variants
Version,
Triple,
DataLayout,
Asm,
SectionName,
DepLib,
GlobalVar,
Function,
AliasOld,
GcName,
Comdat,
VstOffset,
Alias,
MetadataValuesUnused,
SourceFilename,
Hash,
IFunc,
}
Expand description
Codes for each record in MODULE_BLOCK
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
MODULE_CODE_VERSION: [version#]
MODULE_CODE_TRIPLE: [...string...]
MODULE_CODE_DATALAYOUT: [...string...]
MODULE_CODE_ASM: [...string...]
MODULE_CODE_SECTIONNAME: [...string...]
MODULE_CODE_DEPLIB: [...string...]
MODULE_CODE_GLOBALVAR: [...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-globalvar-record
MODULE_CODE_FUNCTION: [...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-function-record
MODULE_CODE_ALIAS: [...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-alias-record
MODULE_CODE_GCNAME: [...string...]
MODULE_CODE_COMDAT
v1: [selection_kind, name]
v2: [strtab_offset, strtab_size, selection_kind]
Only v2
is currently supported.
MODULE_CODE_VSTOFFSET: [offset]
MODULE_CODE_ALIAS: [...fields...]
Not well documented; see ModuleCodes
in Bitcode/LLVMBitCodes.h
.
MODULE_CODE_METADATA_VALUES_UNUSED
Not documented at all; see ModuleCodes
in Bitcode/LLVMBitCodes.h
.
MODULE_CODE_SOURCE_FILENAME: [...string...]
MODULE_CODE_HASH: [5*i32]
MODULE_CODE_IFUNC: [...fields...]
Not well documented; see ModuleCodes
in Bitcode/LLVMBitCodes.h
.
Trait Implementations
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.