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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Version

MODULE_CODE_VERSION: [version#]

Triple

MODULE_CODE_TRIPLE: [...string...]

DataLayout

MODULE_CODE_DATALAYOUT: [...string...]

Asm

MODULE_CODE_ASM: [...string...]

SectionName

MODULE_CODE_SECTIONNAME: [...string...]

DepLib

MODULE_CODE_DEPLIB: [...string...]

GlobalVar
Function
AliasOld
GcName

MODULE_CODE_GCNAME: [...string...]

Comdat

MODULE_CODE_COMDAT v1: [selection_kind, name] v2: [strtab_offset, strtab_size, selection_kind] Only v2 is currently supported.

VstOffset

MODULE_CODE_VSTOFFSET: [offset]

Alias

MODULE_CODE_ALIAS: [...fields...] Not well documented; see ModuleCodes in Bitcode/LLVMBitCodes.h.

MetadataValuesUnused

MODULE_CODE_METADATA_VALUES_UNUSED Not documented at all; see ModuleCodes in Bitcode/LLVMBitCodes.h.

SourceFilename

MODULE_CODE_SOURCE_FILENAME: [...string...]

Hash

MODULE_CODE_HASH: [5*i32]

IFunc

MODULE_CODE_IFUNC: [...fields...] Not well documented; see ModuleCodes in Bitcode/LLVMBitCodes.h.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.