Lines Matching refs:target
143 // Add a target to the target list in the first non-null position from the end.
144 // This might have to extend the target list if there is no free spot.
145 size_t AddTarget(std::vector<BasicBlock*>& targets, BasicBlock* target) {
147 targets.push_back(target);
156 targets[i] = target;
160 // If the target is not a fallthrough, add i to the target list in the first
161 // non-null position from the end. This might have to extend the target list if
164 bool AddTargetIfNotNext(std::vector<BasicBlock*>& targets, BasicBlock* target,
167 if (next_block == target) return false;
168 size_t index = AddTarget(targets, target);
224 loop_headers_.insert(block->control_node()->Cast<JumpLoop>()->target());
240 BasicBlock* target = node->Cast<JumpLoop>()->target();
241 std::replace(targets_.begin(), targets_.end(), target,
245 node->Cast<UnconditionalControlNode>()->target(),
280 // the target.
440 BasicBlock* target = control_node->Cast<JumpLoop>()->target();
442 PrintVerticalArrows(os_, targets_, {}, {target}, true);
445 std::replace(targets_.begin(), targets_.end(), target,
449 BasicBlock* target =
450 control_node->Cast<UnconditionalControlNode>()->target();
453 has_fallthrough |= !AddTargetIfNotNext(targets_, target, state.next_block(),
482 BasicBlock* target =
483 control_node->Cast<UnconditionalControlNode>()->target();
484 if (target->has_phi()) {
491 for (Phi* phi : *target->phis()) {