[all-commits] [llvm/llvm-project] 711aa3: [MLIR][OpenMP] Add support for declaring critical ...
kiranchandramohan via All-commits
all-commits at lists.llvm.org
Thu Sep 2 07:31:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 711aa35759e76f424fe617542dcb8653bf781f53
https://github.com/llvm/llvm-project/commit/711aa35759e76f424fe617542dcb8653bf781f53
Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: 2021-09-02 (Thu, 02 Sep 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 declaring critical construct names
Add an operation omp.critical.declare to declare names/symbols of
critical sections. Named omp.critical operations should use symbols
declared by omp.critical.declare. Having a declare operation ensures
that the names of critical sections are global and unique. In the
lowering flow to LLVM IR, the OpenMP IRBuilder creates unique names
for critical sections.
Reviewed By: ftynse, jeanPerier
Differential Revision: https://reviews.llvm.org/D108713
More information about the All-commits
mailing list