[PATCH] D132050: [BOLT] Allocate FunctionFragment on heap

Fabian Parzefall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 11:27:04 PDT 2022


FPar created this revision.
FPar added reviewers: maksfb, yota9, Amir, rafauler.
Herald added a subscriber: ayermolo.
Herald added a project: All.
FPar requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This changes `FunctionFragment` from being used as a temporary proxy
object to access basic block ranges to a heap-allocated object that can
store fragment-specific information.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132050

Files:
  bolt/include/bolt/Core/BinaryEmitter.h
  bolt/include/bolt/Core/FunctionLayout.h
  bolt/lib/Core/BinaryContext.cpp
  bolt/lib/Core/BinaryEmitter.cpp
  bolt/lib/Core/BinaryFunction.cpp
  bolt/lib/Core/Exceptions.cpp
  bolt/lib/Core/FunctionLayout.cpp
  bolt/lib/Passes/BinaryPasses.cpp
  bolt/lib/Rewrite/RewriteInstance.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132050.453369.patch
Type: text/x-patch
Size: 29711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220817/9ec62b4e/attachment.bin>


More information about the llvm-commits mailing list