[all-commits] [llvm/llvm-project] 5ac48e: [Propeller] Use a bit-field struct for the metdata...
Rahman Lavaee via All-commits
all-commits at lists.llvm.org
Thu May 11 11:21:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ac48ef51393e6d8392182ad439a22002571d554
https://github.com/llvm/llvm-project/commit/5ac48ef51393e6d8392182ad439a22002571d554
Author: Rahman Lavaee <rahmanl at google.com>
Date: 2023-05-11 (Thu, 11 May 2023)
Changed paths:
M llvm/include/llvm/Object/ELFTypes.h
M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
M llvm/lib/Object/ELF.cpp
M llvm/test/tools/llvm-readobj/ELF/bb-addr-map.test
M llvm/unittests/Object/ELFObjectFileTest.cpp
M llvm/unittests/Object/ELFTypesTest.cpp
Log Message:
-----------
[Propeller] Use a bit-field struct for the metdata fields of BBEntry.
This patch encapsulates the encoding and decoding logic of basic block metadata into the Metadata struct, and also reduces the decoded size of `SHT_LLVM_BB_ADDR_MAP` section.
The patch would've looked more readable if we could use designated initializer, but that is a c++20 feature.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D148360
More information about the All-commits
mailing list