Home
last modified time | relevance | path

Searched refs:MDT (Results 1 – 25 of 175) sorted by relevance

1234567

/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyExceptionInfo.cpp40 auto &MDT = getAnalysis<MachineDominatorTree>(); in INITIALIZE_PASS_DEPENDENCY() local
42 recalculate(MDT, MDF); in INITIALIZE_PASS_DEPENDENCY()
47 MachineDominatorTree &MDT, const MachineDominanceFrontier &MDF) { in recalculate() argument
50 for (auto DomNode : post_order(&MDT)) { in recalculate()
55 discoverAndMapException(WE.get(), MDT, MDF); in recalculate()
60 for (auto DomNode : post_order(&MDT)) { in recalculate()
100 WebAssemblyException *WE, const MachineDominatorTree &MDT, in discoverAndMapException() argument
125 if (MDT.dominates(EHPad, Frontier)) in discoverAndMapException()
137 if (MDT.dominates(EHPad, Succ)) in discoverAndMapException()
DWebAssemblyMemIntrinsicResults.cpp87 MachineDominatorTree &MDT, in replaceDominatedUses() argument
105 if (&MI == Where || !MDT.dominates(&MI, Where)) in replaceDominatedUses()
151 MachineDominatorTree &MDT, LiveIntervals &LIS, in optimizeCall() argument
174 return replaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeCall()
184 auto &MDT = getAnalysis<MachineDominatorTree>(); in runOnMachineFunction() local
205 Changed |= optimizeCall(MBB, MI, MRI, MDT, LIS, TLI, LibInfo); in runOnMachineFunction()
DWebAssemblyCFGSort.cpp188 const MachineDominatorTree &MDT) { in sortBlocks() argument
260 !MDT.dominates(Entries.back().TheRegion->getHeader(), Next)) { in sortBlocks()
291 !MDT.dominates(Entries.back().TheRegion->getHeader(), Next)) { in sortBlocks()
362 auto &MDT = getAnalysis<MachineDominatorTree>(); in runOnMachineFunction() local
367 sortBlocks(MF, MLI, WEI, MDT); in runOnMachineFunction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyExceptionInfo.cpp40 auto &MDT = getAnalysis<MachineDominatorTree>(); in INITIALIZE_PASS_DEPENDENCY() local
42 recalculate(MDT, MDF); in INITIALIZE_PASS_DEPENDENCY()
47 MachineDominatorTree &MDT, const MachineDominanceFrontier &MDF) { in recalculate() argument
50 for (auto DomNode : post_order(&MDT)) { in recalculate()
55 discoverAndMapException(WE, MDT, MDF); in recalculate()
60 for (auto DomNode : post_order(&MDT)) { in recalculate()
97 WebAssemblyException *WE, const MachineDominatorTree &MDT, in discoverAndMapException() argument
122 if (MDT.dominates(EHPad, Frontier)) in discoverAndMapException()
134 if (MDT.dominates(EHPad, Succ)) in discoverAndMapException()
DWebAssemblyMemIntrinsicResults.cpp87 MachineDominatorTree &MDT, in replaceDominatedUses() argument
105 if (&MI == Where || !MDT.dominates(&MI, Where)) in replaceDominatedUses()
151 MachineDominatorTree &MDT, LiveIntervals &LIS, in optimizeCall() argument
174 return replaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeCall()
184 auto &MDT = getAnalysis<MachineDominatorTree>(); in runOnMachineFunction() local
206 Changed |= optimizeCall(MBB, MI, MRI, MDT, LIS, TLI, LibInfo); in runOnMachineFunction()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUPreLegalizerCombiner.cpp42 MachineDominatorTree *MDT; member in __anon03c7da7d0111::AMDGPUPreLegalizerCombinerInfo
48 GISelKnownBits *KB, MachineDominatorTree *MDT) in AMDGPUPreLegalizerCombinerInfo() argument
51 KB(KB), MDT(MDT) { in AMDGPUPreLegalizerCombinerInfo()
63 CombinerHelper Helper(Observer, B, KB, MDT); in combine()
131 MachineDominatorTree *MDT = in runOnMachineFunction() local
134 F.hasMinSize(), KB, MDT); in runOnMachineFunction()
DAMDGPURegBankCombiner.cpp44 MachineDominatorTree *MDT; member in __anon0dd209f10111::AMDGPURegBankCombinerInfo
51 GISelKnownBits *KB, MachineDominatorTree *MDT) in AMDGPURegBankCombinerInfo() argument
54 KB(KB), MDT(MDT) { in AMDGPURegBankCombinerInfo()
66 CombinerHelper Helper(Observer, B, KB, MDT); in combine()
132 MachineDominatorTree *MDT = in runOnMachineFunction() local
135 F.hasMinSize(), LI, KB, MDT); in runOnMachineFunction()
DSIFixSGPRCopies.cpp112 MachineDominatorTree *MDT; member in __anon807fdfec0111::SIFixSGPRCopies
388 MachineDominatorTree &MDT) { in isReachable() argument
389 if (MDT.dominates(From, To)) in isReachable()
419 MachineDominatorTree &MDT, in hoistAndMergeSGPRInits() argument
460 assert(MDT.dominates(&*To, &*From)); in hoistAndMergeSGPRInits()
462 auto interferes = [&MDT, From, To](MachineInstr* &Clobber) -> bool { in hoistAndMergeSGPRInits()
465 bool MayClobberFrom = isReachable(Clobber, &*From, MBBTo, MDT); in hoistAndMergeSGPRInits()
466 bool MayClobberTo = isReachable(Clobber, &*To, MBBTo, MDT); in hoistAndMergeSGPRInits()
477 MDT.dominates(Clobber, &*From) && in hoistAndMergeSGPRInits()
478 MDT.dominates(Clobber, &*To)) || in hoistAndMergeSGPRInits()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64PreLegalizerCombiner.cpp41 MachineDominatorTree *MDT; member in __anonfd8999270111::AArch64PreLegalizerCombinerInfo
47 GISelKnownBits *KB, MachineDominatorTree *MDT) in AArch64PreLegalizerCombinerInfo() argument
50 KB(KB), MDT(MDT) { in AArch64PreLegalizerCombinerInfo()
62 CombinerHelper Helper(Observer, B, KB, MDT); in combine()
145 MachineDominatorTree *MDT = in runOnMachineFunction() local
148 F.hasMinSize(), KB, MDT); in runOnMachineFunction()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyStoreResults.cpp81 MachineDominatorTree &MDT, in ReplaceDominatedUses() argument
98 if (&MI == Where || !MDT.dominates(&MI, Where)) in ReplaceDominatedUses()
144 MachineDominatorTree &MDT, in optimizeStore() argument
148 return ReplaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeStore()
153 MachineDominatorTree &MDT, in optimizeCall() argument
177 return ReplaceDominatedUses(MBB, MI, FromReg, ToReg, MRI, MDT, LIS); in optimizeCall()
187 MachineDominatorTree &MDT = getAnalysis<MachineDominatorTree>(); in runOnMachineFunction() local
214 Changed |= optimizeStore(MBB, MI, MRI, MDT, LIS); in runOnMachineFunction()
218 Changed |= optimizeCall(MBB, MI, MRI, MDT, LIS, TLI, LibInfo); in runOnMachineFunction()
DWebAssemblyCFGStackify.cpp135 const MachineDominatorTree &MDT) { in SortBlocks() argument
200 !MDT.dominates(Loops.back().Loop->getHeader(), Next)) { in SortBlocks()
230 !MDT.dominates(Loops.back().Loop->getHeader(), Next)) { in SortBlocks()
315 MachineDominatorTree &MDT, in PlaceBlockMarker() argument
325 Header = Header ? MDT.findNearestCommonDominator(Header, Pred) : Pred; in PlaceBlockMarker()
455 MachineDominatorTree &MDT, in PlaceMarkers() argument
472 PlaceBlockMarker(MBB, MF, ScopeTops, TII, MLI, MDT, MFI); in PlaceMarkers()
522 auto &MDT = getAnalysis<MachineDominatorTree>(); in runOnMachineFunction() local
529 SortBlocks(MF, MLI, MDT); in runOnMachineFunction()
532 PlaceMarkers(MF, MLI, TII, MDT, MFI); in runOnMachineFunction()
/external/llvm-project/llvm/lib/CodeGen/
DLazyMachineBlockFrequencyInfo.cpp66 auto *MDT = getAnalysisIfAvailable<MachineDominatorTree>(); in calculateIfNotAvailable() local
73 LLVM_DEBUG(if (MDT) dbgs() << "DominatorTree is available\n"); in calculateIfNotAvailable()
75 if (!MDT) { in calculateIfNotAvailable()
79 MDT = OwnedMDT.get(); in calculateIfNotAvailable()
84 OwnedMLI->getBase().analyze(MDT->getBase()); in calculateIfNotAvailable()
DShrinkWrap.cpp113 MachineDominatorTree *MDT; member in __anon953222140111::ShrinkWrap
190 MDT = &getAnalysis<MachineDominatorTree>(); in init()
333 Save = MDT->findNearestCommonDominator(Save, &MBB); in updateSaveRestorePoints()
381 (!(SaveDominatesRestore = MDT->dominates(Save, Restore)) || in updateSaveRestorePoints()
403 Save = MDT->findNearestCommonDominator(Save, Restore); in updateSaveRestorePoints()
415 Save = FindIDom<>(*Save, Save->predecessors(), *MDT); in updateSaveRestorePoints()
554 Save = FindIDom<>(*Save, Save->predecessors(), *MDT); in runOnMachineFunction()
DUnreachableBlockElim.cpp107 MachineDominatorTree *MDT = getAnalysisIfAvailable<MachineDominatorTree>(); in runOnMachineFunction() local
126 if (MDT && MDT->getNode(BB)) MDT->eraseNode(BB); in runOnMachineFunction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLazyMachineBlockFrequencyInfo.cpp66 auto *MDT = getAnalysisIfAvailable<MachineDominatorTree>(); in calculateIfNotAvailable() local
73 LLVM_DEBUG(if (MDT) dbgs() << "DominatorTree is available\n"); in calculateIfNotAvailable()
75 if (!MDT) { in calculateIfNotAvailable()
79 MDT = OwnedMDT.get(); in calculateIfNotAvailable()
84 OwnedMLI->getBase().analyze(MDT->getBase()); in calculateIfNotAvailable()
DShrinkWrap.cpp113 MachineDominatorTree *MDT; member in __anon986d6a880111::ShrinkWrap
190 MDT = &getAnalysis<MachineDominatorTree>(); in init()
333 Save = MDT->findNearestCommonDominator(Save, &MBB); in updateSaveRestorePoints()
385 (!(SaveDominatesRestore = MDT->dominates(Save, Restore)) || in updateSaveRestorePoints()
407 Save = MDT->findNearestCommonDominator(Save, Restore); in updateSaveRestorePoints()
420 Save = FindIDom<>(*Save, Save->predecessors(), *MDT); in updateSaveRestorePoints()
561 Save = FindIDom<>(*Save, Save->predecessors(), *MDT); in runOnMachineFunction()
DXRayInstrumentation.cpp165 auto *MDT = getAnalysisIfAvailable<MachineDominatorTree>(); in runOnMachineFunction() local
167 if (!MDT) { in runOnMachineFunction()
169 MDT = &ComputedMDT; in runOnMachineFunction()
176 ComputedMLI.getBase().analyze(MDT->getBase()); in runOnMachineFunction()
DUnreachableBlockElim.cpp109 MachineDominatorTree *MDT = getAnalysisIfAvailable<MachineDominatorTree>(); in runOnMachineFunction() local
128 if (MDT && MDT->getNode(BB)) MDT->eraseNode(BB); in runOnMachineFunction()
/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64PreLegalizerCombiner.cpp76 MachineDominatorTree *MDT; member in __anon7a80ebf60211::AArch64PreLegalizerCombinerInfo
81 GISelKnownBits *KB, MachineDominatorTree *MDT) in AArch64PreLegalizerCombinerInfo() argument
84 KB(KB), MDT(MDT) { in AArch64PreLegalizerCombinerInfo()
96 CombinerHelper Helper(Observer, B, KB, MDT); in combine()
171 MachineDominatorTree *MDT = in runOnMachineFunction() local
174 F.hasMinSize(), KB, MDT); in runOnMachineFunction()
DAArch64PostLegalizerCombiner.cpp251 MachineDominatorTree *MDT; member in __anon1d3a15b50211::AArch64PostLegalizerCombinerInfo
258 MachineDominatorTree *MDT) in AArch64PostLegalizerCombinerInfo() argument
261 KB(KB), MDT(MDT) { in AArch64PostLegalizerCombinerInfo()
275 CombinerHelper Helper(Observer, B, KB, MDT, LI); in combine()
332 MachineDominatorTree *MDT = in runOnMachineFunction() local
335 F.hasMinSize(), KB, MDT); in runOnMachineFunction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIFixSGPRCopies.cpp112 MachineDominatorTree *MDT; member in __anonc96477e00111::SIFixSGPRCopies
390 MachineDominatorTree &MDT) { in isReachable() argument
393 if (MDT.dominates(From, To)) in isReachable()
425 MachineDominatorTree &MDT, in hoistAndMergeSGPRInits() argument
466 assert(MDT.dominates(&*To, &*From)); in hoistAndMergeSGPRInits()
468 auto interferes = [&MDT, From, To](MachineInstr* &Clobber) -> bool { in hoistAndMergeSGPRInits()
471 bool MayClobberFrom = isReachable(Clobber, &*From, MBBTo, MDT); in hoistAndMergeSGPRInits()
472 bool MayClobberTo = isReachable(Clobber, &*To, MBBTo, MDT); in hoistAndMergeSGPRInits()
483 MDT.dominates(Clobber, &*From) && in hoistAndMergeSGPRInits()
484 MDT.dominates(Clobber, &*To)) || in hoistAndMergeSGPRInits()
[all …]
/external/llvm-project/llvm/lib/Target/ARC/
DARCOptAddrMode.cpp62 MachineDominatorTree *MDT = nullptr; member in __anon75c7624b0111::ARCOptAddrMode
140 MachineDominatorTree *MDT, in dominatesAllUsesOf() argument
154 if (!MDT->dominates(InstBB, MBB)) in dominatesAllUsesOf()
161 if (!MDT->dominates(MI, User)) in dominatesAllUsesOf()
185 return dominatesAllUsesOf(Ldst, R, MDT, MRI); in noUseOfAddBeforeLoadOrStore()
237 if (MDT->dominates(Last, First)) std::swap(First, Last); in tryToCombine()
271 if (MDT->dominates(Ldst, Add)) in canJoinInstructions()
273 else if (!MDT->dominates(Add, Ldst)) in canJoinInstructions()
308 if (&MI != Add && MDT->dominates(Ldst, &MI)) in canJoinInstructions()
310 else if (!MDT->dominates(&MI, Ldst)) in canJoinInstructions()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/
DARCOptAddrMode.cpp62 MachineDominatorTree *MDT = nullptr; member in __anonba56203f0111::ARCOptAddrMode
140 MachineDominatorTree *MDT, in dominatesAllUsesOf() argument
154 if (!MDT->dominates(InstBB, MBB)) in dominatesAllUsesOf()
161 if (!MDT->dominates(MI, User)) in dominatesAllUsesOf()
185 return dominatesAllUsesOf(Ldst, R, MDT, MRI); in noUseOfAddBeforeLoadOrStore()
237 if (MDT->dominates(Last, First)) std::swap(First, Last); in tryToCombine()
271 if (MDT->dominates(Ldst, Add)) in canJoinInstructions()
273 else if (!MDT->dominates(Add, Ldst)) in canJoinInstructions()
308 if (&MI != Add && MDT->dominates(Ldst, &MI)) in canJoinInstructions()
310 else if (!MDT->dominates(&MI, Ldst)) in canJoinInstructions()
[all …]
/external/llvm-project/llvm/unittests/Target/WebAssembly/
DWebAssemblyExceptionInfoTest.cpp168 MachineDominatorTree MDT; in TEST() local
170 MDT.runOnMachineFunction(*MF); in TEST()
171 MDF.getBase().analyze(MDT.getBase()); in TEST()
172 WEI.recalculate(MDT, MDF); in TEST()
343 MachineDominatorTree MDT; in TEST() local
345 MDT.runOnMachineFunction(*MF); in TEST()
346 MDF.getBase().analyze(MDT.getBase()); in TEST()
347 WEI.recalculate(MDT, MDF); in TEST()
/external/llvm/lib/CodeGen/
DShrinkWrap.cpp102 MachineDominatorTree *MDT; member in __anon32454b260111::ShrinkWrap
162 MDT = &getAnalysis<MachineDominatorTree>(); in init()
278 Save = MDT->findNearestCommonDominator(Save, &MBB); in updateSaveRestorePoints()
323 (!(SaveDominatesRestore = MDT->dominates(Save, Restore)) || in updateSaveRestorePoints()
345 Save = MDT->findNearestCommonDominator(Save, Restore); in updateSaveRestorePoints()
358 Save = FindIDom<>(*Save, Save->predecessors(), *MDT); in updateSaveRestorePoints()
501 Save = FindIDom<>(*Save, Save->predecessors(), *MDT); in runOnMachineFunction()

1234567