[all-commits] [llvm/llvm-project] c11d86: [MLIR, OpenMP] Added support for lowering MasterOp ...
Sourabh Singh Tomar via All-commits
all-commits at lists.llvm.org
Sun Dec 6 20:59:08 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c11d868a39cbb7ff535eed906e181a18c02001eb
https://github.com/llvm/llvm-project/commit/c11d868a39cbb7ff535eed906e181a18c02001eb
Author: Sourabh Singh Tomar <SourabhSingh.Tomar at amd.com>
Date: 2020-12-07 (Mon, 07 Dec 2020)
Changed paths:
M mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
M mlir/test/Target/openmp-llvm.mlir
Log Message:
-----------
[MLIR,OpenMP] Added support for lowering MasterOp to LLVMIR
Some Ops in OMP dialect have regions associated with them i.e
`ParallelOp` `MasterOp`. Lowering of these regions involves interfacing
with `OMPIRBuilder` using callbacks, yet there still exist opportunities
for sharing common code in between.
This patch factors out common code into a separate function and adds
support for lowering `MasterOp` using that. Lowering of `ParallelOp` is
also modified appropriately.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D87247
More information about the All-commits
mailing list