[Mlir-commits] [flang] [mlir] [flang][acc] Add AA implementation for acc operations (PR #189772)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Mar 31 16:47:54 PDT 2026
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 origin/main HEAD --extensions cpp,h -- flang/include/flang/Optimizer/OpenACC/Support/FIROpenACCUtils.h flang/lib/Optimizer/Analysis/AliasAnalysis.cpp flang/lib/Optimizer/OpenACC/Support/FIROpenACCUtils.cpp mlir/include/mlir/Dialect/OpenACC/OpenACC.h mlir/include/mlir/Dialect/OpenACC/OpenACCUtils.h mlir/lib/Dialect/OpenACC/Utils/OpenACCUtils.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Optimizer/OpenACC/Support/FIROpenACCUtils.cpp b/flang/lib/Optimizer/OpenACC/Support/FIROpenACCUtils.cpp
index 39ccd3aad..6d64bc1cf 100644
--- a/flang/lib/Optimizer/OpenACC/Support/FIROpenACCUtils.cpp
+++ b/flang/lib/Optimizer/OpenACC/Support/FIROpenACCUtils.cpp
@@ -648,8 +648,7 @@ fir::AliasAnalysis::Source fir::acc::getSourceFromACCValue(
// queries, so using the host source remains a reasonable tradeoff for
// disambiguating in-region uses. Finer modeling would require extending
// AliasAnalysis::Source (with address space) and teaching AA to use it.
- fir::AliasAnalysis::Source traced =
- traceValue(mlir::acc::getVar(accOp));
+ fir::AliasAnalysis::Source traced = traceValue(mlir::acc::getVar(accOp));
traced.attributes |= accumulatedAttrs;
return traced;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/189772
More information about the Mlir-commits
mailing list