[llvm] [TableGen] Print a warning when a Processor contains duplicate Features / TuneFeatures (PR #137864)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 14:37:40 PDT 2025
================
@@ -333,6 +333,30 @@ unsigned SubtargetEmitter::cpuNames(raw_ostream &OS) {
return Names.size();
}
+static void checkDuplicateCPUFeatures(StringRef CPUName,
+ ArrayRef<const Record *> Features,
+ ArrayRef<const Record *> TuneFeatures) {
+ // We had made sure each SubtargetFeature Record has a unique name, so we can
----------------
topperc wrote:
had->have
https://github.com/llvm/llvm-project/pull/137864
More information about the llvm-commits
mailing list