[all-commits] [llvm/llvm-project] 59989d: [MLIR][OpenMP] Add support for critical construct
kiranchandramohan via All-commits
all-commits at lists.llvm.org
Tue Aug 3 02:50:57 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 59989d68ba065b8dc1909d525dfd135d9e3c0206
https://github.com/llvm/llvm-project/commit/59989d68ba065b8dc1909d525dfd135d9e3c0206
Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: 2021-08-03 (Tue, 03 Aug 2021)
Changed paths:
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
M mlir/test/Dialect/OpenMP/ops.mlir
M mlir/test/Target/LLVMIR/openmp-llvm.mlir
Log Message:
-----------
[MLIR][OpenMP] Add support for critical construct
This patch adds the critical construct to the OpenMP dialect. The
implementation models the definition in 2.17.1 of the OpenMP 5 standard.
A name and hint can be specified. The name is a global entity or has
external linkage, it is modelled as a FlatSymbolRefAttr. Hint is
modelled as an integer enum attribute.
Also lowering to LLVM IR using the OpenMP IRBuilder.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D107135
More information about the All-commits
mailing list