[flang-commits] [flang] [flang][AMDGPU] Convert math ops to AMD GPU library calls instead of libm calls (PR #99517)

Matt Arsenault via flang-commits flang-commits at lists.llvm.org
Thu Jul 25 10:33:32 PDT 2024


arsenm wrote:

> @arsenm Overall, is there a problem with using the OCML functions uniformly, even if they're trivial?

Yes, especially when they're trivial. The cases that just map to an llvm intrinsic add system complexity for no benefit.

> That leaves the ability for them to become non-trivial in the future

Fundamentally we should be treating it more as a runtime library for the compiler and not a user facing abstraction. Right now it's trying to act like a user library or libm and compiler-rt all at the same time when they have different/incompatible constraints. 



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


More information about the flang-commits mailing list