[BOLT][NFC] Use range-based STL wrappers
authorAmir Ayupov <aaupov@fb.com>
Fri, 24 Jun 2022 05:15:47 +0000 (22:15 -0700)
committerAmir Aupov <amir.aupov@gmail.com>
Fri, 24 Jun 2022 05:16:27 +0000 (22:16 -0700)
commitd2c876993625ce9b36bdd7ccc5e0c4cb04f32fb9
tree503f9ba0228b897dc21fbba1f4e5270a492b9479
parent9ffe1b0a792bbc014813e362212b8fb514cc2a9f
[BOLT][NFC] Use range-based STL wrappers

Replace `std::` algorithms taking begin/end iterators with `llvm::` counterparts
accepting ranges.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D128154
38 files changed:
bolt/include/bolt/Core/BinaryBasicBlock.h
bolt/include/bolt/Core/BinaryData.h
bolt/include/bolt/Core/BinaryFunction.h
bolt/lib/Core/BinaryBasicBlock.cpp
bolt/lib/Core/BinaryContext.cpp
bolt/lib/Core/BinaryEmitter.cpp
bolt/lib/Core/BinaryFunction.cpp
bolt/lib/Core/DebugData.cpp
bolt/lib/Core/DynoStats.cpp
bolt/lib/Core/Exceptions.cpp
bolt/lib/Passes/BinaryPasses.cpp
bolt/lib/Passes/ExtTSPReorderAlgorithm.cpp
bolt/lib/Passes/HFSort.cpp
bolt/lib/Passes/HFSortPlus.cpp
bolt/lib/Passes/IdenticalCodeFolding.cpp
bolt/lib/Passes/IndirectCallPromotion.cpp
bolt/lib/Passes/Inliner.cpp
bolt/lib/Passes/Instrumentation.cpp
bolt/lib/Passes/LongJmp.cpp
bolt/lib/Passes/LoopInversionPass.cpp
bolt/lib/Passes/PettisAndHansen.cpp
bolt/lib/Passes/RegReAssign.cpp
bolt/lib/Passes/ReorderAlgorithm.cpp
bolt/lib/Passes/ReorderData.cpp
bolt/lib/Passes/ReorderFunctions.cpp
bolt/lib/Passes/ShrinkWrapping.cpp
bolt/lib/Passes/SplitFunctions.cpp
bolt/lib/Passes/ThreeWayBranch.cpp
bolt/lib/Profile/DataAggregator.cpp
bolt/lib/Profile/DataReader.cpp
bolt/lib/Profile/Heatmap.cpp
bolt/lib/Profile/YAMLProfileWriter.cpp
bolt/lib/Rewrite/BoltDiff.cpp
bolt/lib/Rewrite/DWARFRewriter.cpp
bolt/lib/Rewrite/MachORewriteInstance.cpp
bolt/lib/Rewrite/RewriteInstance.cpp
bolt/lib/RuntimeLibs/InstrumentationRuntimeLibrary.cpp
bolt/tools/merge-fdata/merge-fdata.cpp