[Mlir-commits] [mlir] [mlir][Arith] Add FTZ (Flush-to-Zero) fast-math flag (PR #112700)

lorenzo chelini llvmlistbot at llvm.org
Fri Oct 18 01:10:29 PDT 2024


chelini wrote:

> I wonder if this should be something else than a fast math flag, e.g., a rounding mode or an execution mode. In SPIR-V it's the latter and you can only set it per the whole program: https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_execution_mode:~:text=4460-,DenormFlushToZero,-Any%20denormalized%20value, so I don't think we will able to lower FTZ on individual arith ops when lowering to SPIR-V.

Hi Jakub, I would like to have this attribute on a per-op basis since this is what PTX exposes. If you are around next week at the LLVM dev meeting, @matthias-springer , @joker-eph, and I will also be there, and we can have a roundtable discussion on this topic. What do you think?



https://github.com/llvm/llvm-project/pull/112700


More information about the Mlir-commits mailing list