[flang-commits] [flang] [mlir] [mlir][OpenMP] Annotate `private` vars with `map_idx` when needed (PR #116770)
via flang-commits
flang-commits at lists.llvm.org
Tue Nov 19 00:54:09 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 752dbd6112affa418e33910ac08bf9921f9c270b e218871c9b66ed588887a647cb0efcc6b0b40997 --extensions h,cpp -- mlir/include/mlir/Dialect/OpenMP/Utils.h mlir/lib/Dialect/OpenMP/IR/Utils.cpp flang/lib/Optimizer/OpenMP/MapsForPrivatizedSymbols.cpp mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index 4a13272b8f..46343e3d0a 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -491,7 +491,7 @@ struct PrivateParseArgs {
ArrayAttr *mapIndices;
PrivateParseArgs(SmallVectorImpl<OpAsmParser::UnresolvedOperand> &vars,
SmallVectorImpl<Type> &types, ArrayAttr &syms,
- ArrayAttr *mapIndices=nullptr)
+ ArrayAttr *mapIndices = nullptr)
: vars(vars), types(types), syms(syms), mapIndices(mapIndices) {}
};
struct ReductionParseArgs {
@@ -699,7 +699,8 @@ static ParseResult parseInReductionMapPrivateRegion(
args.inReductionArgs.emplace(inReductionVars, inReductionTypes,
inReductionByref, inReductionSyms);
args.mapArgs.emplace(mapVars, mapTypes);
- args.privateArgs.emplace(privateVars, privateTypes, privateSyms, &privateMaps);
+ args.privateArgs.emplace(privateVars, privateTypes, privateSyms,
+ &privateMaps);
return parseBlockArgRegion(parser, region, args);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/116770
More information about the flang-commits
mailing list