[all-commits] [llvm/llvm-project] 00448a: [clang] Allow fp in atomic fetch max/min builtins

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed May 31 12:20:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00448a548c4efc4bdcfd6be5f161eacc69b30021
      https://github.com/llvm/llvm-project/commit/00448a548c4efc4bdcfd6be5f161eacc69b30021
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/CodeGen/CGAtomic.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGenCUDA/amdgpu-atomic-ops.cu
    M clang/test/Sema/atomic-ops.c
    M clang/test/SemaOpenCL/atomic-ops.cl

  Log Message:
  -----------
  [clang] Allow fp in atomic fetch max/min builtins

LLVM IR already allows floating point type in atomicrmw.
Update clang atomic fetch max/min builtins to accept
floating point type like we did for fetch add/sub.

Reviewed by: Artem Belevich

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

Fixes: SWDEV-401056




More information about the All-commits mailing list