Lines Matching refs:bb_from
77 opt::IRContext* context, opt::BasicBlock* bb_from, opt::BasicBlock* bb_to, in PhiIdsOkForNewEdge() argument
79 if (bb_from->IsSuccessor(bb_to)) { in PhiIdsOkForNewEdge()
122 context->GetDominatorAnalysis(bb_from->GetParent()); in PhiIdsOkForNewEdge()
124 bb_from->terminator())) { in PhiIdsOkForNewEdge()
139 opt::IRContext* context, opt::BasicBlock* bb_from, opt::BasicBlock* bb_to, in AddUnreachableEdgeAndUpdateOpPhis() argument
142 assert(PhiIdsOkForNewEdge(context, bb_from, bb_to, phi_ids) && in AddUnreachableEdgeAndUpdateOpPhis()
144 assert(bb_from->terminator()->opcode() == SpvOpBranch && in AddUnreachableEdgeAndUpdateOpPhis()
156 const bool from_to_edge_already_exists = bb_from->IsSuccessor(bb_to); in AddUnreachableEdgeAndUpdateOpPhis()
157 auto successor = bb_from->terminator()->GetSingleWordInOperand(0); in AddUnreachableEdgeAndUpdateOpPhis()
162 bb_from->terminator()->SetOpcode(SpvOpBranchConditional); in AddUnreachableEdgeAndUpdateOpPhis()
163 bb_from->terminator()->SetInOperands( in AddUnreachableEdgeAndUpdateOpPhis()
179 inst.AddOperand({SPV_OPERAND_TYPE_ID, {bb_from->id()}}); in AddUnreachableEdgeAndUpdateOpPhis()