Home
last modified time | relevance | path

Searched defs:bb (Results 1 – 25 of 223) sorted by relevance

123456789

/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
Dcleanup_empty_blocks.cpp27 static bool CheckSpecialTriangle(BasicBlock *bb) in CheckSpecialTriangle()
39 static bool TryRemoveEmptyBlock(BasicBlock *bb) in TryRemoveEmptyBlock()
62 for (auto bb : graph->GetVectorBlocks()) { in CleanupEmptyBlocks() local
70 for (auto bb : emptyBlocks) { in CleanupEmptyBlocks() local
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
Dx64_optimize_common.cpp22 void X64InsnVisitor::ModifyJumpTarget(Operand &targetOperand, BB &bb) in ModifyJumpTarget()
32 void X64InsnVisitor::ModifyJumpTarget(LabelIdx targetLabel, BB &bb) in ModifyJumpTarget()
38 void X64InsnVisitor::ModifyJumpTarget(BB &newTarget, BB &bb) in ModifyJumpTarget()
184 void X64InsnVisitor::ReTargetSuccBB(BB &bb, LabelIdx newTarget) const in ReTargetSuccBB()
192 void X64InsnVisitor::FlipIfBB(BB &bb, LabelIdx ftLabel) const in FlipIfBB()
200 BB *X64InsnVisitor::CreateGotoBBAfterCondBB(BB &bb, BB &fallthru, bool isTargetFallthru) const in CreateGotoBBAfterCondBB()
209 void X64InsnVisitor::ModifyFathruBBToGotoBB(BB &bb, LabelIdx labelIdx) const in ModifyFathruBBToGotoBB()
Dx64_peep.cpp38 bool X64CGPeepHole::DoSSAOptimize(BB &bb, Insn &insn) in DoSSAOptimize()
57 void X64RemoveMovingtoSameRegPattern::Run(BB &bb, Insn &insn) in Run()
65 void X64CGPeepHole::DoNormalOptimize(BB &bb, Insn &insn) in DoNormalOptimize()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
Dcfi_generator.cpp45 Insn *GenCfi::InsertCFIDefCfaOffset(BB &bb, Insn &insn, int32 &cfiOffset) in InsertCFIDefCfaOffset()
56 void GenCfi::GenerateStartDirective(BB &bb) in GenerateStartDirective()
66 void GenCfi::GenerateEndDirective(BB &bb) in GenerateEndDirective()
71 void GenCfi::GenerateRegisterStateDirective(BB &bb) in GenerateRegisterStateDirective()
95 void GenCfi::InsertFirstLocation(BB &bb) in InsertFirstLocation()
Dloop.cpp64 void LoopAnalysis::SetLoopParent4BB(const BB &bb, LoopDesc &loopDesc) in SetLoopParent4BB()
82 auto *bb = cgFunc.GetBBFromID(bbId); in SetExitBBs() local
92 void LoopAnalysis::GenerateLoop(BB *bb) in GenerateLoop()
124 BB *bb = allBBs.front(); in ProcessBB() local
149 for (auto *bb : entryBBs) { in Analysis() local
Dcgbb.cpp142 void BB::AppendBBInsns(BB &bb) in AppendBBInsns()
165 void BB::InsertAtBeginning(BB &bb) in InsertAtBeginning()
188 void BB::InsertAtEnd(BB &bb) in InsertAtEnd()
211 void BB::InsertAtEndMinus1(BB &bb) in InsertAtEndMinus1()
389 auto *bb = workStack.top(); in SeekCycles() local
422 bool Bfs::AllPredBBVisited(const BB &bb, long &level) const in AllPredBBVisited() argument
425 auto predBBInCycle = [this](const BB &bb, const BB &predBB) { in AllPredBBVisited()
451 BB *Bfs::MarkStraightLineBBInBFS(BB *bb) in MarkStraightLineBBInBFS()
472 BB *Bfs::SearchForStraightLineBBs(BB &bb) in SearchForStraightLineBBs()
510 BB *bb = workList.front(); in BFS() local
Dcg_dominance.cpp26 void DomAnalysis::PostOrderWalk(const BB &bb, int32 &pid, MapleVector<bool> &visitedMap) in PostOrderWalk()
102 BB *bb = reversePostOrder[i]; in ComputeDominance() local
136 for (const BB *bb : bbVec) { in ComputeDomFrontiers() local
183 for (auto *bb : reversePostOrder) { in ComputeDomChildren() local
197 void DomAnalysis::GetIterDomFrontier(const BB *bb, MapleUnorderedSet<uint32> *dfset, uint32 bbidMar… in GetIterDomFrontier()
226 uint32 DomAnalysis::ComputeDtPreorder(const BB &bb, uint32 &num) in ComputeDtPreorder()
295 void PostDomAnalysis::PdomPostOrderWalk(const BB &bb, int32 &pid, MapleVector<bool> &visitedMap) in PdomPostOrderWalk()
365 BB *bb = pdomReversePostOrder[i]; in ComputePostDominance() local
400 for (const BB *bb : bbVec) { in ComputePdomFrontiers() local
422 for (const BB *bb : bbVec) { in ComputePdomChildren() local
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Dmonitor_analysis.cpp22 void MonitorAnalysis::MarkedMonitorRec(BasicBlock *bb, int32_t numMonitors) in MarkedMonitorRec()
78 for (auto bb : GetGraph()->GetBlocksRPO()) { in RunImpl() local
90 for (auto bb : GetGraph()->GetBlocksRPO()) { in RunImpl() local
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dalignment.h69 uint32 GetAlignPower(BB &bb) in GetAlignPower()
74 void InsertLoopHeaderBBs(BB &bb) in InsertLoopHeaderBBs()
78 void InsertJumpTargetBBs(BB &bb) in InsertJumpTargetBBs()
82 void InsertAlignInfos(BB &bb, uint32 power) in InsertAlignInfos()
Dcg_ssu_pre.h66 SOcc(SOccType ty, BB *bb) : occTy(ty), cgbb(bb) {} in SOcc()
83 explicit SRealOcc(BB *bb) : SOcc(kSOccReal, bb) {} in SRealOcc()
99 explicit SLambdaResOcc(BB *bb) : SOcc(kSOccLambdaRes, bb) {} in SLambdaResOcc()
114 SLambdaOcc(BB *bb, MapleAllocator &alloc) : SOcc(kSOccLambda, bb), lambdaRes(alloc.Adapter()) {} in SLambdaOcc()
143 explicit SEntryOcc(BB *bb) : SOcc(kSOccEntry, bb) {} in SEntryOcc()
154 explicit SKillOcc(BB *bb) : SOcc(kSOccKill, bb) {} in SKillOcc()
203 void GetIterPdomFrontier(const BB *bb, MapleSet<uint32> *pdfset) const in GetIterPdomFrontier()
212 void CreateEntryOcc(BB *bb) in CreateEntryOcc()
Dcg_ssa_pre.h59 Occ(AOccType ty, BB *bb) : occTy(ty), cgbb(bb) {} in Occ()
76 explicit RealOcc(BB *bb) : Occ(kAOccReal, bb) {} in RealOcc()
92 explicit PhiOpndOcc(BB *bb) : Occ(kAOccPhiOpnd, bb) {} in PhiOpndOcc()
107 PhiOcc(BB *bb, MapleAllocator &alloc) : Occ(kAOccPhi, bb), phiOpnds(alloc.Adapter()) {} in PhiOcc()
137 explicit ExitOcc(BB *bb) : Occ(kAOccExit, bb) {} in ExitOcc()
187 void GetIterDomFrontier(const BB *bb, MapleSet<uint32> *dfset) const in GetIterDomFrontier()
/arkcompiler/runtime_core/static_core/irtoc/lang/
Dbasic_block.rb57 def set_successor(dir, bb) argument
66 def set_true_succ(bb) argument
70 def set_false_succ(bb) argument
74 def add_predecessor(bb) argument
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
Daarch64_optimize_common.cpp22 void AArch64InsnVisitor::ModifyJumpTarget(Operand &targetOperand, BB &bb) in ModifyJumpTarget()
52 void AArch64InsnVisitor::ModifyJumpTarget(maple::LabelIdx targetLabel, BB &bb) in ModifyJumpTarget()
57 void AArch64InsnVisitor::ModifyJumpTarget(BB &newTarget, BB &bb) in ModifyJumpTarget()
206 void AArch64InsnVisitor::ReTargetSuccBB(BB &bb, LabelIdx newTarget) const in ReTargetSuccBB()
217 void AArch64InsnVisitor::FlipIfBB(BB &bb, LabelIdx ftLabel) const in FlipIfBB()
231 BB *AArch64InsnVisitor::CreateGotoBBAfterCondBB(BB &bb, BB &fallthru, bool isTargetFallthru) const in CreateGotoBBAfterCondBB()
258 void AArch64InsnVisitor::ModifyFathruBBToGotoBB(BB &bb, LabelIdx labelIdx) const in ModifyFathruBBToGotoBB()
Daarch64_regsaves.cpp56 for (auto bb : bfs->sortedBBs) { in InitData() local
61 void AArch64RegSavesOpt::CollectLiveInfo(const BB &bb, const Operand &opnd, bool isDef, bool isUse) in CollectLiveInfo()
87 void AArch64RegSavesOpt::GenerateReturnBBDefUse(const BB &bb) in GenerateReturnBBDefUse()
102 void AArch64RegSavesOpt::ProcessAsmListOpnd(const BB &bb, Operand &opnd, uint32 idx) in ProcessAsmListOpnd()
125 void AArch64RegSavesOpt::ProcessListOpnd(const BB &bb, Operand &opnd) in ProcessListOpnd()
133 void AArch64RegSavesOpt::ProcessMemOpnd(const BB &bb, Operand &opnd) in ProcessMemOpnd()
146 void AArch64RegSavesOpt::ProcessCondOpnd(const BB &bb) in ProcessCondOpnd()
157 BB &bb = *bbp; in GetLocalDefUse() local
206 for (auto *bb : bfs->sortedBBs) { in PrintBBs() local
231 int32 AArch64RegSavesOpt::CheckCriteria(BB *bb, regno_t reg) const in CheckCriteria()
[all …]
Daarch64_fixshortbranch.cpp22 uint32 AArch64FixShortBranch::CalculateAlignRange(const BB &bb, uint32 addr) const in CalculateAlignRange() argument
89 for (BB *bb = aarch64CGFunc->GetFirstBB(); bb != nullptr; bb = bb->GetNext()) { in PatchLongBranch() local
125 for (auto *bb = aarch64CGFunc->GetFirstBB(); bb != nullptr && !change; bb = bb->GetNext()) { in FixShortBranches() local
227 BB *bb = insn.GetBB(); in InsertJmpPadAtSecEnd() local
285 for (auto *bb = cgFunc->GetLastBB(); bb != nullptr && !findLast; bb = bb->GetPrev()) { in CheckFunctionSize() local
296 for (auto *bb = cgFunc->GetFirstBB(); bb != nullptr && !findFirst; bb = bb->GetNext()) { in CheckFunctionSize() local
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dcondition_chain_manager.cpp25 ConditionChain *ConditionChainManager::FindConditionChain(BasicBlock *bb) in FindConditionChain()
39 ConditionChain *ConditionChainManager::TryConditionChain(BasicBlock *bb, BasicBlock *multiplePredsS… in TryConditionChain()
81 bool ConditionChainManager::IsConditionChainCandidate(const BasicBlock *bb) in IsConditionChainCandidate()
Dcleanup.cpp28 bool Cleanup::CanBeMerged(BasicBlock *bb) in CanBeMerged()
53 for (auto bb : GetGraph()->GetVectorBlocks()) { in RunImpl() local
88 for (auto bb : GetGraph()->GetVectorBlocks()) { in RunImpl() local
108 void Cleanup::CheckBBPhisUsers(BasicBlock *succ, BasicBlock *bb) in CheckBBPhisUsers()
159 bool Cleanup::SkipBasicBlock(BasicBlock *bb) in SkipBasicBlock()
166 bool Cleanup::CheckSpecialTriangle(BasicBlock *bb) in CheckSpecialTriangle()
200 void Cleanup::RemoveDeadPhi(BasicBlock *bb, ArenaSet<BasicBlock *> *newEmptyBlocks) in RemoveDeadPhi()
219 bool Cleanup::ProcessBB(BasicBlock *bb, Marker deadMrk, ArenaSet<BasicBlock *> *newEmptyBlocks) in ProcessBB()
344 for (auto bb : GetGraph()->GetBlocksRPO()) { in MarkLiveInstructions() local
352 bool Cleanup::TryToRemoveNonLiveInst(Inst *inst, BasicBlock *bb, ArenaSet<BasicBlock *> *newEmptyBl… in TryToRemoveNonLiveInst()
[all …]
Dif_conversion.cpp53 bool IfConversion::TryTriangle(BasicBlock *bb) in TryTriangle()
109 uint32_t IfConversion::GetIfcLimit(BasicBlock *bb) in GetIfcLimit()
140 bool IfConversion::TryDiamond(BasicBlock *bb) in TryDiamond()
194 bool IfConversion::LoopInvariantPreventConversion(BasicBlock *bb) in LoopInvariantPreventConversion()
216 bool IfConversion::IsConvertable(BasicBlock *bb, uint32_t *instCount) in IsConvertable()
230 bool IfConversion::IsPhisAllowed(BasicBlock *bb, BasicBlock *pred1, BasicBlock *pred2, uint32_t *ph… in IsPhisAllowed()
Dif_merging.cpp113 bool IfMerging::TryMergeEquivalentIfs(BasicBlock *bb) in TryMergeEquivalentIfs()
148 auto bb = phi->GetBasicBlock(); in TryRemoveConstantPhiIf() local
178 bool IfMerging::MarkInstBranches(BasicBlock *bb, BasicBlock *trueBb, BasicBlock *falseBb) in MarkInstBranches()
216 std::optional<bool> IfMerging::GetUserBranch(Inst *userInst, BasicBlock *bb, BasicBlock *trueBb, Ba… in GetUserBranch()
241 void IfMerging::SplitBlockWithEquivalentIf(BasicBlock *bb, BasicBlock *trueBb, bool invertedIf) in SplitBlockWithEquivalentIf()
268 void IfMerging::SplitBlockWithConstantPhi(BasicBlock *bb, BasicBlock *trueBb, PhiInst *phi, uint64_… in SplitBlockWithConstantPhi()
318 BasicBlock *IfMerging::SplitBlock(BasicBlock *bb) in SplitBlock()
349 void IfMerging::TryJoinSuccessorBlock(BasicBlock *bb) in TryJoinSuccessorBlock()
359 void IfMerging::TryUpdateDominator(BasicBlock *bb) in TryUpdateDominator()
Dlicm_conditions.cpp40 for (auto bb : GetGraph()->GetBlocksRPO()) { in MarkHoistableInst() local
103 auto bb = *bbIt; in IsHoistable() local
157 auto bb = phi->GetBasicBlock(); in SamePhiInputFromChain() local
257 [this](BasicBlock *bb) { bb->SetMarker(processedBlocksMarker_); }); in SaveProcessedBlocks()
260 void LicmConditions::SaveMulitplePredecessorsSuccessorPreds(const BasicBlock *bb) in SaveMulitplePredecessorsSuccessorPreds()
319 PhiInst *LicmConditions::AddPhiInst(BasicBlock *bb, const ConditionChain *chain) in AddPhiInst()
332 void LicmConditions::AddSingleIfImmInst(BasicBlock *bb, const ConditionChain *chain, Inst *input) in AddSingleIfImmInst()
340 void LicmConditions::AdjustPredecessorEdges(BasicBlock *chainFirstBb, BasicBlock *bb) in AdjustPredecessorEdges()
356 for (auto bb : multiplePredecessorsSuccessorPreds_) { in UpdateMultiplePredecessorsSuccessorsPreds() local
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
Dx64_live.h27 void GenerateReturnBBDefUse(BB &bb) const override {}; in GenerateReturnBBDefUse()
28 void ProcessCallInsnParam(BB &bb, const Insn &insn) const override {}; in ProcessCallInsnParam()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/src/
Dme_cfg.cpp99 auto *bb = *bIt; in Verify() local
153 [[maybe_unused]] BB *bb = GetLabelBBAt(targetLabIdx); in VerifyLabels() local
174 BB *bb = qu.front(); in Dump() local
257 void MeCFG::DeleteBasicBlock(const BB &bb) in DeleteBasicBlock()
265 BB *MeCFG::NextBB(const BB *bb) in NextBB()
278 BB *MeCFG::PrevBB(const BB *bb) in PrevBB()
302 void MeCFG::BuildSCCDFS(BB &bb, uint32 &visitIndex, std::vector<SCCOfBBs *> &sccNodes, in BuildSCCDFS()
408 auto *bb = *bIt; in ConstructEdgeFreqFromBBFreq() local
462 auto *bb = *common_entry(); in ConstructBBFreqFromStmtFreq() local
489 auto *bb = *bIt; in ConstructStmtFreq() local
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dcleanup.cpp25 static bool SkipBasicBlock(BasicBlock *bb) in SkipBasicBlock()
46 for (auto bb : GetGraph()->GetVectorBlocks()) { in RunImpl() local
81 for (auto bb : GetGraph()->GetVectorBlocks()) { in RunImpl() local
142 bool Cleanup::CheckSpecialTriangle(BasicBlock *bb) in CheckSpecialTriangle()
174 void Cleanup::RemoveDeadPhi(BasicBlock *bb, ArenaSet<BasicBlock *> *new_empty_blocks) in RemoveDeadPhi()
193 bool Cleanup::ProcessBB(BasicBlock *bb, Marker dead_mrk, ArenaSet<BasicBlock *> *new_empty_blocks) in ProcessBB()
269 for (auto bb : GetGraph()->GetBlocksRPO()) { in Dce() local
277 for (auto bb : GetGraph()->GetBlocksRPO()) { in Dce() local
392 auto bb = inst->GetBasicBlock(); in Removal() local
437 for (auto bb : GetGraph()->GetBlocksRPO()) { in BuildDominators() local
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dloop_analyzer_new_test.cpp79 for (auto bb : graph->GetBlocksRPO()) { in __anon5877e9500202() local
113 for (auto bb : graph->GetBlocksRPO()) { in __anon5877e9500302() local
147 for (auto bb : graph->GetBlocksRPO()) { in __anon5877e9500402() local
181 for (auto bb : graph->GetBlocksRPO()) { in __anon5877e9500502() local
217 auto bb = graph->GetEndBlock(); in __anon5877e9500602() local
Dcompiler_basicblock_test.cpp59 for (auto bb : graph->GetBlocksRPO()) { in __anon2db4adaf0102() local
87 for (auto bb : graph->GetBlocksRPO()) { in __anon2db4adaf0202() local
116 for (auto bb : graph->GetBlocksRPO()) { in __anon2db4adaf0302() local
191 for (auto bb : graph->GetBlocksRPO()) { in __anon2db4adaf0602() local
223 for (auto bb : graph->GetBlocksRPO()) { in __anon2db4adaf0702() local
250 auto bb = graph->GetStartBlock(); in __anon2db4adaf0802() local
277 for (auto bb : graph->GetBlocksRPO()) { in __anon2db4adaf0902() local
443 for (auto bb : graph->GetBlocksRPO()) { in __anon2db4adaf0e02() local
453 for (auto bb : graph->GetVectorBlocks()) { in __anon2db4adaf0e02() local
486 for (auto bb : graph->GetBlocksRPO()) { in __anon2db4adaf0f02() local
[all …]

123456789