• Home
  • Raw
  • Download

Lines Matching refs:alu

166       nir_alu_instr *alu = nir_instr_as_alu(def->parent_instr);  in mark_invariant()  local
168 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { in mark_invariant()
169 if (!mark_invariant(alu->src[i].src.ssa, state)) { in mark_invariant()
243 nir_alu_instr *alu = nir_instr_as_alu(src_var->def->parent_instr); in compute_induction_information() local
245 if (nir_op_infos[alu->op].num_inputs == 2) { in compute_induction_information()
247 biv->alu_op = alu->op; in compute_induction_information()
251 if (alu->src[i].src.ssa->parent_instr->type == nir_instr_type_load_const && in compute_induction_information()
252 alu->src[1-i].src.ssa == &phi->dest.ssa) in compute_induction_information()
253 biv->invariant = get_loop_var(alu->src[i].src.ssa, state); in compute_induction_information()
455 nir_alu_instr *alu = nir_instr_as_alu(alu_def->def->parent_instr); in calculate_iterations() local
458 assert(alu->op != nir_op_isub); in calculate_iterations()
464 nir_alu_type_get_base_type(nir_op_infos[alu->op].output_type); in calculate_iterations()
474 if (alu->op != nir_op_iadd && alu->op != nir_op_fadd) in calculate_iterations()
510 assert(nir_src_bit_size(alu->src[0].src) == in calculate_iterations()
511 nir_src_bit_size(alu->src[1].src)); in calculate_iterations()
512 unsigned bit_size = nir_src_bit_size(alu->src[0].src); in calculate_iterations()
551 nir_alu_instr *alu = nir_instr_as_alu(terminator->conditional_instr); in find_trip_count() local
556 switch (alu->op) { in find_trip_count()
563 basic_ind = get_loop_var(alu->src[0].src.ssa, state); in find_trip_count()
564 limit = get_loop_var(alu->src[1].src.ssa, state); in find_trip_count()
568 basic_ind = get_loop_var(alu->src[1].src.ssa, state); in find_trip_count()
569 limit = get_loop_var(alu->src[0].src.ssa, state); in find_trip_count()
602 basic_ind->ind->alu_def, alu, in find_trip_count()