[PATCH] D105501: [PowerPC] Power ISA features for Semachecking
Quinn Pham via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 6 10:27:49 PDT 2021
quinnp updated this revision to Diff 356774.
quinnp added a comment.
Updating pwr10 features to include previous features.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105501/new/
https://reviews.llvm.org/D105501
Files:
clang/lib/Basic/Targets/PPC.cpp
Index: clang/lib/Basic/Targets/PPC.cpp
===================================================================
--- clang/lib/Basic/Targets/PPC.cpp
+++ clang/lib/Basic/Targets/PPC.cpp
@@ -422,6 +422,14 @@
return false;
}
+ Features["isa207"] = llvm::StringSwitch<bool>(CPU)
+ .Case("pwr9", true)
+ .Case("ppc64le", true)
+ .Case("pwr8", true)
+ .Default(false);
+ Features["isa30"] =
+ llvm::StringSwitch<bool>(CPU).Case("pwr9", true).Default(false);
+
return TargetInfo::initFeatureMap(Features, Diags, CPU, FeaturesVec);
}
@@ -434,6 +442,9 @@
Features["power10-vector"] = true;
Features["pcrelative-memops"] = true;
Features["prefix-instrs"] = true;
+ Features["isa207"] = true;
+ Features["isa30"] = true;
+ Features["isa31"] = true;
return;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105501.356774.patch
Type: text/x-patch
Size: 887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210706/fa28904c/attachment.bin>
More information about the cfe-commits
mailing list