[clang] [PowerPC][RFC] Make power9-vector indicate isa-3.0 and power9-altivec (PR #86905)

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 27 20:32:35 PDT 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 4d315ff382de912e5129b417c997116851088d4b 99e76dbe0016332ed1d21edbf5297cd5189afe3d -- clang/lib/Basic/Targets/PPC.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Basic/Targets/PPC.cpp b/clang/lib/Basic/Targets/PPC.cpp
index 14caa1898a..b6b968d638 100644
--- a/clang/lib/Basic/Targets/PPC.cpp
+++ b/clang/lib/Basic/Targets/PPC.cpp
@@ -606,7 +606,8 @@ bool PPCTargetInfo::initFeatureMap(
                                        .Case("pwr8", true)
                                        .Default(false);
 
-  Features["power9-altivec"] = llvm::is_contained(FeaturesVec, "+power9-vector");
+  Features["power9-altivec"] =
+      llvm::is_contained(FeaturesVec, "+power9-vector");
 
   // Power10 includes all the same features as Power9 plus any features specific
   // to the Power10 core.

``````````

</details>


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


More information about the cfe-commits mailing list