[PATCH] D127042: [Clang][OpenMP] Enable floating-point operation for `atomic compare` series

Shilei Tian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 18:36:43 PDT 2022


tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, ABataev.
Herald added subscribers: guansong, hiraditya, yaxunl.
Herald added a project: All.
tianshilei1992 requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, sstefan1.
Herald added projects: clang, LLVM.

D127041 <https://reviews.llvm.org/D127041> introduced the support for `fmax` and `fmin` such that we can also reprent
`atomic compare` and `atomic compare capture` with `atomicrmw` instruction. This
patch simply lifts the limitation we set before.

Depend on D127041 <https://reviews.llvm.org/D127041>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127042

Files:
  clang/lib/CodeGen/CGStmtOpenMP.cpp
  clang/lib/Sema/SemaOpenMP.cpp
  clang/test/OpenMP/atomic_compare_codegen.cpp
  clang/test/OpenMP/atomic_messages.c
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp



More information about the llvm-commits mailing list