summaryrefslogtreecommitdiff
path: root/mlir/lib/Conversion/MathToROCDL/MathToROCDL.cpp
AgeCommit message (Collapse)Author
2025-11-02[mlir] Remove redundant typename (NFC) (#166108)Kazu Hirata
Identified with readability-redundant-typename.
2025-10-17[MLIR][ROCDL] Add math.clampf -> rocdl.fmed3 conversion (#163520)Keshav Vinayak Jha
Added Pattern for lowering `Math::ClampFOp` to `ROCDL::FMED3`. Also added `chipet` option to `MathToRocdl` pass to check for arch support ISA instructions Solves [#15072](https://github.com/llvm/llvm-project/issues/157052) Reapplies https://github.com/llvm/llvm-project/pull/160100 Un-reverts the merged https://github.com/llvm/llvm-project/pull/163259, and fixes the error. --------- Signed-off-by: Keshav Vinayak Jha <keshavvinayakjha@gmail.com>
2025-10-14Revert "[MLIR][ROCDL] Add math.clampf -> rocdl.fmed3 conversion" (#163447)Fabian Mora
Reverts llvm/llvm-project#163259. Reverting due to missing link libraries causing failures in shared build bots.
2025-10-14[MLIR][ROCDL] Add math.clampf -> rocdl.fmed3 conversion (#163259)Keshav Vinayak Jha
Added Pattern for lowering `Math::ClampFOp` to `ROCDL::FMED3`. Also added `chipset` option to `MathToRocdl` pass to check for arch support ISA instructions Solves [#15072](https://github.com/llvm/llvm-project/issues/157052) Reapplies https://github.com/llvm/llvm-project/pull/160100 --------- Signed-off-by: Keshav Vinayak Jha <keshavvinayakjha@gmail.com>
2025-07-30[MLIR] Migrate some conversion passes and dialects to LDBG() macro (NFC) ↵Mehdi Amini
(#151349)
2025-07-04[mlir] Remove unused includes (NFC) (#147101)Kazu Hirata
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
2025-02-27[MLIR][ROCDL] Add conversion of math.erfc to AMD GPU library calls (#128899)Jan Leyonberg
This patch adds a pattern to convert the math.erfc operation to AMD GPU library calls. Depends on: #128897 for the flang test
2025-01-13[MLIR][ROCDL] Convert `math::fpowi` to ROCDL call (#122640)lialan
* Have to relax static assert to allow reuse of existing template patterns for conversion.
2024-10-05[mlir][NFC] Mark type converter in `populate...` functions as `const` (#111250)Matthias Springer
This commit marks the type converter in `populate...` functions as `const`. This is useful for debugging. Patterns already take a `const` type converter. However, some `populate...` functions do not only add new patterns, but also add additional type conversion rules. That makes it difficult to find the place where a type conversion was added in the code base. With this change, all `populate...` functions that only populate pattern now have a `const` type converter. Programmers can then conclude from the function signature that these functions do not register any new type conversion rules. Also some minor cleanups around the 1:N dialect conversion infrastructure, which did not always pass the type converter as a `const` object internally.
2024-09-23[mlir][AMDGPU] Add support for AMD f16 math library calls (#108809)Daniel Hernandez-Juarez
In this PR we add support for AMD f16 math library calls (`__ocml_*_f16`) CC: @krzysz00 @manupak
2024-09-04[MLIR][ROCDL] Remove patterns for ops supported as intrinsics in the AMDGPU ↵Jan Leyonberg
backend (#102971) This patch removes patterns for a few operations which allows mathToLLVM conversion to convert the operations into LLVM intrinsics instead since they are supported directly by the AMDGPU backend.
2024-07-25[MLIR][GPUToNVVM] support fastMath and other non-supported mathOp (#99890)runseny
Support fastMath and other non-supported mathOp which only require float operands and call libdevice function directly to nvvm. 1. lowering mathOp with fastMath attribute to correct libdevice intrinsic. 2. some mathOp in math dialect has been lowered to libdevice now, but it doesn't cover all mathOp. so this mr lowers all the remaining mathOp which only require float operands.
2024-07-17[MLIR][ROCDL] Refactor conversion of math operations to ROCDL calls to a ↵Jan Leyonberg
separate pass (#98653) This patch refactors the conversion of math operations to ROCDL library calls. This pass will also be used in flang to lower Fortran intrinsics/math functions for OpenMP target offloading codgen.