Enum llvm_constants::TypeCode[][src]

#[non_exhaustive]
#[repr(u64)]
pub enum TypeCode {
Show 25 variants NumEntry, Void, Float, Double, Label, Opaque, Integer, Pointer, FunctionOld, Half, Array, Vector, X86Fp80, Fp128, PpcFp128, Metadata, X86Mmx, StructAnon, StructName, StructNamed, Function, Token, BFloat, X86Amx, OpaquePointer,
}
Expand description

Codes for each record in TYPE_BLOCK (i.e., TYPE_BLOCK_ID_NEW).

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.
NumEntry

TYPE_CODE_NUMENTRY: [numentries]

Void

TYPE_CODE_VOID

Float

TYPE_CODE_FLOAT

Double

TYPE_CODE_DOUBLE

Label

TYPE_CODE_LABEL

Opaque

TYPE_CODE_OPAQUE

Integer

TYPE_CODE_INTEGER: [width]

Pointer

TYPE_CODE_POINTER: [pointee type]

FunctionOld

TYPE_CODE_FUNCTION_OLD: [vararg, attrid, retty, paramty x N]

Half

TYPE_CODE_HALF

Array

TYPE_CODE_ARRAY: [numelts, eltty]

Vector

TYPE_CODE_VECTOR: [numelts, eltty]

X86Fp80

TYPE_CODE_X86_FP80

Fp128

TYPE_CODE_FP128

PpcFp128

TYPE_CODE_PPC_FP128

Metadata

TYPE_CODE_METADATA,

X86Mmx

TYPE_CODE_X86_MMX

StructAnon

TYPE_CODE_STRUCT_ANON: [ispacked, eltty x N]

StructName

TYPE_CODE_STRUCT_NAME: [strchr x N]

StructNamed

TYPE_CODE_STRUCT_NAMED: [ispacked, eltty x N]

Function

TYPE_CODE_FUNCTION: [vararg, retty, paramty x N]

Token

TYPE_CODE_TOKEN

BFloat

TYPE_CODE_BFLOAT

X86Amx

TYPE_CODE_X86_AMX

OpaquePointer

TYPE_CODE_OPAQUE_POINTER: [addrspace]

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.