Enum llvm_constants::ModuleCode [−][src]
#[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
MODULE_CODE_VERSION: [VERSION, version#]
MODULE_CODE_TRIPLE: [TRIPLE, ...string...]
MODULE_CODE_DATALAYOUT: [DATALAYOUT, ...string...]
MODULE_CODE_ASM: [ASM, ...string...]
MODULE_CODE_SECTIONNAME: [SECTIONNAME, ...string...]
MODULE_CODE_DEPLIB: [DEPLIB, ...string...]
MODULE_CODE_GLOBALVAR: [GLOBALVAR, ...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-globalvar-record
MODULE_CODE_FUNCTION: [FUNCTION, ...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-function-record
MODULE_CODE_ALIAS: [ALIAS, ...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-alias-record
MODULE_CODE_GCNAME: [GCNAME, ...string...]
MODULE_CODE_COMDAT
v1: [selection_kind, name]
v2: [strtab_offset, strtab_size, selection_kind]
Only v2 is currently supported.
MODULE_CODE_VSTOFFSET: [VSTOFFSET, offset]
MODULE_CODE_ALIAS: [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: [SOURCE_FILENAME, ...string...]
MODULE_CODE_HASH: [HASH, 5*i32]
MODULE_CODE_IFUNC: [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.