[flang-commits] [flang] [flang]Pass to add vscale range attribute (PR #68103)

via flang-commits flang-commits at lists.llvm.org
Tue Oct 3 06:47:39 PDT 2023


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 1f0126902876cb42a7502047e62bdf512fd96b02 0a45f265653732a63be3d234dec1fa446bfc479b -- flang/lib/Optimizer/Transforms/VScaleAttr.cpp flang/include/flang/Optimizer/Transforms/Passes.h flang/include/flang/Tools/CrossToolHelpers.h flang/lib/Frontend/FrontendActions.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Frontend/FrontendActions.cpp b/flang/lib/Frontend/FrontendActions.cpp
index 67f2fab2804b..73c00c8679c7 100644
--- a/flang/lib/Frontend/FrontendActions.cpp
+++ b/flang/lib/Frontend/FrontendActions.cpp
@@ -698,7 +698,8 @@ void CodeGenAction::lowerHLFIRToFIR() {
 // TODO: We should get this from TargetInfo. However, that depends on
 // too much of clang, so for now, replicate the functionality.
 static std::optional<std::pair<unsigned, unsigned>>
-getVScaleRange(CompilerInstance& ci, const Fortran::frontend::LangOptions &langOpts) {
+getVScaleRange(CompilerInstance &ci,
+               const Fortran::frontend::LangOptions &langOpts) {
   if (langOpts.VScaleMin || langOpts.VScaleMax)
     return std::pair<unsigned, unsigned>(
         langOpts.VScaleMin ? langOpts.VScaleMin : 1, langOpts.VScaleMax);

``````````

</details>


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


More information about the flang-commits mailing list