[all-commits] [llvm/llvm-project] 6dd54d: [OpenMP][mlir] Lowering for omp.atomic.update
Shraiysh via All-commits
all-commits at lists.llvm.org
Thu Mar 10 04:59:09 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6dd54da5a51db6ec674d69366ab883b3057c73a6
https://github.com/llvm/llvm-project/commit/6dd54da5a51db6ec674d69366ab883b3057c73a6
Author: Shraiysh Vaishay <Shraiysh.Vaishay at amd.com>
Date: 2022-03-10 (Thu, 10 Mar 2022)
Changed paths:
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
M mlir/test/Dialect/OpenMP/invalid.mlir
A mlir/test/Target/LLVMIR/openmp-llvm-invalid.mlir
M mlir/test/Target/LLVMIR/openmp-llvm.mlir
Log Message:
-----------
[OpenMP][mlir] Lowering for omp.atomic.update
This patch adds lowering from omp.atomic.update to LLVM IR. Whenever a
special LLVM IR instruction is available for the operation, `atomicrmw`
instruction is emitted, otherwise a compare-exchange loop based update
is emitted.
Depends on D119522
Reviewed By: ftynse, peixin
Differential Revision: https://reviews.llvm.org/D119657
More information about the All-commits
mailing list