[clang] [lld] [lldb] [llvm] [Option] Shrink Info from 40 to 24 bytes (PR #224807)

Alexis Engelke via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 23:07:58 PDT 2026


================
@@ -73,28 +73,35 @@ class LLVM_ABI OptTable {
     StringTable::Offset HelpTextOffset;
   };
 
+  /// Fields few options set. Row 0 is all zero and serves the options that set
+  /// none.
+  struct InfoExtra {
+    StringTable::Offset MetaVarOffset;
+    StringTable::Offset AliasArgsOffset;
----------------
aengelke wrote:

I'm wondering whether all these offsets need 32 bit (or maybe not when splitting string tables). At least for MC tables, very often 8/16 bits suffice. As a follow up, we could introduce StringTable::Offset{8,16}.

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


More information about the cfe-commits mailing list