Tile-Scalar / Tile-Immediate
【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa
This document describes operations between tiles and scalar values or immediate constants.
Total Operations:20
Operations
TEXPANDS
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see isa/TFMODS
AS Level 1 (SSA):
%dst = pto.tfmods %src, %scalar : !pto.tile<...>, f32AS Level 2 (DPS):
pto.tfmods ins(%src, %scalar : !pto.tile_buf<...>, f32) outs(%dst : !pto.tile_buf<...>)TREMS
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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
For detailed instruction documentation, see 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<...>)TPOWS
For detailed instruction documentation, see isa/TPOWS
AS Level 1 (SSA):
%dst = pto.tpows %base, %exp, %tmp : (!pto.tile<...>, dtype, !pto.tile<...>) -> !pto.tile<...>AS Level 2 (DPS):
pto.tpows ins(%base, %exp, %tmp : !pto.tile_buf<...>, dtype, !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考