Skip to content

Commit baa6aa0

Browse files
author
Scott Manley
committed
[OpenACC] add AutomaticAllocationScope to recipe ops
The recipe operators should have AutomaticAllocationScope so recipes can be converted using operators that require parent ops to have AutomaticAllocationScope
1 parent 1b1270f commit baa6aa0

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,9 @@ def OpenACC_UpdateHostOp : OpenACC_DataExitOpWithVarPtr<"update_host",
10081008
// 2.5.13 private clause
10091009
//===----------------------------------------------------------------------===//
10101010

1011-
def OpenACC_PrivateRecipeOp : OpenACC_Op<"private.recipe",
1012-
[IsolatedFromAbove, Symbol, RecipeInterface]> {
1011+
def OpenACC_PrivateRecipeOp
1012+
: OpenACC_Op<"private.recipe", [IsolatedFromAbove, Symbol, RecipeInterface,
1013+
AutomaticAllocationScope]> {
10131014
let summary = "privatization recipe";
10141015

10151016
let description = [{
@@ -1065,8 +1066,10 @@ def OpenACC_PrivateRecipeOp : OpenACC_Op<"private.recipe",
10651066
// 2.5.14 firstprivate clause
10661067
//===----------------------------------------------------------------------===//
10671068

1068-
def OpenACC_FirstprivateRecipeOp : OpenACC_Op<"firstprivate.recipe",
1069-
[IsolatedFromAbove, Symbol, RecipeInterface]> {
1069+
def OpenACC_FirstprivateRecipeOp
1070+
: OpenACC_Op<"firstprivate.recipe", [IsolatedFromAbove, Symbol,
1071+
RecipeInterface,
1072+
AutomaticAllocationScope]> {
10701073
let summary = "privatization recipe";
10711074

10721075
let description = [{
@@ -1131,8 +1134,10 @@ def OpenACC_FirstprivateRecipeOp : OpenACC_Op<"firstprivate.recipe",
11311134
// 2.5.15 reduction clause
11321135
//===----------------------------------------------------------------------===//
11331136

1134-
def OpenACC_ReductionRecipeOp : OpenACC_Op<"reduction.recipe",
1135-
[IsolatedFromAbove, Symbol, RecipeInterface]> {
1137+
def OpenACC_ReductionRecipeOp
1138+
: OpenACC_Op<"reduction.recipe", [IsolatedFromAbove, Symbol,
1139+
RecipeInterface,
1140+
AutomaticAllocationScope]> {
11361141
let summary = "reduction recipe";
11371142

11381143
let description = [{

0 commit comments

Comments
 (0)