| /llvm-project-15.0.7/bolt/tools/driver/ |
| H A D | CMakeLists.txt | 14 add_bolt_tool(llvm-bolt 15 llvm-bolt.cpp 21 target_link_libraries(llvm-bolt 28 add_bolt_tool_symlink(perf2bolt llvm-bolt) 29 add_bolt_tool_symlink(llvm-boltdiff llvm-bolt) 32 llvm-bolt 37 add_custom_target(bolt DEPENDS ${BOLT_DEPENDS}) target 39 ${CMAKE_BINARY_DIR}/bin/llvm-bolt 43 COMPONENT bolt 45 add_llvm_install_targets(install-bolt DEPENDS bolt COMPONENT bolt) [all …]
|
| /llvm-project-15.0.7/bolt/include/bolt/Profile/ |
| H A D | ProfileYAMLMapping.h | 21 using llvm::bolt::BinaryFunction; 26 namespace bolt { 60 template <> struct MappingTraits<bolt::CallSiteInfo> { 61 static void mapping(IO &YamlIO, bolt::CallSiteInfo &CSI) { 72 namespace bolt { 87 template <> struct MappingTraits<bolt::SuccessorInfo> { 106 namespace bolt { 146 namespace bolt { 180 namespace bolt { 211 namespace bolt { [all …]
|
| H A D | YAMLProfileReader.h | 17 namespace bolt { 49 yaml::bolt::BinaryProfile YamlBP; 60 StringMap<std::vector<yaml::bolt::BinaryFunctionProfile *>> LTOCommonNameMap; 67 StringMap<yaml::bolt::BinaryFunctionProfile *> ProfileNameToProfile; 71 const yaml::bolt::BinaryFunctionProfile &YamlBF); 77 void matchProfileToFunction(yaml::bolt::BinaryFunctionProfile &YamlBF, in matchProfileToFunction()
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | BinaryDomTree.h | 20 namespace bolt { 30 struct GraphTraits<bolt::BinaryDomTreeNode *> 31 : public DomTreeGraphTraitsBase<bolt::BinaryDomTreeNode, 32 bolt::BinaryDomTreeNode::iterator> {}; 35 struct GraphTraits<const bolt::BinaryDomTreeNode *> 36 : public DomTreeGraphTraitsBase<const bolt::BinaryDomTreeNode, 40 struct GraphTraits<bolt::BinaryDominatorTree *> 41 : public GraphTraits<bolt::BinaryDomTreeNode *> { 42 static NodeRef getEntryNode(bolt::BinaryDominatorTree *DT) { 46 static nodes_iterator nodes_begin(bolt::BinaryDominatorTree *N) { [all …]
|
| /llvm-project-15.0.7/bolt/test/AArch64/ |
| H A D | runtime-relocs.test | 5 RUN: llvm-bolt %t.so -o %t.bolt.so --use-old-text=0 --lite=0 6 RUN: llvm-bolt %t.exe -o %t.bolt.exe --use-old-text=0 --lite=0 10 RUN: llvm-readelf -rW %t.bolt.so | FileCheck %s -check-prefix=CHECKLIB 18 RUN: llvm-readelf -rW %t.bolt.exe | FileCheck %s -check-prefix=CHECKEXE 25 // R_AARCH64_TLS_DTPREL64 emitted correctly after bolt. Since these 30 RUN: llvm-bolt %t.trad.so -o %t.trad.bolt.so --use-old-text=0 --lite=0 40 RUN: llvm-bolt %t.ld.so -o %t.ld.bolt.so --use-old-text=0 --lite=0 41 RUN: llvm-readelf -rW %t.ld.bolt.so | FileCheck %s -check-prefix=CHECKLD
|
| /llvm-project-15.0.7/bolt/test/Unit/ |
| H A D | CMakeLists.txt | 1 add_custom_target(bolt-unit-test-deps) 2 add_dependencies(bolt-unit-test-deps bolt-test-depends) 6 DEPENDS bolt-unit-test-deps) 14 add_lit_testsuite(check-bolt-unit "Running bolt unit test suite" 17 DEPENDS bolt-unit-test-deps)
|
| /llvm-project-15.0.7/bolt/test/ |
| H A D | bolt-info.test | 8 RUN: llvm-bolt %t -o %t.bolt && \ 9 RUN: llvm-objdump -s -j .note.bolt_info %t.bolt | grep -v "file format" | \ 12 … revision: {{.*}}, command line: {{.*}}llvm-bolt {{.*}}/bolt-info.test.tmp -o {{.*}}/bolt-info.tes…
|
| H A D | CMakeLists.txt | 39 llvm-bolt 41 llvm-bolt-heatmap 57 add_custom_target(bolt-test-depends DEPENDS ${BOLT_TEST_DEPS}) 58 set_target_properties(bolt-test-depends PROPERTIES FOLDER "BOLT") 60 add_lit_testsuite(check-bolt "Running the BOLT regression tests" 66 set_target_properties(check-bolt PROPERTIES FOLDER "BOLT")
|
| /llvm-project-15.0.7/bolt/test/runtime/ |
| H A D | plt-lld.test | 7 RUN: llvm-bolt %t.lld.exe -o %t.lld.bolt.exe --use-old-text=0 --lite=0 8 RUN: %t.lld.bolt.exe | FileCheck %s 13 RUN: llvm-bolt %t.lld.pie.exe -o %t.lld.bolt.pie.exe --use-old-text=0 --lite=0 14 RUN: %t.lld.bolt.pie.exe | FileCheck %s
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | PLTCall.cpp | 25 cl::opt<bolt::PLTCall::OptType> 28 cl::init(bolt::PLTCall::OT_NONE), 29 cl::values(clEnumValN(bolt::PLTCall::OT_NONE, 32 clEnumValN(bolt::PLTCall::OT_HOT, 35 clEnumValN(bolt::PLTCall::OT_ALL, 44 namespace bolt { namespace
|
| H A D | ReorderFunctions.cpp | 28 extern size_t padFunction(const bolt::BinaryFunction &Function); 30 cl::opt<bolt::ReorderFunctions::ReorderType> 33 cl::init(bolt::ReorderFunctions::RT_NONE), 34 cl::values(clEnumValN(bolt::ReorderFunctions::RT_NONE, 37 clEnumValN(bolt::ReorderFunctions::RT_EXEC_COUNT, 40 clEnumValN(bolt::ReorderFunctions::RT_HFSORT, 43 clEnumValN(bolt::ReorderFunctions::RT_HFSORT_PLUS, 46 clEnumValN(bolt::ReorderFunctions::RT_PETTIS_HANSEN, 49 clEnumValN(bolt::ReorderFunctions::RT_RANDOM, 52 clEnumValN(bolt::ReorderFunctions::RT_USER, [all …]
|
| /llvm-project-15.0.7/bolt/utils/docker/ |
| H A D | Dockerfile | 12 WORKDIR /home/bolt 19 -DLLVM_ENABLE_PROJECTS="bolt;clang;lld" \ 24 -DCMAKE_INSTALL_PREFIX=/home/bolt/install && \ 25 ninja check-bolt && \ 26 ninja install-llvm-bolt install-perf2bolt install-merge-fdata \ 31 COPY --from=builder /home/bolt/install /usr/local
|
| /llvm-project-15.0.7/utils/bazel/llvm-project-overlay/bolt/ |
| H A D | BUILD.bazel | 11 name = "llvm-bolt-heatmap", 39 name = "llvm-bolt", 67 "include/bolt/Rewrite/*.h", 99 "include/bolt/RuntimeLibs/*.h", 127 "include/bolt/Profile/*.h", 154 "include/bolt/Passes/*.h", 237 "include/bolt/Core/*.h", 238 "include/bolt/RuntimeLibs/*.h", 239 "include/bolt/Passes/*.h", 240 "include/bolt/Rewrite/*.h", [all …]
|
| /llvm-project-15.0.7/bolt/lib/Profile/ |
| H A D | YAMLProfileReader.cpp | 31 namespace bolt { namespace 46 for (yaml::bolt::BinaryFunctionProfile &YamlBF : YamlBP.Functions) { in buildNameMaps() 64 for (const StringMapEntry<yaml::bolt::BinaryFunctionProfile *> &KV : in hasLocalsWithFileName() 74 BinaryFunction &BF, const yaml::bolt::BinaryFunctionProfile &YamlBF) { in parseFunctionProfile() 132 for (const yaml::bolt::CallSiteInfo &YamlCSI : YamlBB.CallSites) { in parseFunctionProfile() 192 for (const yaml::bolt::SuccessorInfo &YamlSI : YamlBB.Successors) { in parseFunctionProfile() 276 yaml::bolt::BinaryFunctionProfile &YamlBF = *PI->getValue(); in preprocessProfile() 331 yaml::bolt::BinaryFunctionProfile &YamlBF = *PI->getValue(); in readProfile() 377 yaml::bolt::BinaryFunctionProfile &YamlBF = *PI->getValue(); in readProfile() 386 for (yaml::bolt::BinaryFunctionProfile &YamlBF : YamlBP.Functions) in readProfile() [all …]
|
| H A D | YAMLProfileWriter.cpp | 22 namespace bolt { namespace 26 yaml::bolt::BinaryFunctionProfile &YamlBF) { in convert() 38 yaml::bolt::BinaryBasicBlockProfile YamlBB; in convert() 55 yaml::bolt::CallSiteInfo CSI; in convert() 125 yaml::bolt::SuccessorInfo YamlSI; in convert() 152 yaml::bolt::BinaryProfile BP; in writeProfile() 192 yaml::bolt::BinaryFunctionProfile YamlBF; in writeProfile()
|
| /llvm-project-15.0.7/bolt/test/X86/ |
| H A D | avx512-trap.test | 10 RUN: llvm-bolt %t --trap-avx512=1 -o %t.bolt --lite=0 2>&1 | FileCheck %s 11 RUN: llvm-objdump -d --disassemble-symbols=use_avx512 %t.bolt | \ 14 RUN: llvm-bolt %t --trap-avx512=0 -o %t.bolt --lite=0 15 RUN: llvm-objdump -d --disassemble-symbols=use_avx512 %t.bolt | \
|
| H A D | debug-fission-single.s | 17 # RUN: llvm-bolt %t.exe \ 21 # RUN: -o %t.bolt.1.exe 2>&1 | FileCheck %s 22 # RUN: llvm-dwarfdump --show-form --verbose --debug-ranges %t.bolt.1.exe &> %tAddrIndexTest 25 # RUN: llvm-dwarfdump --show-form --verbose --debug-addr %t.bolt.1.exe | FileCheck %s --check-pr… 46 # RUN: llvm-bolt %t.exe --reorder-blocks=reverse --update-debug-sections --dwarf-output-path=%T -o … 47 # RUN: not llvm-dwarfdump --show-form --verbose --debug-info %t.bolt.2.exe.dwp &> %tAddrIndexTestDwp
|
| H A D | plt-sec.test | 1 ## Check that llvm-bolt correctly identifies functions in .plt.sec 3 # RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s 5 ## Check that llvm-bolt correctly identifies functions in .plt.got that has 8 # RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s
|
| H A D | dwarf4-ftypes-dwo-input-dwp-output.test | 9 ; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections --write-dwp 10 ; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.exe.bolt.dwp | FileCheck -check-pref… 11 ; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.bolt.dwp | FileCheck -check-p… 13 ; Test input into bolt a .dwo file with TU Index.
|
| H A D | dwarf4-ftypes-dwp-input-dwp-output.test | 11 ; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections --write-dwp 12 ; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.exe.bolt.dwp | FileCheck -check-pref… 13 ; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.bolt.dwp | FileCheck -check-p… 15 ; Test input into bolt a DWP file with TU Index.
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | JumpTable.cpp | 21 using namespace bolt; 23 using JumpTable = bolt::JumpTable; 30 bolt::JumpTable::JumpTable(MCSymbol &Symbol, uint64_t Address, size_t EntrySize, in JumpTable() 37 bolt::JumpTable::getEntriesForAddress(const uint64_t Addr) const { in getEntriesForAddress() 68 bool bolt::JumpTable::replaceDestination(uint64_t JTAddress, in replaceDestination() 84 void bolt::JumpTable::updateOriginal() { in updateOriginal() 102 void bolt::JumpTable::print(raw_ostream &OS) const { in print()
|
| /llvm-project-15.0.7/bolt/docs/ |
| H A D | CMakeLists.txt | 28 set(BOLT_DOXYGEN_QCH_FILENAME "org.llvm.bolt.qch" CACHE STRING 30 set(BOLT_DOXYGEN_QHP_NAMESPACE "org.llvm.bolt" CACHE STRING 78 add_custom_target(doxygen-bolt 81 COMMENT "Generating bolt doxygen documentation." VERBATIM) 84 add_dependencies(doxygen doxygen-bolt) 98 add_sphinx_target(html bolt) 101 add_sphinx_target(man bolt)
|
| /llvm-project-15.0.7/bolt/test/runtime/X86/ |
| H A D | indirect-goto-pie.test | 1 # Check llvm-bolt processes binaries compiled from sources that use indirect goto. 5 RUN: llvm-bolt %t -o %t.bolt --relocs=1 --print-cfg --print-only=main \ 8 RUN: not %t.bolt
|
| /llvm-project-15.0.7/bolt/test/runtime/AArch64/ |
| H A D | constant-island-relocations.s | 2 # is updated after llvm-bolt 9 # RUN: llvm-bolt %t.exe -o %t.bolt --use-old-text=0 --lite=0 --trap-old-code 10 # RUN: %t.bolt
|
| /llvm-project-15.0.7/bolt/tools/heatmap/ |
| H A D | CMakeLists.txt | 8 add_bolt_tool(llvm-bolt-heatmap 12 target_link_libraries(llvm-bolt-heatmap 19 set_target_properties(llvm-bolt-heatmap PROPERTIES FOLDER "BOLT")
|