[llvm] [TableGen] Add support for DefaultMode in per-HwMode encode/decode. (PR #83029)
    Craig Topper via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Feb 26 10:54:46 PST 2024
    
    
  
================
@@ -52,6 +52,11 @@ struct CodeGenHwModes {
     assert(Id != 0 && "Mode id of 0 is reserved for the default mode");
     return Modes[Id - 1];
   }
+  const StringRef getModeName(unsigned Id, bool IncludeDefault = false) const {
----------------
topperc wrote:
Drop `const`. It doesn't do anything since it's returning by value.
https://github.com/llvm/llvm-project/pull/83029
    
    
More information about the llvm-commits
mailing list