Home
last modified time | relevance | path

Searched refs:dominator (Results 1 – 6 of 6) sorted by relevance

/arkcompiler/runtime_core/compiler/tests/
Ddom_tree_test.cpp23 void CheckImmediateDominators(BasicBlock *dominator, const std::set<BasicBlock *> &&expected) in CheckImmediateDominators() argument
25 ASSERT_EQ(dominator->GetDominatedBlocks().size(), expected.size()); in CheckImmediateDominators()
27 for (auto block : dominator->GetDominatedBlocks()) { in CheckImmediateDominators()
28 EXPECT_EQ(block->GetDominator(), dominator); in CheckImmediateDominators()
43 void CheckListDominators(BasicBlock *dominator, const std::vector<BasicBlock *> &&expected) in CheckListDominators() argument
46 EXPECT_EQ(dominator->IsDominate(dom), Condition); in CheckListDominators()
/arkcompiler/runtime_core/compiler/optimizer/analysis/
Ddominators_tree.cpp181 void DominatorsTree::SetDomPair(BasicBlock *dominator, BasicBlock *block) in SetDomPair() argument
183 block->SetDominator(dominator); in SetDomPair()
184 dominator->AddDominatedBlock(block); in SetDomPair()
Ddominators_tree.h46 static void SetDomPair(BasicBlock *dominator, BasicBlock *block);
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dgraph.cpp257 auto dominator = block->GetDominator(); in FinishBlockRemoval() local
258 if (dominator != nullptr) { in FinishBlockRemoval()
259 dominator->RemoveDominatedBlock(block); in FinishBlockRemoval()
262 dominator->AddDominatedBlock(dom_block); in FinishBlockRemoval()
263 dom_block->SetDominator(dominator); in FinishBlockRemoval()
Dbasicblock.cpp626 auto dominator = GetGraph()->CreateEmptyBlock(); in CreateImmediateDominator() local
630 GetDominator()->AddDominatedBlock(dominator); in CreateImmediateDominator()
631 dominator->SetDominator(GetDominator()); in CreateImmediateDominator()
633 dominator->AddDominatedBlock(this); in CreateImmediateDominator()
634 SetDominator(dominator); in CreateImmediateDominator()
635 return dominator; in CreateImmediateDominator()
Dbasicblock.h299 void SetDominator(BasicBlock *dominator) in SetDominator() argument
301 dominator_ = dominator; in SetDominator()