Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_target_specialization_options_t Struct Reference

Option extension carrying target specialization inputs. More...

#include <target.h>

Data Fields

loomc_structure_type_t type
 Structure type.
loomc_host_size_t structure_size
 Size of this structure in bytes.
const void * next
 Additional option extensions in the same unordered chain.
const loomc_target_specialization_tspecializations
 Specialization rows borrowed for the invocation.
loomc_host_size_t specialization_count
 Number of rows in specializations.
const loomc_target_binding_ttarget_bindings
 Target declaration binding rows borrowed for the invocation.
loomc_host_size_t target_binding_count
 Number of rows in target_bindings.

Detailed Description

Option extension carrying target specialization inputs.

Put this descriptor on loomc_compile_options_t::next. Direct function rows assign profiles to selected roots. Target binding rows assign profiles to authored target.decl contexts without enumerating every function using the context. The two sets must not assign the same function. Every row is validated before any function version is published. The invocation borrows the row arrays, symbol strings, and profiles for the duration of the call.

Field Documentation

◆ type

loomc_structure_type_t loomc_target_specialization_options_t::type

The documentation for this struct was generated from the following file: