[all-commits] [llvm/llvm-project] dc89a3: HIP: Fix handling of denormal mode

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Apr 13 11:49:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dc89a3efb43feedec04facfa2206de011d2606e7
      https://github.com/llvm/llvm-project/commit/dc89a3efb43feedec04facfa2206de011d2606e7
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-04-13 (Mon, 13 Apr 2020)

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

  Log Message:
  -----------
  HIP: Fix handling of denormal mode

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.




More information about the All-commits mailing list