[all-commits] [llvm/llvm-project] 3f4b58: [AMDGPU] Add option -munsafe-fp-atomics

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Mon Nov 16 18:53:13 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f4b5893efed620d93015896d79eb276628286f8
      https://github.com/llvm/llvm-project/commit/3f4b5893efed620d93015896d79eb276628286f8
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M clang/include/clang/Basic/TargetInfo.h
    M clang/include/clang/Basic/TargetOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/Basic/TargetInfo.cpp
    M clang/lib/Basic/Targets/AMDGPU.cpp
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/CodeGenCUDA/amdgpu-func-attrs.cu
    M clang/test/Driver/hip-options.hip

  Log Message:
  -----------
  [AMDGPU] Add option -munsafe-fp-atomics

Add an option -munsafe-fp-atomics for AMDGPU target.

When enabled, clang adds function attribute "amdgpu-unsafe-fp-atomics"
to any functions for amdgpu target. This allows amdgpu backend to use
unsafe fp atomic instructions in these functions.

Differential Revision: https://reviews.llvm.org/D91546




More information about the All-commits mailing list