Lines Matching refs:pass_

96   uint32_t phi_result_id = pass_->context()->TakeNextId();  in CreatePhiCandidate()
107 BasicBlock* bb = pass_->context()->get_instr_block(user_id); in ReplacePhiUsersWith()
173 for (uint32_t pred : pass_->cfg()->preds(phi_candidate->bb()->id())) { in AddPhiOperands()
174 BasicBlock* pred_bb = pass_->cfg()->block(pred); in AddPhiOperands()
265 auto& predecessors = pass_->cfg()->preds(bb->id()); in GetReachingDef()
269 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
284 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
310 (void)pass_->GetPtr(inst, &var_id); in ProcessStore()
316 if (pass_->IsTargetVar(var_id)) { in ProcessStore()
318 pass_->context()->get_debug_info_mgr()->AddDebugValueIfVarDeclIsVisible( in ProcessStore()
332 (void)pass_->GetPtr(inst, &var_id); in ProcessLoad()
368 analysis::DefUseManager* def_use_mgr = pass_->context()->get_def_use_mgr(); in ProcessLoad()
369 analysis::TypeManager* type_mgr = pass_->context()->get_type_mgr(); in ProcessLoad()
374 if (!pass_->IsTargetVar(var_id)) { in ProcessLoad()
425 << phi_it.second.PrettyPrint(pass_->cfg()) << "\n"; in PrintPhiCandidates()
514 std::cerr << "Phi candidate: " << phi_candidate->PrettyPrint(pass_->cfg()) in ApplyReplacements()
522 auto* local_var = pass_->get_def_use_mgr()->GetDef(phi_candidate->var_id()); in ApplyReplacements()
525 uint32_t type_id = pass_->GetPointeeTypeId(local_var); in ApplyReplacements()
529 for (uint32_t pred_label : pass_->cfg()->preds(phi_candidate->bb()->id())) { in ApplyReplacements()
549 new Instruction(pass_->context(), SpvOpPhi, type_id, in ApplyReplacements()
552 pass_->get_def_use_mgr()->AnalyzeInstDef(&*phi_inst); in ApplyReplacements()
553 pass_->context()->set_instr_block(&*phi_inst, phi_candidate->bb()); in ApplyReplacements()
556 pass_->context()->get_decoration_mgr()->CloneDecorations( in ApplyReplacements()
562 pass_->context()->get_debug_info_mgr()->AddDebugValueIfVarDeclIsVisible( in ApplyReplacements()
573 pass_->get_def_use_mgr()->AnalyzeInstUse(&*phi_inst); in ApplyReplacements()
586 pass_->context()->get_def_use_mgr()->GetDef(load_id); in ApplyReplacements()
599 pass_->context()->KillNamesAndDecorates(load_id); in ApplyReplacements()
600 pass_->context()->ReplaceAllUsesWith(load_id, val_id); in ApplyReplacements()
601 pass_->context()->KillInst(load_inst); in ApplyReplacements()
613 for (uint32_t pred : pass_->cfg()->preds(phi_candidate->bb()->id())) { in FinalizePhiCandidate()
614 BasicBlock* pred_bb = pass_->cfg()->block(pred); in FinalizePhiCandidate()
621 : pass_->GetUndefVal(phi_candidate->var_id()); in FinalizePhiCandidate()
666 DominatorAnalysis* dom_tree = pass_->context()->GetDominatorAnalysis(fp); in AddDebugValuesForInvisibleDebugDecls()
671 auto* var = pass_->get_def_use_mgr()->GetDef(var_id); in AddDebugValuesForInvisibleDebugDecls()
674 auto* bb = pass_->context()->get_instr_block(decl); in AddDebugValuesForInvisibleDebugDecls()
677 if (value_id) value = pass_->get_def_use_mgr()->GetDef(value_id); in AddDebugValuesForInvisibleDebugDecls()
681 if (value && (pass_->context()->get_instr_block(value) == nullptr || in AddDebugValuesForInvisibleDebugDecls()
683 if (!pass_->context()->get_debug_info_mgr()->AddDebugValueForDecl( in AddDebugValuesForInvisibleDebugDecls()
692 !pass_->context()->get_debug_info_mgr()->AddDebugValueForDecl( in AddDebugValuesForInvisibleDebugDecls()
700 if (!pass_->IsTargetVar(var_id)) { in AddDebugValuesForInvisibleDebugDecls()
701 pass_->context()->get_debug_info_mgr()->KillDebugDeclares(var_id); in AddDebugValuesForInvisibleDebugDecls()
715 pass_->CollectTargetVars(fp); in RewriteFunctionIntoSSA()
719 bool succeeded = pass_->cfg()->WhileEachBlockInReversePostOrder( in RewriteFunctionIntoSSA()