[llvm] [TableGen] Print a warning when a Processor contains duplicate Features / TuneFeatures (PR #137864)
    Min-Yih Hsu via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Apr 29 13:58:56 PDT 2025
    
    
  
================
@@ -333,6 +333,16 @@ unsigned SubtargetEmitter::cpuNames(raw_ostream &OS) {
   return Names.size();
 }
 
+static void checkDuplicateCPUFeatures(StringRef CPUName, StringRef FeatureKind,
+                                      ConstRecVec Features) {
----------------
mshockwave wrote:
Oops, for some reason I mistakenly thought `ConstRecVec` is a typedef to a std::vector reference. It's fixed now.
https://github.com/llvm/llvm-project/pull/137864
    
    
More information about the llvm-commits
mailing list