SETFMATRIX
Tile Operation Diagram
Introduction
Set the FMATRIX register(s) used by IMG2COL-like operations from an Img2colTileConfig (target/implementation-defined).
See also
- IMG2COL instruction:
docs/isa/TIMG2COL.md.
C++ Intrinsic
Declared in include/pto/common/pto_instr.hpp:
template <typename ConvTileData, SetFmatrixMode FmatrixMode = SetFmatrixMode::FMATRIX_A_MANUAL, typename... WaitEvents>
PTO_INST RecordEvent SETFMATRIX(ConvTileData &src, WaitEvents&... events);
Math Interpretation
Unless otherwise specified, semantics are defined over the valid region and target-dependent behavior is marked as implementation-defined.
Assembly Syntax
AS Level 1 (SSA)
pto.SETFMATRIX %cfg : !pto.fmatrix_config -> ()
AS Level 2 (DPS)
pto.SETFMATRIX ins(%cfg : !pto.fmatrix_config) outs()
Constraints
Type/layout/location/shape legality is backend-dependent; treat implementation-specific notes as normative for that backend.
Examples
See related examples in docs/isa/ and docs/coding/tutorials/.
ASM Form Examples
Auto Mode
# Auto mode: compiler/runtime-managed placement and scheduling.
pto.SETFMATRIX %cfg : !pto.fmatrix_config -> ()
Manual Mode
# Manual mode: resources must be bound explicitly before issuing the instruction.
# Optional for tile operands:
# pto.tassign %arg0, @tile(0x1000)
# pto.tassign %arg1, @tile(0x2000)
pto.SETFMATRIX %cfg : !pto.fmatrix_config -> ()
PTO Assembly Form
pto.SETFMATRIX %cfg : !pto.fmatrix_config -> ()
# AS Level 2 (DPS)
pto.SETFMATRIX ins(%cfg : !pto.fmatrix_config) outs()