Lines Matching defs:opcode

35                                     uint32_t opcode,
210 handle_instr(struct vtn_builder *b, uint32_t opcode,
225 nir_ssa_def *result = handler(b, opcode, num_srcs, srcs, src_types, dest_type);
235 enum OpenCLstd_Entrypoints opcode)
237 switch (opcode) {
284 handle_alu(struct vtn_builder *b, uint32_t opcode,
288 nir_ssa_def *ret = nir_build_alu(&b->nb, nir_alu_op_for_opencl_opcode(b, (enum OpenCLstd_Entrypoints)opcode),
290 if (opcode == OpenCLstd_Popcount)
388 static const char *remap_clc_opcode(enum OpenCLstd_Entrypoints opcode)
390 if (opcode >= (sizeof(remap_table) / sizeof(const char *)))
392 return remap_table[opcode].fn;
431 handle_clc_fn(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode,
437 const char *name = remap_clc_opcode(opcode);
446 switch (opcode) {
479 handle_special(struct vtn_builder *b, uint32_t opcode,
484 enum OpenCLstd_Entrypoints cl_opcode = (enum OpenCLstd_Entrypoints)opcode;
569 nir_ssa_def *ret = handle_clc_fn(b, opcode, num_srcs, srcs, src_types, dest_type);
577 handle_core(struct vtn_builder *b, uint32_t opcode,
583 switch ((SpvOp)opcode) {
620 _handle_v_load_store(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode,
702 vtn_handle_opencl_vload(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode,
705 _handle_v_load_store(b, opcode, w, count, true,
706 opcode == OpenCLstd_Vloada_halfn,
711 vtn_handle_opencl_vstore(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode,
714 _handle_v_load_store(b, opcode, w, count, false,
715 opcode == OpenCLstd_Vstorea_halfn,
720 vtn_handle_opencl_vstore_half_r(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode,
723 _handle_v_load_store(b, opcode, w, count, false,
724 opcode == OpenCLstd_Vstorea_halfn_r,
768 handle_printf(struct vtn_builder *b, uint32_t opcode,
840 handle_round(struct vtn_builder *b, uint32_t opcode,
855 handle_shuffle(struct vtn_builder *b, uint32_t opcode,
875 handle_shuffle2(struct vtn_builder *b, uint32_t opcode,
1096 vtn_handle_opencl_core_instruction(struct vtn_builder *b, SpvOp opcode,
1099 switch (opcode) {
1101 handle_instr(b, opcode, w + 4, count - 4, w + 1, handle_core);
1104 handle_instr(b, opcode, w + 2, count - 2, NULL, handle_core);