Skip to content

global.load

global dialect

Load a value from a global. Dynamic dims and encodings in the type annotation reference co-results by name. Predicates on the global definition are propagated as value facts.

Operation contract

Property Value
Semantic phase
Traits UnknownEffects

Signature

Kind Name Type Cardinality Description
Result result any variadic
Attribute global symbol (global) required

Examples

%tile, %m, %k = global.load @weights : tile<[%m]x[%k]xf32>
%tile = global.load @bias : tile<[%m]xf32>
%cache, %s, %d = global.load @kv_cache : tile<[%s]x[%s]x[%d]xf32>