target

Mojo module 🡭

target

Compile-time introspection of the target being compiled for.

Backends use these to decide, at comptime, whether a hardware code path may be instantiated at all: target_triple/target_triple_contains_any answer which architecture, has_target_feature answers which of its optional extensions are enabled. A hardware backend generally needs both.

Functions