Home
last modified time | relevance | path

Searched refs:RpoNumber (Results 1 – 25 of 34) sorted by relevance

12

/external/v8/src/compiler/
Djump-threading.cc19 ZoneVector<RpoNumber>& result;
20 ZoneStack<RpoNumber>& stack;
23 void PushIfUnvisited(RpoNumber num) { in PushIfUnvisited()
29 void Forward(RpoNumber to) { in Forward()
30 RpoNumber from = stack.top(); in Forward()
31 RpoNumber to_to = result[to.ToInt()]; in Forward()
52 RpoNumber unvisited() { return RpoNumber::FromInt(-1); } in unvisited()
53 RpoNumber onstack() { return RpoNumber::FromInt(-2); } in onstack()
57 ZoneVector<RpoNumber>& result, in ComputeForwarding()
60 ZoneStack<RpoNumber> stack(local_zone); in ComputeForwarding()
[all …]
Dinstruction.h957 class RpoNumber final {
969 static RpoNumber FromInt(int index) { return RpoNumber(index); } in FromInt()
970 static RpoNumber Invalid() { return RpoNumber(kInvalidRpoNumber); } in Invalid()
972 bool IsNext(const RpoNumber other) const { in IsNext()
978 bool operator==(RpoNumber other) const { return index_ == other.index_; }
979 bool operator!=(RpoNumber other) const { return index_ != other.index_; }
980 bool operator>(RpoNumber other) const { return index_ > other.index_; }
981 bool operator<(RpoNumber other) const { return index_ < other.index_; }
982 bool operator<=(RpoNumber other) const { return index_ <= other.index_; }
983 bool operator>=(RpoNumber other) const { return index_ >= other.index_; }
[all …]
Dframe-elider.cc51 for (RpoNumber& succ : block->successors()) { in MarkDeConstruction()
69 for (RpoNumber& succ : block->successors()) { in MarkDeConstruction()
108 for (RpoNumber& pred : block->predecessors()) { in PropagateIntoBlock()
118 for (RpoNumber& succ : block->successors()) { in PropagateIntoBlock()
131 InstructionBlock* FrameElider::InstructionBlockAt(RpoNumber rpo_number) const { in InstructionBlockAt()
Dinstruction.cc565 InstructionBlock::InstructionBlock(Zone* zone, RpoNumber rpo_number, in InstructionBlock()
566 RpoNumber loop_header, RpoNumber loop_end, in InstructionBlock()
582 last_deferred_(RpoNumber::Invalid()) {} in InstructionBlock()
585 size_t InstructionBlock::PredecessorIndexOf(RpoNumber rpo_number) const { in PredecessorIndexOf()
595 static RpoNumber GetRpo(const BasicBlock* block) { in GetRpo()
596 if (block == nullptr) return RpoNumber::Invalid(); in GetRpo()
597 return RpoNumber::FromInt(block->rpo_number()); in GetRpo()
601 static RpoNumber GetLoopEndRpo(const BasicBlock* block) { in GetLoopEndRpo()
602 if (!block->IsLoopHeader()) return RpoNumber::Invalid(); in GetLoopEndRpo()
603 return RpoNumber::FromInt(block->loop_end()->rpo_number()); in GetLoopEndRpo()
[all …]
Dregister-allocator-verifier.h241 void ValidatePendingAssessment(RpoNumber block_id, InstructionOperand op,
245 void ValidateFinalAssessment(RpoNumber block_id, InstructionOperand op,
249 void ValidateUse(RpoNumber block_id, BlockAssessments* current_assessments,
256 ZoneMap<RpoNumber, BlockAssessments*> assessments_;
257 ZoneMap<RpoNumber, DelayedAssessments*> outstanding_assessments_;
Djump-threading.h20 static bool ComputeForwarding(Zone* local_zone, ZoneVector<RpoNumber>& result,
25 static void ApplyForwarding(ZoneVector<RpoNumber>& forwarding,
Dcode-generator.h61 Label* GetLabel(RpoNumber rpo) { return &labels_[rpo.ToSize()]; } in GetLabel()
78 bool IsNextInAssemblyOrder(RpoNumber block) const;
109 void AssembleArchJump(RpoNumber target);
229 RpoNumber current_block_;
Dregister-allocator-verifier.cc304 RpoNumber current_block_id = block->rpo_number(); in CreateForBlock()
318 for (RpoNumber pred_id : block->predecessors()) { in CreateForBlock()
346 RpoNumber block_id, InstructionOperand op, in ValidatePendingAssessment()
355 ZoneSet<RpoNumber> seen(zone()); in ValidatePendingAssessment()
383 for (RpoNumber pred : origin->predecessors()) { in ValidatePendingAssessment()
438 RpoNumber block_id, InstructionOperand op, in ValidateFinalAssessment()
455 RpoNumber block_id, BlockAssessments* current_assessments, in ValidateUse()
Dinstruction-scheduler.h31 void StartBlock(RpoNumber rpo);
32 void EndBlock(RpoNumber rpo);
Dframe-elider.h31 InstructionBlock* InstructionBlockAt(RpoNumber rpo_number) const;
Dcode-generator-impl.h84 RpoNumber InputRpo(size_t index) { in InputRpo()
110 RpoNumber ToRpoNumber(InstructionOperand* op) { in ToRpoNumber()
Dmove-optimizer.cc94 for (RpoNumber& pred_id : block->predecessors()) { in Run()
328 for (RpoNumber& pred_index : block->predecessors()) { in OptimizeMerge()
350 for (RpoNumber& pred_index : block->predecessors()) { in OptimizeMerge()
427 for (RpoNumber& pred_index : block->predecessors()) { in OptimizeMerge()
Dinstruction-scheduler.cc90 void InstructionScheduler::StartBlock(RpoNumber rpo) { in StartBlock()
100 void InstructionScheduler::EndBlock(RpoNumber rpo) { in EndBlock()
Dinstruction-selector.h62 void StartBlock(RpoNumber rpo);
63 void EndBlock(RpoNumber rpo);
Dcode-generator.cc41 current_block_(RpoNumber::Invalid()), in CodeGenerator()
246 bool CodeGenerator::IsNextInAssemblyOrder(RpoNumber block) const { in IsNextInAssemblyOrder()
340 RpoNumber true_rpo = i.InputRpo(instr->InputCount() - 2); in AssembleInstruction()
341 RpoNumber false_rpo = i.InputRpo(instr->InputCount() - 1); in AssembleInstruction()
506 RpoNumber handler_rpo = i.InputRpo(instr->InputCount() - 1); in RecordCallPosition()
Dlive-range-separator.cc79 code->InstructionBlockAt(RpoNumber::FromInt(block_id)); in SplinterLiveRange()
Dinstruction-selector.cc75 sequence()->InstructionBlockAt(RpoNumber::FromInt(block->rpo_number())); in SelectInstructions()
79 StartBlock(RpoNumber::FromInt(block->rpo_number())); in SelectInstructions()
83 EndBlock(RpoNumber::FromInt(block->rpo_number())); in SelectInstructions()
90 void InstructionSelector::StartBlock(RpoNumber rpo) { in StartBlock()
101 void InstructionSelector::EndBlock(RpoNumber rpo) { in EndBlock()
750 sequence()->InstructionBlockAt(RpoNumber::FromInt(block->rpo_number())); in VisitBlock()
1580 ->InstructionBlockAt(RpoNumber::FromInt(current_block_->rpo_number())) in VisitPhi()
Dregister-allocator.cc50 RpoNumber index = block->loop_header(); in GetContainingLoop()
1667 for (const RpoNumber& succ : block->successors()) { in MeetRegisterConstraintsForLastInstructionInBlock()
1679 for (const RpoNumber& succ : block->successors()) { in MeetRegisterConstraintsForLastInstructionInBlock()
1851 for (const RpoNumber& succ : block->successors()) { in ComputeLiveOut()
2271 code()->InstructionBlockAt(RpoNumber::FromInt(block_id)); in BuildLiveRanges()
2393 for (RpoNumber pred_index : block->predecessors()) { in IntervalPredecessorsCoveredByRange()
3518 for (const RpoNumber& pred : block->predecessors()) { in ResolveControlFlow()
3734 ZoneSet<std::pair<RpoNumber, int>> done_moves(temp_zone); in CommitSpillsInDeferredBlocks()
3745 code->InstructionBlockAt(RpoNumber::FromInt(block_id)); in CommitSpillsInDeferredBlocks()
3747 for (const RpoNumber& pred : spill_block->predecessors()) { in CommitSpillsInDeferredBlocks()
[all …]
Dinstruction-selector-impl.h196 Constant(RpoNumber::FromInt(block->rpo_number()))); in Label()
Dgraph-visualizer.cc432 RpoNumber::FromInt(current->rpo_number())); in PrintSchedule()
Dregister-allocator.h621 void AddBlockRequiringSpillOperand(RpoNumber block_id) { in AddBlockRequiringSpillOperand()
Dpipeline.cc1309 ZoneVector<RpoNumber> result(temp_zone); in Run()
/external/v8/test/cctest/compiler/
Dtest-jump-threading.cc20 rpo_number_(RpoNumber::FromInt(0)), in TestCode()
25 RpoNumber rpo_number_;
81 rpo_number_ = RpoNumber::FromInt(rpo_number_.ToInt() + 1); in End()
84 return sequence_.AddImmediate(Constant(RpoNumber::FromInt(num))); in UseRpo()
89 InstructionBlock(main_zone(), rpo_number_, RpoNumber::Invalid(), in Start()
90 RpoNumber::Invalid(), deferred, false); in Start()
111 ZoneVector<RpoNumber> result(&local_zone); in VerifyForwarding()
611 ZoneVector<RpoNumber> vector(code.main_zone()); in ApplyForwarding()
613 vector.push_back(RpoNumber::FromInt(forward[i])); in ApplyForwarding()
Dtest-instruction.cc88 RpoNumber RpoFor(BasicBlock* block) { in RpoFor()
89 return RpoNumber::FromInt(block->rpo_number()); in RpoFor()
/external/v8/test/unittests/compiler/
Dinstruction-sequence-unittest.h21 typedef RpoNumber Rpo;

12