We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d315ff commit 99e76dbCopy full SHA for 99e76db
clang/lib/Basic/Targets/PPC.cpp
@@ -597,6 +597,7 @@ bool PPCTargetInfo::initFeatureMap(
597
.Default(false);
598
599
Features["isa-v30-instructions"] =
600
+ llvm::is_contained(FeaturesVec, "+power9-vector") or
601
llvm::StringSwitch<bool>(CPU).Case("pwr9", true).Default(false);
602
603
Features["quadword-atomics"] =
@@ -605,6 +606,8 @@ bool PPCTargetInfo::initFeatureMap(
605
606
.Case("pwr8", true)
607
608
609
+ Features["power9-altivec"] = llvm::is_contained(FeaturesVec, "+power9-vector");
610
+
611
// Power10 includes all the same features as Power9 plus any features specific
612
// to the Power10 core.
613
if (CPU == "pwr10" || CPU == "power10") {
0 commit comments