[clang] [mlir][OpenMP] Added `omp.structured_region` operation (PR #68825)

2023-10-12 Thread Kiran Chandramohan via cfe-commits
@@ -1987,4 +1987,40 @@ def ClauseRequiresAttr : EnumAttr { } + +def StructuredRegionOp : OpenMP_Op<"structured_region"> { + let summary = "Encapsulates a region in an OpenMP construct."; + let description = [{ +Encapsulates a region surrounded by an OpenMP Construct. T

[clang] [mlir][OpenMP] Added `omp.structured_region` operation (PR #68825)

2023-10-12 Thread Kiran Chandramohan via cfe-commits
@@ -1468,6 +1468,18 @@ LogicalResult CancellationPointOp::verify() { return success(); } +//===--===// +// RegionOp +//===--===// + +Logica

[clang] [mlir][OpenMP] Added `omp.structured_region` operation (PR #68825)

2023-10-11 Thread via cfe-commits
https://github.com/shraiysh updated https://github.com/llvm/llvm-project/pull/68825 >From ff635ce0ce910f0cde248a4babb3c27333ddc108 Mon Sep 17 00:00:00 2001 From: Shraiysh Vaishay Date: Sun, 3 Sep 2023 22:40:10 -0500 Subject: [PATCH 1/3] [mlir][OpenMP] Added omp.region operation This patch adds

[clang] [mlir][OpenMP] Added `omp.structured_region` operation (PR #68825)

2023-10-11 Thread via cfe-commits
shraiysh wrote: Restarting discussion about yield here because something went wrong with rebasing on previous PR. Hopefully this won't have the same issues. Sorry :( I will push commit with yield as terminator soon. https://github.com/llvm/llvm-project/pull/68825 __

[clang] [mlir][OpenMP] Added `omp.structured_region` operation (PR #68825)

2023-10-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: Shraiysh (shraiysh) Changes This patch adds `omp.structured_region` operation. This is equivalent to a code block surrounded by an OpenMP construct in C/C++/Fortran. This is a part of the effort to implement the canonical loop operation in

[clang] [mlir][OpenMP] Added `omp.structured_region` operation (PR #68825)

2023-10-11 Thread via cfe-commits
https://github.com/shraiysh created https://github.com/llvm/llvm-project/pull/68825 This patch adds `omp.structured_region` operation. This is equivalent to a code block surrounded by an OpenMP construct in C/C++/Fortran. This is a part of the effort to implement the canonical loop operation i