#[non_exhaustive]#[repr(u64)]pub enum ModuleCode {
Show 17 variants
Version = 1,
Triple = 2,
DataLayout = 3,
Asm = 4,
SectionName = 5,
DepLib = 6,
GlobalVar = 7,
Function = 8,
AliasOld = 9,
GcName = 11,
Comdat = 12,
VstOffset = 13,
Alias = 14,
MetadataValuesUnused = 15,
SourceFilename = 16,
Hash = 17,
IFunc = 18,
}
Expand description
Codes for each record in MODULE_BLOCK
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Version = 1
MODULE_CODE_VERSION: [version#]
Triple = 2
MODULE_CODE_TRIPLE: [...string...]
DataLayout = 3
MODULE_CODE_DATALAYOUT: [...string...]
Asm = 4
MODULE_CODE_ASM: [...string...]
SectionName = 5
MODULE_CODE_SECTIONNAME: [...string...]
DepLib = 6
MODULE_CODE_DEPLIB: [...string...]
GlobalVar = 7
MODULE_CODE_GLOBALVAR: [...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-globalvar-record
Function = 8
MODULE_CODE_FUNCTION: [...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-function-record
AliasOld = 9
MODULE_CODE_ALIAS_OLD: [...fields...]
See: https://llvm.org/docs/BitCodeFormat.html#module-code-alias-record
GcName = 11
MODULE_CODE_GCNAME: [...string...]
Comdat = 12
MODULE_CODE_COMDAT
v1: [selection_kind, name]
v2: [strtab_offset, strtab_size, selection_kind]
Only v2
is currently supported.
VstOffset = 13
MODULE_CODE_VSTOFFSET: [offset]
Alias = 14
MODULE_CODE_ALIAS: [...fields...]
Not well documented; see ModuleCodes
in Bitcode/LLVMBitCodes.h
.
MetadataValuesUnused = 15
MODULE_CODE_METADATA_VALUES_UNUSED
Not documented at all; see ModuleCodes
in Bitcode/LLVMBitCodes.h
.
SourceFilename = 16
MODULE_CODE_SOURCE_FILENAME: [...string...]
Hash = 17
MODULE_CODE_HASH: [5*i32]
IFunc = 18
MODULE_CODE_IFUNC: [...fields...]
Not well documented; see ModuleCodes
in Bitcode/LLVMBitCodes.h
.