[all-commits] [llvm/llvm-project] d5c03d: [BOLT] Towards FunctionLayout const-correctness

Fabian Parzefall via All-commits all-commits at lists.llvm.org
Wed Aug 24 16:34:17 PDT 2022


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

  Changed paths:
    M bolt/include/bolt/Core/BinaryBasicBlock.h
    M bolt/include/bolt/Core/BinaryFunction.h
    M bolt/include/bolt/Core/DynoStats.h
    M bolt/include/bolt/Core/FunctionLayout.h
    M bolt/include/bolt/Passes/ReorderAlgorithm.h
    M bolt/lib/Core/BinaryBasicBlock.cpp
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Core/DynoStats.cpp
    M bolt/lib/Passes/AsmDump.cpp
    M bolt/lib/Passes/BinaryPasses.cpp
    M bolt/lib/Passes/CacheMetrics.cpp
    M bolt/lib/Passes/ExtTSPReorderAlgorithm.cpp
    M bolt/lib/Passes/IdenticalCodeFolding.cpp
    M bolt/lib/Passes/ReorderAlgorithm.cpp
    M bolt/lib/Passes/StokeInfo.cpp
    M bolt/lib/Profile/DataAggregator.cpp
    M bolt/lib/Profile/DataReader.cpp
    M bolt/lib/Rewrite/BoltDiff.cpp

  Log Message:
  -----------
  [BOLT] Towards FunctionLayout const-correctness

A const-qualified reference to function layout allows accessing
non-const qualified basic blocks on a const-qualified function. This
patch adds or removes const-qualifiers where necessary to indicate where
basic blocks are used in a non-const manner.

Reviewed By: rafauler

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




More information about the All-commits mailing list