Skip to content

x86.target

x86 dialect

x86 target-family record. The selector chooses an authored CPU row; optional attrs structurally override common target fields.

Operation contract

Property Value
Semantic phase module metadata
Traits SymbolDefine
Interfaces TargetLike

Symbol contract

Property Value
Kind target
Defining field symbol
Interfaces target, record
Flags

Signature

Kind Name Type Cardinality Description
Attribute symbol symbol required
Attribute kind enum X86TargetKind required
Attribute codegen_format enum SnapshotCodegenFormat optional
Attribute artifact_format enum ArtifactFormatAttr optional
Attribute default_pointer_bitwidth i64 optional
Attribute index_bitwidth i64 optional
Attribute offset_bitwidth i64 optional
Attribute max_workgroup_size_x i64 optional
Attribute max_workgroup_size_y i64 optional
Attribute max_workgroup_size_z i64 optional
Attribute max_flat_workgroup_size i64 optional
Attribute max_workgroup_storage_bytes i64 optional Maximum function-local workgroup storage in bytes.
Attribute subgroup_size i64 optional
Attribute max_grid_size_x i64 optional
Attribute max_grid_size_y i64 optional
Attribute max_grid_size_z i64 optional
Attribute max_flat_grid_size i64 optional
Attribute max_workgroup_count_x i64 optional
Attribute max_workgroup_count_y i64 optional
Attribute max_workgroup_count_z i64 optional
Attribute memory_space_generic i64 optional
Attribute memory_space_global i64 optional
Attribute memory_space_workgroup i64 optional
Attribute memory_space_constant i64 optional
Attribute memory_space_private i64 optional
Attribute memory_space_host i64 optional
Attribute memory_space_descriptor i64 optional
Attribute abi enum ExportAbiKind optional
Attribute export_symbol string optional
Attribute linkage enum ExportLinkage optional
Attribute contract_set_key string optional
Attribute contract_feature_bits i64 optional

Examples

x86.target<scalar> @host
x86.target<simd128> @host
x86.target<avx2> @host
x86.target<avx512> @host
x86.target<packed_dot> @host