[PATCH] D130051: [BOLT] Add main fragment to function layout
Fabian Parzefall via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 18 16:48:09 PDT 2022
FPar created this revision.
Herald added subscribers: ayermolo, kristof.beyls.
Herald added a reviewer: rafauler.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
FPar added a reviewer: yota9.
FPar published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Functions that do not contain any code still have to be emitted. This
occurs on AArch64 where functions can consist only of a constant island.
To support fragment semantics in code emission, this commits adds a
guaranteed main fragment to function layout. This fragment might be
empty, but allows us omit checks whether the function is empty in most
places.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130051
Files:
bolt/include/bolt/Core/FunctionLayout.h
bolt/lib/Core/BinaryEmitter.cpp
bolt/lib/Core/BinaryFunction.cpp
bolt/lib/Core/FunctionLayout.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130051.445653.patch
Type: text/x-patch
Size: 8257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220718/72af10a4/attachment.bin>
More information about the llvm-commits
mailing list