[PATCH] D78019: HIP: Fix handling of denormal mode

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 08:02:06 PDT 2020


arsenm created this revision.
arsenm added reviewers: yaxunl, tra.
Herald added subscribers: kerbowa, nhaehnle, wdng, jvesely.
arsenm added a child revision: D78020: clang/AMDGPU: Assume denormals are enabled for the default target..

I didn't realize HIP was a distinct offloading kind, so the subtarget
was looking for -march, which isn't correct for HIP. We also have the
possibility of different denormal defaults in the case of multiple
offload targets, so we need to thread the JobAction through the target
hook.


https://reviews.llvm.org/D78019

Files:
  clang/include/clang/Driver/ToolChain.h
  clang/lib/Driver/ToolChains/AMDGPU.cpp
  clang/lib/Driver/ToolChains/AMDGPU.h
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Driver/ToolChains/Cuda.cpp
  clang/lib/Driver/ToolChains/Cuda.h
  clang/lib/Driver/ToolChains/Linux.cpp
  clang/lib/Driver/ToolChains/Linux.h
  clang/lib/Driver/ToolChains/PS4CPU.h
  clang/test/Driver/cuda-flush-denormals-to-zero.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78019.256972.patch
Type: text/x-patch
Size: 13222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200413/a0f1503e/attachment-0001.bin>


More information about the cfe-commits mailing list