[BOLT][NFC] Use range-based STL wrappersReplace `std::` algorithms taking begin/end iterators with `llvm::` counterpartsaccepting ranges.Reviewed By: rafaulerDifferential Revision: https://rev
[BOLT][NFC] Use range-based STL wrappersReplace `std::` algorithms taking begin/end iterators with `llvm::` counterpartsaccepting ranges.Reviewed By: rafaulerDifferential Revision: https://reviews.llvm.org/D128154
show more ...
[MC] De-capitalize SwitchSection. NFCAdd SwitchSection to return switchSection. The API will be removed soon.
[bolt] Remove unneeded cl::ZeroOrMore for cl::opt options
Remove unneeded cl::ZeroOrMore for cl::opt optionsSimilar to 557efc9a8b68628c2c944678c6471dac30ed9e8e.This commit handles options where cl::ZeroOrMore is more than one line belowcl::opt.
[BOLT][CMAKE] Fix DYLIB buildMove BOLT libraries out of `LLVM_LINK_COMPONENTS` to `target_link_libraries`.Addresses issue #55432.Reviewed By: rafaulerDifferential Revision: https://reviews.llv
[BOLT][CMAKE] Fix DYLIB buildMove BOLT libraries out of `LLVM_LINK_COMPONENTS` to `target_link_libraries`.Addresses issue #55432.Reviewed By: rafaulerDifferential Revision: https://reviews.llvm.org/D125568
[BOLT][NFC] Fix braces usage in the rest of the codebaseSummary:Refactor remaining bolt sources to follow the braces rule for if/else/loop from[LLVM Coding Standards](https://llvm.org/docs/Coding
[BOLT][NFC] Fix braces usage in the rest of the codebaseSummary:Refactor remaining bolt sources to follow the braces rule for if/else/loop from[LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html).(cherry picked from FBD33345885)
Re-enable Windows build and fix issuesSummary:Fix missing string header file inclusion and link_fdata findproblem in lit tests. Change root-level tests to requirelinux. Re-enable Windows in our
Re-enable Windows build and fix issuesSummary:Fix missing string header file inclusion and link_fdata findproblem in lit tests. Change root-level tests to requirelinux. Re-enable Windows in our root CMakeLists.txt.(cherry picked from FBD33296290)
[BOLT][NFC] Fix file-description commentsSummary: Fix comments at the start of source files.(cherry picked from FBD33274597)
[BOLT][NFC] Reformat with clang-formatSummary: Selectively apply clang-format to BOLT code base.(cherry picked from FBD33119052)
Rebase: [NFC] Refactor sources to be buildable in shared modeSummary:Moves source files into separate components, and make explicitcomponent dependency on each other, so LLVM build system knows h
Rebase: [NFC] Refactor sources to be buildable in shared modeSummary:Moves source files into separate components, and make explicitcomponent dependency on each other, so LLVM build system knows how tobuild BOLT in BUILD_SHARED_LIBS=ON.Please use the -c merge.renamelimit=230 git option when rebasing yourwork on top of this change.To achieve this, we create a new library to hold core IR files (mostclasses beginning with Binary in their names), a new library to holdUtils, some command line options shared across both RewriteInstanceand core IR files, a new library called Rewrite to hold most classesconcerned with running top-level functions coordinating the binaryrewriting process, and a new library called Profile to hold classesdealing with profile reading and writing.To remove the dependency from BinaryContext into X86-specific classes,we do some refactoring on the BinaryContext constructor to receive areference to the specific backend directly from RewriteInstance. Then,the dependency on X86 or AArch64-specific classes is transfered to theRewrite library. We can't have the Core library depend on targetsbecause targets depend on Core (which would create a cycle).Files implementing the entry point of a tool are transferred to thetools/ folder. All header files are transferred to the include/folder. The src/ folder was renamed to lib/.(cherry picked from FBD32746834)