Home
last modified time | relevance | path

Searched refs:phi_src (Results 1 – 20 of 20) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_conditional_discard.c71 nir_foreach_phi_src(phi_src, phi) { in nir_opt_conditional_discard_block()
72 if (phi_src->pred == then_block || in nir_opt_conditional_discard_block()
73 phi_src->pred == else_block) in nir_opt_conditional_discard_block()
Dnir_lower_bool_to_bitsize.c372 nir_foreach_phi_src(phi_src, phi) { in lower_phi_instr()
373 uint32_t src_bit_size = nir_src_bit_size(phi_src->src); in lower_phi_instr()
377 assert(phi_src->src.is_ssa); in lower_phi_instr()
378 b->cursor = nir_before_src(&phi_src->src, false); in lower_phi_instr()
381 nir_build_alu(b, convert_op, phi_src->src.ssa, NULL, NULL, NULL); in lower_phi_instr()
382 nir_instr_rewrite_src(&phi->instr, &phi_src->src, in lower_phi_instr()
Dnir_opt_peephole_select.c315 nir_phi_src *phi_src = in nir_opt_collapse_if() local
318 if (phi_src->src.ssa != else_src->src.ssa) in nir_opt_collapse_if()
345 nir_phi_src *phi_src = in nir_opt_collapse_if() local
348 if (phi_src->src.ssa == else_src->src.ssa) in nir_opt_collapse_if()
349 nir_instr_rewrite_src(src->parent_instr, &phi_src->src, in nir_opt_collapse_if()
Dnir_opt_dead_cf.c99 nir_foreach_phi_src(phi_src, phi) { in opt_constant_if()
100 if (phi_src->pred != last_block) in opt_constant_if()
103 assert(phi_src->src.is_ssa); in opt_constant_if()
104 def = phi_src->src.ssa; in opt_constant_if()
Dnir_lower_shader_calls.c254 nir_phi_src *phi_src = exec_node_data(nir_phi_src, src, src); in rewrite_instr_src_from_phi_builder() local
255 block = phi_src->pred; in rewrite_instr_src_from_phi_builder()
717 nir_foreach_phi_src(phi_src, phi) { in rewrite_phis_to_pred()
718 if (phi_src->pred == pred) { in rewrite_phis_to_pred()
720 assert(phi_src->src.is_ssa); in rewrite_phis_to_pred()
721 nir_ssa_def_rewrite_uses(&phi->dest.ssa, phi_src->src.ssa); in rewrite_phis_to_pred()
Dnir_lower_regs_to_ssa.c55 nir_phi_src *phi_src = exec_node_data(nir_phi_src, src, src); in rewrite_src() local
56 block = phi_src->pred; in rewrite_src()
Dnir.c816 nir_phi_src *phi_src; in nir_phi_instr_add_src() local
818 phi_src = calloc(1, sizeof(nir_phi_src)); in nir_phi_instr_add_src()
819 phi_src->pred = pred; in nir_phi_instr_add_src()
820 phi_src->src = src; in nir_phi_instr_add_src()
821 phi_src->src.parent_instr = &instr->instr; in nir_phi_instr_add_src()
822 exec_list_push_tail(&instr->srcs, &phi_src->node); in nir_phi_instr_add_src()
824 return phi_src; in nir_phi_instr_add_src()
1175 nir_foreach_phi_src_safe(phi_src, phi) { in nir_instr_free()
1176 free(phi_src); in nir_instr_free()
1404 nir_foreach_phi_src(phi_src, phi) { in nir_foreach_phi_src_leaving_block()
[all …]
Dnir_opt_gcm.c585 nir_foreach_phi_src(phi_src, phi) { in gcm_schedule_late_def()
586 if (phi_src->src.ssa == def) in gcm_schedule_late_def()
587 lca = nir_dominance_lca(lca, phi_src->pred); in gcm_schedule_late_def()
Dnir.h2637 #define nir_foreach_phi_src(phi_src, phi) \ argument
2638 foreach_list_typed(nir_phi_src, phi_src, node, &(phi)->srcs)
2639 #define nir_foreach_phi_src_safe(phi_src, phi) \ argument
2640 foreach_list_typed_safe(nir_phi_src, phi_src, node, &(phi)->srcs)
4089 nir_foreach_phi_src(phi_src, cond_phi) { in nir_before_src()
4090 if (phi_src->src.ssa == src->ssa) { in nir_before_src()
4100 nir_phi_src *phi_src = LIST_ENTRY(nir_phi_src, src, src); in nir_before_src() local
4101 return nir_after_block_before_jump(phi_src->pred); in nir_before_src()
/third_party/mesa3d/src/amd/compiler/
Daco_lower_phis.cpp323 Temp phi_src = phi->operands[i].getTemp(); in lower_subdword_phis() local
325 assert(phi_src.regClass().type() == RegType::sgpr); in lower_subdword_phis()
326 Temp tmp = bld.tmp(RegClass(RegType::vgpr, phi_src.size())); in lower_subdword_phis()
327 insert_before_logical_end(pred, bld.copy(Definition(tmp), phi_src).get_ptr()); in lower_subdword_phis()
Daco_instruction_selection.cpp9847 std::map<unsigned, nir_ssa_def*> phi_src; in visit_phi() local
9849 phi_src[src->pred->index] = src->src.ssa; in visit_phi()
9857 for (std::pair<unsigned, nir_ssa_def*> src : phi_src) { in visit_phi()
/third_party/ltp/tools/sparse/sparse-src/
Dmemops.c31 new = phi->def->phi_src; in rewrite_load_instruction()
32 else if (new != phi->def->phi_src) in rewrite_load_instruction()
Dunssa.c90 src = def->phi_src; in replace_phi_node()
Dliveness.c113 USES(phi_src); in track_instruction_usage()
Dlinearize.h116 pseudo_t phi_src; member
Dsimplify.c121 p1 = array[0]->phi_src; in if_convert_phi()
123 p2 = array[1]->phi_src; in if_convert_phi()
215 src = def->phi_src; // bypass OP_PHISRC & get the real source in trivial_phi()
Dlinearize.c410 buf += sprintf(buf, "%s <- %s ", show_pseudo(insn->target), show_pseudo(insn->phi_src)); in show_instruction()
841 use_pseudo(insn, pseudo, &insn->phi_src); in alloc_phisrc()
/third_party/ltp/tools/sparse/sparse-src/Documentation/
DIR.rst381 * .phi_src: operand (type must be compatible with .target, alias .src)
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_ngg.c806 nir_foreach_phi_src_safe(phi_src, phi) { in analyze_shader_before_culling_walk()
807 analyze_shader_before_culling_walk(phi_src->src.ssa, flag, nogs_state); in analyze_shader_before_culling_walk()
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c522 LLVMValueRef phi_src[2]; in exit_waterfall() local
536 phi_src[0] = LLVMGetUndef(LLVMTypeOf(value)); in exit_waterfall()
537 phi_src[1] = value; in exit_waterfall()
539 ret = ac_build_phi(&ctx->ac, LLVMTypeOf(value), 2, phi_src, wctx->phi_bb); in exit_waterfall()