[Mlir-commits] [mlir] [ROCDL] Added `rocdl.cvt.scale.pk8` ops (PR #161411)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 1 07:27:34 PDT 2025
================
@@ -1010,13 +1011,30 @@ foreach smallT = [
attr-dict $src `,` $scale `[` $scaleSel `]` `:` type($res)
}];
}
+
+ // Down-scaling
+ def ROCDL_CvtScaleF32Pk8 # smallT.nameForOp # largeT.nameForOp # Op :
+ ROCDL_ConcreteNonMemIntrOp<"cvt.scalef32.pk8." # smallT.name # "." # largeT.name,
+ [Pure], 1>,
+ Arguments<(ins largeT.type:$src, F32:$scale)> {
+ let results = (outs smallT.type:$res);
+ let summary = "Scale and convert packed "
+ # largeT.name # " to packed " # smallT.name ;
+ let description = [{
+ Convert 8 packed }] # smallT.name # [{ values to packed }]
+ # largeT.name # [{, multiplying by the exponent part of `scale`
+ before doing so.
----------------
ravil-mobile wrote:
> Can you also add a comment in this description and on the title of the commit reflecting gfx1250+ similar to the description above. Thanks!
done
https://github.com/llvm/llvm-project/pull/161411
More information about the Mlir-commits
mailing list