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

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 23:59:29 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;
----------------
MaskRay wrote:

Measured. Only clang's string table exceeds 16 bits: 209 KB. The next largest are lld/MachO 27.5 KB, lld/ELF 24.6 KB, then everything else under 13 KB -- so Offset16 would fit every table except clang's.

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


More information about the cfe-commits mailing list