[all-commits] [llvm/llvm-project] 4641d8: [ELF] Shrink binding and type in Symbol

Shoaib Meenai via All-commits all-commits at lists.llvm.org
Wed Apr 20 10:47:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4641d86e45bf752e24b0a8a28d48891cef566aff
      https://github.com/llvm/llvm-project/commit/4641d86e45bf752e24b0a8a28d48891cef566aff
  Author: Shoaib Meenai <smeenai at fb.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    M lld/ELF/Symbols.h

  Log Message:
  -----------
  [ELF] Shrink binding and type in Symbol

STB_HIPROC and STT_HIPROC are both 15, so we can fit the symbol binding
and type in 4 bits. This gives us an additional byte to use for Symbol
flags (without increasing the type's size), which I'll be making use of
in the next diff.

Reorder type and binding based on a suggestion from @MaskRay, to
optimize st_info computation on little-endian systems (see
https://godbolt.org/z/nMn8Yar43).

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D124042




More information about the All-commits mailing list