[PATCH] D148360: [Propeller] Use a bit-field struct for the metdata fields of BBEntry.

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 09:50:18 PDT 2023


rahmanl created this revision.
Herald added a subscriber: hiraditya.
Herald added a reviewer: jhenderson.
Herald added a project: All.
rahmanl updated this revision to Diff 513696.
rahmanl added a comment.
rahmanl updated this revision to Diff 513698.
rahmanl updated this revision to Diff 513700.
rahmanl updated this revision to Diff 514420.
rahmanl updated this revision to Diff 514422.
rahmanl updated this revision to Diff 514423.
rahmanl updated this revision to Diff 514668.
rahmanl edited the summary of this revision.
rahmanl added a reviewer: dhoekwater.
rahmanl published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

clang-format.


rahmanl added a comment.

cleanup.


rahmanl added a comment.

WIP.


rahmanl added a comment.

Rebase and add comments.


rahmanl added a comment.

clang-format.


rahmanl added a comment.

clang-format.


rahmanl added a comment.

Remove old accessors.


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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148360

Files:
  llvm/include/llvm/Object/ELFTypes.h
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  llvm/lib/Object/ELF.cpp
  llvm/unittests/Object/ELFObjectFileTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148360.514668.patch
Type: text/x-patch
Size: 6789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230418/5553d337/attachment.bin>


More information about the llvm-commits mailing list