#[non_exhaustive]#[repr(u8)]pub enum BlockId {
Show 19 variants
Module = 8,
ParamAttr = 9,
ParamAttrGroup = 10,
Constants = 11,
Function = 12,
Identification = 13,
ValueSymtab = 14,
Metadata = 15,
MetadataAttachment = 16,
Type = 17,
Uselist = 18,
ModuleStrtab = 19,
GlobalvalSummary = 20,
OperandBundleTags = 21,
MetadataKind = 22,
Strtab = 23,
FullLtoGlobalvalSummary = 24,
Symtab = 25,
SyncScopeNames = 26,
}Expand description
Block IDs
The only top-level block types are MODULE, IDENTIFICATION, STRTAB and SYMTAB.
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.
Module = 8
MODULE
ParamAttr = 9
PARAMATTR
See AttributeCode
ParamAttrGroup = 10
PARAMATTR_GROUP
Constants = 11
CONSTANTS
Function = 12
FUNCTION
Identification = 13
Obsolete.
Block intended to contain information on the bitcode versioning. Can be used to provide better error messages when we fail to parse a bitcode file.
ValueSymtab = 14
VALUE_SYMTAB
Metadata = 15
METADATA
MetadataAttachment = 16
METADATA_ATTACHMENT_ID
Type = 17
TYPE_BLOCK_ID_NEW = 17
Uselist = 18
USELIST
ModuleStrtab = 19
MODULE_STRTAB
GlobalvalSummary = 20
Obsolete.
GLOBALVAL_SUMMARY
OperandBundleTags = 21
OPERAND_BUNDLE_TAGS
MetadataKind = 22
METADATA_KIND
Strtab = 23
STRTAB
FullLtoGlobalvalSummary = 24
FULL_LTO_GLOBALVAL_SUMMARY
Symtab = 25
SYMTAB
SyncScopeNames = 26
SYNC_SCOPE_NAMES
Trait Implementations§
Source§impl TryFromPrimitive for BlockId
impl TryFromPrimitive for BlockId
impl Copy for BlockId
impl Eq for BlockId
impl StructuralPartialEq for BlockId
Auto Trait Implementations§
impl Freeze for BlockId
impl RefUnwindSafe for BlockId
impl Send for BlockId
impl Sync for BlockId
impl Unpin for BlockId
impl UnwindSafe for BlockId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more