[PATCH] D132049: [BOLT] Towards FunctionLayout const-correctness

Fabian Parzefall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 11:26:14 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.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132049

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132049.453366.patch
Type: text/x-patch
Size: 21803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220817/b75cca58/attachment.bin>


More information about the llvm-commits mailing list