TSETFMATRIX¶
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 TSETFMATRIX(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¶
PTO-AS form: see PTO-AS Specification.
IR Level 1 (SSA)¶
pto.tsetfmatrix %cfg : !pto.fmatrix_config -> ()
IR Level 2 (DPS)¶
pto.tsetfmatrix 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.tsetfmatrix %cfg : !pto.fmatrix_config -> ()
Manual Mode¶
# Manual mode: bind resources explicitly before issuing the instruction.
# Optional for tile operands:
# pto.tassign %arg0, @tile(0x1000)
# pto.tassign %arg1, @tile(0x2000)
pto.tsetfmatrix %cfg : !pto.fmatrix_config -> ()
PTO Assembly Form¶
pto.tsetfmatrix %cfg : !pto.fmatrix_config -> ()
# IR Level 2 (DPS)
pto.tsetfmatrix ins(%cfg : !pto.fmatrix_config) outs()