[Mlir-commits] [flang] [mlir] [mlir][acc] add VariableInfo class to thread langauge specific information about privatized variables (PR #186368)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Mar 24 05:46:54 PDT 2026
================
@@ -459,13 +459,16 @@ static RecipeOp genRecipeOp(
auto mappableTy = mlir::dyn_cast<mlir::acc::MappableType>(ty);
assert(mappableTy &&
"Expected that all variable types are considered mappable");
+ auto initArg = mlir::cast<MappableValue>(initBlock->getArgument(0));
+ mlir::acc::VariableInfoAttr varInfo =
+ mappableTy.genPrivateVariableInfo(initArg);
----------------
jeanPerier wrote:
Very valid and crucial point, thanks. I update the code to thread the hostVar in createOrGetPrivateRecipe and other APIs.
https://github.com/llvm/llvm-project/pull/186368
More information about the Mlir-commits
mailing list