[all-commits] [llvm/llvm-project] 423e3e: [OpenMP][IRBuilder] Fix emitAtomicUpdate conditions

Shraiysh via All-commits all-commits at lists.llvm.org
Mon Mar 21 03:50:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 423e3edc271242f65f5fba9fc1b25bd429ef4092
      https://github.com/llvm/llvm-project/commit/423e3edc271242f65f5fba9fc1b25bd429ef4092
  Author: Shraiysh Vaishay <Shraiysh.Vaishay at amd.com>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M mlir/test/Target/LLVMIR/openmp-llvm.mlir

  Log Message:
  -----------
  [OpenMP][IRBuilder] Fix emitAtomicUpdate conditions

This patch fixes the condition for emitting atomic update using
`atomicrmw` instruction or compare-exchange loop.

Reviewed By: ftynse

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




More information about the All-commits mailing list