[llvm] [TableGen] Add support for DefaultMode in per-HwMode encode/decode. (PR #83029)

Jason Eckhardt via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 11:56:58 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 {
----------------
nvjle wrote:

> Drop `const`. It doesn't do anything since it's returning by value.

Done. 
And could I again trouble you (I'll soon ask for write privs) to merge on my behalf?

https://github.com/llvm/llvm-project/pull/83029


More information about the llvm-commits mailing list