Home
last modified time | relevance | path

Searched refs:JumpTables (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineJumpTableInfo.h80 std::vector<MachineJumpTableEntry> JumpTables; variable
97 bool isEmpty() const { return JumpTables.empty(); } in isEmpty()
100 return JumpTables; in getJumpTables()
106 JumpTables[Idx].MBBs.clear(); in RemoveJumpTable()
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinaryFunctionProfile.cpp45 extern cl::opt<JumpTableSupportLevel> JumpTables;
170 if (opts::ICP < ICP_JUMP_TABLES && opts::JumpTables < JTS_AGGRESSIVE) in postProcessProfile()
257 auto JTMergeI = BF.JumpTables.begin(); in mergeProfileDataInto()
258 for (const auto &JTEntry : JumpTables) { in mergeProfileDataInto()
271 assert(JTMergeI == BF.JumpTables.end()); in mergeProfileDataInto()
H A DBinaryEmitter.cpp34 extern cl::opt<JumpTableSupportLevel> JumpTables;
388 if (!EmitColdPart && opts::JumpTables > JTS_NONE) in emitFunction()
722 if ((opts::JumpTables == JTS_BASIC || !BF.isSimple()) && in emitJumpTables()
727 if (opts::JumpTables == JTS_BASIC) { in emitJumpTables()
759 if (opts::JumpTables > JTS_SPLIT && !JT.Counts.empty()) { in emitJumpTable()
H A DJumpTable.cpp26 extern cl::opt<JumpTableSupportLevel> JumpTables;
H A DBinaryFunction.cpp80 JumpTables("jump-tables", variable
1125 if (opts::JumpTables == JTS_NONE) in disassemble()
1638 for (auto &JTI : JumpTables) { in postProcessJumpTables()
1641 opts::JumpTables = JTS_MOVE; in postProcessJumpTables()
3696 SmallSet<uint64_t, 4> JumpTables; in checkForAmbiguousJumpTables() local
3707 if (!JumpTables.count(JTAddress)) { in checkForAmbiguousJumpTables()
3708 JumpTables.insert(JTAddress); in checkForAmbiguousJumpTables()
3720 SmallPtrSet<JumpTable *, 4> JumpTables; in disambiguateJumpTables() local
3728 auto Iter = JumpTables.find(JT); in disambiguateJumpTables()
3729 if (Iter == JumpTables.end()) { in disambiguateJumpTables()
[all …]
H A DBinaryContext.cpp108 for (std::pair<const uint64_t, JumpTable *> JTI : JumpTables) in ~BinaryContext()
625 for (auto JTI = JumpTables.begin(), JTE = JumpTables.end(); JTI != JTE; in populateJumpTables()
793 Function.JumpTables.emplace(Address, JT); in getOrCreateJumpTable()
829 JumpTables.emplace(Address, JT); in getOrCreateJumpTable()
832 Function.JumpTables.emplace(Address, JT); in getOrCreateJumpTable()
863 JumpTables.emplace(JumpTableID, NewJT); in duplicateJumpTable()
864 Function.JumpTables.emplace(JumpTableID, NewJT); in duplicateJumpTable()
879 Id = JumpTableIds[Address] = BF.JumpTables.size(); in generateJumpTableName()
/llvm-project-15.0.7/bolt/lib/RuntimeLibs/
H A DInstrumentationRuntimeLibrary.cpp39 extern cl::opt<JumpTableSupportLevel> JumpTables;
50 if (opts::JumpTables != JTS_MOVE) { in adjustCommandLineOptions()
51 opts::JumpTables = JTS_MOVE; in adjustCommandLineOptions()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineFunction.cpp1311 JumpTables.push_back(MachineJumpTableEntry(DestBBs)); in createJumpTableIndex()
1312 return JumpTables.size()-1; in createJumpTableIndex()
1321 for (size_t i = 0, e = JumpTables.size(); i != e; ++i) in ReplaceMBBInJumpTables()
1329 for (MachineJumpTableEntry &JTE : JumpTables) { in RemoveMBBFromJumpTables()
1344 MachineJumpTableEntry &JTE = JumpTables[Idx]; in ReplaceMBBInJumpTable()
1354 if (JumpTables.empty()) return; in print()
1358 for (unsigned i = 0, e = JumpTables.size(); i != e; ++i) { in print()
1360 for (const MachineBasicBlock *MBB : JumpTables[i].MBBs) in print()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DJTFootprintReduction.cpp29 extern cl::opt<JumpTableSupportLevel> JumpTables;
250 if (opts::JumpTables == JTS_BASIC && BC.HasRelocations) in runOnFunctions()
H A DReorderData.cpp30 extern cl::opt<JumpTableSupportLevel> JumpTables;
448 if (opts::JumpTables > JTS_BASIC) { in runOnFunctions()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinaryFunction.h539 std::map<uint64_t, JumpTable *> JumpTables; variable
800 return make_range(JumpTables.begin(), JumpTables.end()); in jumpTables()
931 auto JTI = JumpTables.upper_bound(Address); in getJumpTableContainingAddress()
932 if (JTI == JumpTables.begin()) in getJumpTableContainingAddress()
1401 bool hasJumpTables() const { return !JumpTables.empty(); } in hasJumpTables()
H A DBinaryContext.h192 std::map<uint64_t, JumpTable *> JumpTables; variable
374 auto JTI = JumpTables.upper_bound(Address); in getJumpTableContainingAddress()
375 if (JTI == JumpTables.begin()) in getJumpTableContainingAddress()
516 for (auto &JTI : JumpTables) { in clearJumpTableTempData()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DMachORewriteInstance.cpp38 extern cl::opt<bolt::JumpTableSupportLevel> JumpTables;
613 opts::JumpTables = JTS_MOVE; in adjustCommandLineOptions()
H A DRewriteInstance.cpp78 extern cl::opt<JumpTableSupportLevel> JumpTables;
3710 if (opts::JumpTables == JTS_BASIC) { in mapCodeSections()
3711 for (auto &JTI : Function.JumpTables) { in mapCodeSections()
5269 if (!BC->HasRelocations && opts::JumpTables == JTS_BASIC) { in rewriteFile()
5270 for (auto &JTI : Function->JumpTables) { in rewriteFile()