[Mlir-commits] [mlir] [OpenACC] add AutomaticAllocationScope to recipe ops (PR #124337)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jan 24 12:12:51 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-openacc
@llvm/pr-subscribers-mlir-openacc
Author: Scott Manley (rscottmanley)
<details>
<summary>Changes</summary>
The recipe operators should have AutomaticAllocationScope so recipes can be converted using operators that require parent ops to have AutomaticAllocationScope
---
Full diff: https://github.com/llvm/llvm-project/pull/124337.diff
1 Files Affected:
- (modified) mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td (+11-6)
``````````diff
diff --git a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
index c60eb5cc620a7d..7e9ed2c741cf76 100644
--- a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
+++ b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
@@ -1008,8 +1008,9 @@ def OpenACC_UpdateHostOp : OpenACC_DataExitOpWithVarPtr<"update_host",
// 2.5.13 private clause
//===----------------------------------------------------------------------===//
-def OpenACC_PrivateRecipeOp : OpenACC_Op<"private.recipe",
- [IsolatedFromAbove, Symbol, RecipeInterface]> {
+def OpenACC_PrivateRecipeOp
+ : OpenACC_Op<"private.recipe", [IsolatedFromAbove, Symbol, RecipeInterface,
+ AutomaticAllocationScope]> {
let summary = "privatization recipe";
let description = [{
@@ -1065,8 +1066,10 @@ def OpenACC_PrivateRecipeOp : OpenACC_Op<"private.recipe",
// 2.5.14 firstprivate clause
//===----------------------------------------------------------------------===//
-def OpenACC_FirstprivateRecipeOp : OpenACC_Op<"firstprivate.recipe",
- [IsolatedFromAbove, Symbol, RecipeInterface]> {
+def OpenACC_FirstprivateRecipeOp
+ : OpenACC_Op<"firstprivate.recipe", [IsolatedFromAbove, Symbol,
+ RecipeInterface,
+ AutomaticAllocationScope]> {
let summary = "privatization recipe";
let description = [{
@@ -1131,8 +1134,10 @@ def OpenACC_FirstprivateRecipeOp : OpenACC_Op<"firstprivate.recipe",
// 2.5.15 reduction clause
//===----------------------------------------------------------------------===//
-def OpenACC_ReductionRecipeOp : OpenACC_Op<"reduction.recipe",
- [IsolatedFromAbove, Symbol, RecipeInterface]> {
+def OpenACC_ReductionRecipeOp
+ : OpenACC_Op<"reduction.recipe", [IsolatedFromAbove, Symbol,
+ RecipeInterface,
+ AutomaticAllocationScope]> {
let summary = "reduction recipe";
let description = [{
``````````
</details>
https://github.com/llvm/llvm-project/pull/124337
More information about the Mlir-commits
mailing list