Skip to content

template.apply

← template dialect

Compile-time family application. A specializing link selects one applicable implementation before executable lowering. In a command program this is source composition whose selected implementation is inlined before portable command planning.

Operation contract

Property Value
Semantic phase —
Traits UnknownEffects, CommandEffect, Contextual, CallableBoundary

Signature

Kind Name Type Cardinality Description
Operand operands any variadic —
Result results any variadic —
Attribute family symbol (template_family) required —
Attribute purity enum Purity optional —
Attribute temperature enum Temperature optional —

Examples

%result = template.apply<@vector_transform>(%value) : (vector<32xf32>) -> (vector<32xf32>)