This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Add main fragment to function layout
ClosedPublic

Authored by FPar on Jul 18 2022, 4:33 PM.

Details

Summary

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.

Diff Detail

Event Timeline

FPar created this revision.Jul 18 2022, 4:33 PM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
FPar added a reviewer: yota9.Jul 18 2022, 4:42 PM
FPar published this revision for review.Jul 18 2022, 4:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 4:48 PM
FPar removed a subscriber: ayermolo.
FPar updated this revision to Diff 449056.Aug 1 2022, 9:54 AM

Rebase

FPar updated this revision to Diff 453104.Aug 16 2022, 1:04 PM

Cleanup

FPar added subscribers: ayermolo, spupyrev.
This revision is now accepted and ready to land.Aug 16 2022, 2:38 PM
This revision was automatically updated to reflect the committed changes.