[Mlir-commits] [mlir] [mlir][ArithToAMDGPU] Add option for saturating truncation to fp8 (PR #74153)
Jakub Kuderski
llvmlistbot at llvm.org
Tue Jan 9 20:36:25 PST 2024
================
@@ -125,6 +125,12 @@ def ArithToAMDGPUConversionPass : Pass<"convert-arith-to-amdgpu"> {
}];
let dependentDialects = ["amdgpu::AMDGPUDialect", "vector::VectorDialect"];
+
+ let options = [
+ Option<"saturateFP8Truncf", "saturate-fp8-truncf", "bool",
+ /*default=*/"false",
+ "Whether truncation to 8-bit float types should be saturating">,
----------------
kuhar wrote:
nit: suggestion, maybe `Use saturating truncation for 8-bit float types`? And prefix the option with `enable-` or `use-`?
https://github.com/llvm/llvm-project/pull/74153
More information about the Mlir-commits
mailing list