Lines Matching refs:srcs

35                                     unsigned num_srcs, nir_ssa_def **srcs,
180 nir_ssa_def **srcs, in call_mangled_function() argument
200 call->params[param_idx++] = nir_src_for_ssa(srcs[i]); in call_mangled_function()
213 nir_ssa_def *srcs[5] = { NULL }; in handle_instr() local
215 vtn_assert(num_srcs <= ARRAY_SIZE(srcs)); in handle_instr()
219 srcs[i] = ssa->def; in handle_instr()
223 nir_ssa_def *result = handler(b, opcode, num_srcs, srcs, src_types, dest_type); in handle_instr()
283 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, in handle_alu() argument
287 srcs[0], srcs[1], srcs[2], NULL); in handle_alu()
431 nir_ssa_def **srcs, in handle_clc_fn() argument
470 dest_type, srcs, &ret_deref)) in handle_clc_fn()
478 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, in handle_special() argument
487 return nir_iabs_diff(nb, srcs[0], srcs[1]); in handle_special()
489 return nir_uabs_diff(nb, srcs[0], srcs[1]); in handle_special()
491 return nir_bitselect(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
493 return nir_imad_hi(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
495 return nir_umad_hi(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
497 return nir_imul24(nb, srcs[0], srcs[1]); in handle_special()
499 return nir_umul24(nb, srcs[0], srcs[1]); in handle_special()
501 return nir_imad24(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
503 return nir_umad24(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
505 return nir_fclamp(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
507 return nir_iclamp(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
509 return nir_uclamp(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
511 return nir_copysign(nb, srcs[0], srcs[1]); in handle_special()
514 return nir_cross4(nb, srcs[0], srcs[1]); in handle_special()
515 return nir_cross3(nb, srcs[0], srcs[1]); in handle_special()
517 return nir_fdim(nb, srcs[0], srcs[1]); in handle_special()
521 return nir_fmod(nb, srcs[0], srcs[1]); in handle_special()
523 return nir_fmad(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
525 return nir_maxmag(nb, srcs[0], srcs[1]); in handle_special()
527 return nir_minmag(nb, srcs[0], srcs[1]); in handle_special()
529 return nir_nan(nb, srcs[0]); in handle_special()
531 return nir_nextafter(nb, srcs[0], srcs[1]); in handle_special()
533 return nir_normalize(nb, srcs[0]); in handle_special()
535 return nir_clz_u(nb, srcs[0]); in handle_special()
537 return nir_ctz_u(nb, srcs[0]); in handle_special()
539 return nir_select(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
543 return nir_upsample(nb, srcs[0], srcs[1]); in handle_special()
545 return nir_fexp(nb, srcs[0]); in handle_special()
547 return nir_fexp2(nb, nir_fmul_imm(nb, srcs[0], log(10) / log(2))); in handle_special()
549 return nir_flog(nb, srcs[0]); in handle_special()
551 return nir_fmul_imm(nb, nir_flog2(nb, srcs[0]), log(2) / log(10)); in handle_special()
553 return nir_ftan(nb, srcs[0]); in handle_special()
557 return nir_ldexp(nb, srcs[0], srcs[1]); in handle_special()
560 if (nb->shader->options->lower_ffma32 && srcs[0]->bit_size == 32) in handle_special()
562 return nir_ffma(nb, srcs[0], srcs[1], srcs[2]); in handle_special()
567 nir_ssa_def *ret = handle_clc_fn(b, opcode, num_srcs, srcs, src_types, dest_type); in handle_special()
576 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, in handle_core() argument
599 …on(b, "async_work_group_strided_copy", (1 << 1), num_srcs, src_types, dest_type, srcs, &ret_deref)) in handle_core()
605 …if (!call_mangled_function(b, "wait_group_events", 0, num_srcs, src_types, dest_type, srcs, &ret_d… in handle_core()
725 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, in handle_printf() argument
734 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, in handle_round() argument
737 nir_ssa_def *src = srcs[0]; in handle_round()
749 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, in handle_shuffle() argument
752 struct nir_ssa_def *input = srcs[0]; in handle_shuffle()
753 struct nir_ssa_def *mask = srcs[1]; in handle_shuffle()
769 unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, in handle_shuffle2() argument
772 struct nir_ssa_def *input0 = srcs[0]; in handle_shuffle2()
773 struct nir_ssa_def *input1 = srcs[1]; in handle_shuffle2()
774 struct nir_ssa_def *mask = srcs[2]; in handle_shuffle2()