[flang-commits] [flang] [mlir] [flang][acc] Let getVariableName choose mangled or source names (PR #222815)

via flang-commits flang-commits at lists.llvm.org
Thu Sep 10 17:06:05 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 h,cpp -- flang/test/lib/OpenACC/TestOpenACCSupport.cpp flang/include/flang/Optimizer/OpenACC/Analysis/FIROpenACCSupportAnalysis.h flang/include/flang/Optimizer/OpenACC/Support/FIROpenACCUtils.h flang/lib/Optimizer/OpenACC/Analysis/FIROpenACCSupportAnalysis.cpp flang/lib/Optimizer/OpenACC/Support/FIROpenACCUtils.cpp flang/tools/fir-opt/fir-opt.cpp mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h mlir/include/mlir/Dialect/OpenACC/OpenACCUtils.h mlir/lib/Dialect/OpenACC/Analysis/OpenACCSupport.cpp 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/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h b/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
index 98a30f9af..0a7cb231f 100644
--- a/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
+++ b/mlir/include/mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h
@@ -88,8 +88,7 @@ struct OpenACCSupportTraits {
     virtual ~Concept() = default;
 
     /// Get the variable name for a given MLIR value.
-    virtual std::string getVariableName(Value v,
-                                        VariableNameConfig config) = 0;
+    virtual std::string getVariableName(Value v, VariableNameConfig config) = 0;
 
     /// Get the recipe name for a given kind, type and value.
     virtual std::string getRecipeName(RecipeKind kind, Type type,

``````````

</details>


https://github.com/llvm/llvm-project/pull/222815


More information about the flang-commits mailing list