TFILLPAD_EXPAND

指令示意图

TFILLPAD_EXPAND tile operation

简介

填充/填充时允许目标大于源。

数学语义

除非另有说明,语义定义在有效区域上,目标相关行为标记为实现定义。

汇编语法

PTO-AS 形式:参见 PTO-AS 规范

AS Level 1(SSA)

%dst = pto.tfillpad_expand %src : !pto.tile<...> -> !pto.tile<...>

AS Level 2(DPS)

pto.tfillpad_expand ins(%src : !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)

C++ 内建接口

声明于 include/pto/common/pto_instr.hpp

template <typename DstTileData, typename SrcTileData, typename... WaitEvents>
PTO_INST RecordEvent TFILLPAD_EXPAND(DstTileData &dst, SrcTileData &src, WaitEvents &... events);

约束

类型/布局/位置/形状的合法性由后端决定;对于特定后端,请将实现相关说明视为规范性约束。

示例

参见 docs/isa/docs/coding/tutorials/ 中的相关示例。

汇编示例(ASM)

自动模式

# 自动模式:由编译器/运行时负责资源放置与调度。
%dst = pto.tfillpad_expand %src : !pto.tile<...> -> !pto.tile<...>

手动模式

# 手动模式:先显式绑定资源,再发射指令。
# 可选(当该指令包含 tile 操作数时):
# pto.tassign %arg0, @tile(0x1000)
# pto.tassign %arg1, @tile(0x2000)
%dst = pto.tfillpad_expand %src : !pto.tile<...> -> !pto.tile<...>

PTO 汇编形式

%dst = pto.tfillpad_expand %src : !pto.tile<...> -> !pto.tile<...>
# AS Level 2 (DPS)
pto.tfillpad_expand ins(%src : !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)