native 0.0.1
Vectors, masks and wide register packs for C++26
Loading...
Searching...
No Matches
native.isa.ccm
1// SPDX-FileCopyrightText: 2026 Edward Kmett <ekmett@gmail.com>
2// SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0
3module;
4#include "native/isa.h"
5export module native.isa;
6export namespace native {
8 using ::native::x86;
9 using ::native::arm;
10 using ::native::wasm;
11 using ::native::target_arch;
12 using ::native::x86_feature;
13 using ::native::arm_feature;
19 using ::native::isa;
20 using ::native::polyfill_t;
21 using ::native::polyfill;
22 using ::native::scalar;
23 using ::native::avx2;
24 using ::native::avx512;
25 using ::native::avx512_bf16;
26 using ::native::avx512_fp16;
27 using ::native::neon;
28 using ::native::neon_fp16;
29 using ::native::neon_bf16;
31 using ::native::isa_admission;
34 using ::native::isa_list;
35 using ::native::with_isa;
36 using ::native::operator&;
37 using ::native::operator|;
38 using ::native::operator<;
39 using ::native::operator>;
40 using ::native::operator<=;
41 using ::native::operator>=;
42 using ::native::operator+;
43}
44export namespace native {
45 using ::native::arch;
46 using ::native::abi_lookup;
47 using ::native::target;
48}
49// Source-target macro validation also runs in importing translation units.
50export namespace native::detail {
51 using ::native::detail::source_isa;
52 using ::native::detail::known_features;
53 using ::native::detail::x86_features;
54 using ::native::detail::arm_features;
55 using ::native::detail::wasm_features;
56 using ::native::detail::decode_x86_features;
57 using ::native::detail::decode_arm_features;
58}
Architecture-tagged vectors, register packs and supporting value types. Native arithmetic follows its...
constexpr std::size_t arm_feature_count
Number of named ARM feature values.
Definition isa.h:36
constexpr architecture arm
Select ARM feature metadata independently of the compilation target.
Definition config.h:28
constexpr architecture x86
Select x86 feature metadata independently of the compilation target.
Definition config.h:26
constexpr bool with_isa(isa_list< Entries... >, C const &cpu, F &&callback, isa< detail::observation_family< C > > minimum={})
Admit the first available source variant and invoke callback.operator()().
Definition isa.h:862
x86_feature
Architecture-specific instruction features, represented by local bit indices.
Definition isa.h:15
architecture
Instruction-set families; an ISA value belongs to exactly one family.
Definition config.h:24
target_entry(isa< Family >, isa< Family >={}) -> target_entry< Family >
Deduce a source record from same-family ISA values.
constexpr auto feature_closure(A input) noexcept
Definition isa.h:588
constexpr architecture wasm
Select WebAssembly feature metadata independently of the compilation target.
Definition config.h:30
constexpr std::size_t x86_feature_count
Number of named x86 feature values.
Definition isa.h:34
constexpr isa_admission< x86 > classify_isa(C const &cpu, isa< x86 > requested, isa< x86 > minimum={}) noexcept
Definition isa.h:759
constexpr int target
First matching requirement, with every later choice checked for shadowing.
Definition isa.h:445
constexpr isa< Family > target_features(std::string_view text) noexcept
Definition isa.h:611
wasm_feature
WebAssembly validation capabilities, using local bit indices.
Definition isa.h:30
constexpr std::size_t wasm_feature_count
Number of named Wasm feature values.
Definition isa.h:32
constexpr polyfill_t polyfill
Compose this permission with an ISA using A | polyfill. Used alone, it selects scalar emulation in th...
Definition isa.h:43
arm_feature
Independently observable ARM instruction features, using local bit indices.
Definition isa.h:24
constexpr architecture target_arch
The compiler target's family; no optional instruction support is implied.
Definition config.h:32
isa(E) -> isa< detail::family_of< E > >
Deduce the family from a feature enum; explicit isa<> always names the host family.