[all-commits] [llvm/llvm-project] 0f8412: [BOLT] Add main fragment to function layout

Fabian Parzefall via All-commits all-commits at lists.llvm.org
Wed Aug 17 15:05:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f8412c19c32dbda994248bc1bdfd6bc71346049
      https://github.com/llvm/llvm-project/commit/0f8412c19c32dbda994248bc1bdfd6bc71346049
  Author: Fabian Parzefall <parzefall at fb.com>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

  Changed paths:
    M bolt/include/bolt/Core/FunctionLayout.h
    M bolt/lib/Core/BinaryEmitter.cpp
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Core/FunctionLayout.cpp

  Log Message:
  -----------
  [BOLT] Add main fragment to function layout

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.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D130051




More information about the All-commits mailing list