Tile-标量 / Tile-立即数

本文档描述 tile 与标量值或立即常量之间的操作。

操作总数: 19


操作

TEXPANDS

该指令的详细介绍请见isa/TEXPANDS

AS Level 1 (SSA):

%dst = pto.texpands %scalar : dtype -> !pto.tile<...>

AS Level 2 (DPS):

pto.texpands ins(%scalar : dtype) outs(%dst : !pto.tile_buf<...>)

TCMPS

该指令的详细介绍请见isa/TCMPS

AS Level 1 (SSA):

%dst = pto.tcmps %src, %scalar {cmpMode = #pto<cmp xx>} : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tcmps ins(%src, %scalar{cmpMode = #pto<cmp xx>}: !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TSELS

该指令的详细介绍请见isa/TSELS

AS Level 1 (SSA):

%dst = pto.tsels %src0, %src1, %scalar : (!pto.tile<...>, !pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tsels ins(%src0, %src1, %scalar : !pto.tile_buf<...>, !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TMINS

该指令的详细介绍请见isa/TMINS

AS Level 1 (SSA):

%dst = pto.tmins %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tmins ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TADDS

该指令的详细介绍请见isa/TADDS

AS Level 1 (SSA):

%dst = pto.tadds %src, %scalar : (!pto.tile<...>,dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tadds ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TSUBS

该指令的详细介绍请见isa/TSUBS

AS Level 1 (SSA):

%dst = pto.tsubs %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tsubs ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TDIVS

该指令的详细介绍请见isa/TDIVS

AS Level 1 (SSA):

%dst = pto.tdivs %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>
%dst = pto.tdivs %scalar, %src : (dtype, !pto.tile<...>) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tdivs ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)
pto.tdivs ins(%scalar, %src : dtype, !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)

TMULS

该指令的详细介绍请见isa/TMULS

AS Level 1 (SSA):

%dst = pto.tmuls %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tmuls ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TFMODS

该指令的详细介绍请见isa/TFMODS

AS Level 1 (SSA):

%dst = pto.tfmods %src, %scalar : !pto.tile<...>, f32

AS Level 2 (DPS):

pto.tfmods ins(%src, %scalar : !pto.tile_buf<...>, f32) outs(%dst : !pto.tile_buf<...>)

TREMS

该指令的详细介绍请见isa/TREMS

AS Level 1 (SSA):

%dst = pto.trems %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.trems ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TMAXS

该指令的详细介绍请见isa/TMAXS

AS Level 1 (SSA):

%dst = pto.tmaxs %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tmaxs ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TANDS

该指令的详细介绍请见isa/TANDS

AS Level 1 (SSA):

%dst = pto.tands %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tands ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TORS

该指令的详细介绍请见isa/TORS

AS Level 1 (SSA):

%dst = pto.tors %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tors ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TSHLS

该指令的详细介绍请见isa/TSHLS

AS Level 1 (SSA):

%dst = pto.tshls %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tshls ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TSHRS

该指令的详细介绍请见isa/TSHRS

AS Level 1 (SSA):

%dst = pto.tshrs %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tshrs ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TXORS

该指令的详细介绍请见isa/TXORS

AS Level 1 (SSA):

%dst = pto.txors %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.txors ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TLRELU

该指令的详细介绍请见isa/TLRELU

AS Level 1 (SSA):

%dst = pto.tlrelu %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tlrelu ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TADDSC

该指令的详细介绍请见isa/TADDSC

AS Level 1 (SSA):

%dst = pto.taddsc %src0, %scalar, %src1 : (!pto.tile<...>, dtype, !pto.tile<...>) -> !pto.tile<...>

AS Level 2 (DPS):

pto.taddsc ins(%src0, %scalar, %src1 : !pto.tile_buf<...>, dtype, !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)

TSUBSC

该指令的详细介绍请见isa/TSUBSC

AS Level 1 (SSA):

%dst = pto.tsubsc %src0, %scalar, %src1 : (!pto.tile<...>, dtype, !pto.tile<...>) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tsubsc ins(%src0, %scalar, %src1 : !pto.tile_buf<...>, dtype, !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)