[all-commits] [llvm/llvm-project] d2e3cb: [OpenMP][Clang] Fix atomic compare for signed vs. ...

Joel E. Denny via All-commits all-commits at lists.llvm.org
Mon May 30 08:03:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d2e3cb737417a2e5ffad34f666fa8510e88e8bc2
      https://github.com/llvm/llvm-project/commit/d2e3cb737417a2e5ffad34f666fa8510e88e8bc2
  Author: Joel E. Denny <jdenny.ornl at gmail.com>
  Date:   2022-05-30 (Mon, 30 May 2022)

  Changed paths:
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/test/OpenMP/atomic_compare_codegen.cpp
    A openmp/libomptarget/test/offloading/atomic-compare-signedness.c
    A openmp/runtime/test/atomic/omp-atomic-compare-signedness.c

  Log Message:
  -----------
  [OpenMP][Clang] Fix atomic compare for signed vs. unsigned

Without this patch, arguments to the
`llvm::OpenMPIRBuilder::AtomicOpValue` initializer are reversed.

Reviewed By: ABataev, tianshilei1992

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




More information about the All-commits mailing list