Lines Matching refs:vtn_builder
39 struct vtn_builder;
42 void vtn_log(struct vtn_builder *b, enum nir_spirv_debug_level level,
45 void vtn_logf(struct vtn_builder *b, enum nir_spirv_debug_level level,
50 void _vtn_warn(struct vtn_builder *b, const char *file, unsigned line,
74 void _vtn_fail(struct vtn_builder *b, const char *file, unsigned line,
231 typedef bool (*vtn_instruction_handler)(struct vtn_builder *, uint32_t,
234 void vtn_build_cfg(struct vtn_builder *b, const uint32_t *words,
236 void vtn_function_emit(struct vtn_builder *b, struct vtn_function *func,
240 vtn_foreach_instruction(struct vtn_builder *b, const uint32_t *start,
368 bool vtn_types_compatible(struct vtn_builder *b,
530 struct vtn_builder { struct
586 vtn_pointer_to_ssa(struct vtn_builder *b, struct vtn_pointer *ptr); argument
588 vtn_pointer_from_ssa(struct vtn_builder *b, nir_ssa_def *ssa,
592 vtn_untyped_value(struct vtn_builder *b, uint32_t value_id) in vtn_untyped_value()
600 vtn_push_value(struct vtn_builder *b, uint32_t value_id, in vtn_push_value()
614 vtn_push_ssa(struct vtn_builder *b, uint32_t value_id, in vtn_push_ssa()
629 vtn_value(struct vtn_builder *b, uint32_t value_id, in vtn_value()
639 vtn_set_instruction_result_type(struct vtn_builder *b, SpvOp opcode,
642 struct vtn_ssa_value *vtn_ssa_value(struct vtn_builder *b, uint32_t value_id);
644 struct vtn_ssa_value *vtn_create_ssa_value(struct vtn_builder *b,
647 struct vtn_ssa_value *vtn_ssa_transpose(struct vtn_builder *b,
650 nir_ssa_def *vtn_vector_extract(struct vtn_builder *b, nir_ssa_def *src,
652 nir_ssa_def *vtn_vector_extract_dynamic(struct vtn_builder *b, nir_ssa_def *src,
654 nir_ssa_def *vtn_vector_insert(struct vtn_builder *b, nir_ssa_def *src,
656 nir_ssa_def *vtn_vector_insert_dynamic(struct vtn_builder *b, nir_ssa_def *src,
659 nir_deref_var *vtn_nir_deref(struct vtn_builder *b, uint32_t id);
661 struct vtn_pointer *vtn_pointer_for_variable(struct vtn_builder *b,
665 nir_deref_var *vtn_pointer_to_deref(struct vtn_builder *b,
668 vtn_pointer_to_offset(struct vtn_builder *b, struct vtn_pointer *ptr,
671 struct vtn_ssa_value *vtn_local_load(struct vtn_builder *b, nir_deref_var *src);
673 void vtn_local_store(struct vtn_builder *b, struct vtn_ssa_value *src,
677 vtn_variable_load(struct vtn_builder *b, struct vtn_pointer *src);
679 void vtn_variable_store(struct vtn_builder *b, struct vtn_ssa_value *src,
682 void vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
686 typedef void (*vtn_decoration_foreach_cb)(struct vtn_builder *,
692 void vtn_foreach_decoration(struct vtn_builder *b, struct vtn_value *value,
695 typedef void (*vtn_execution_mode_foreach_cb)(struct vtn_builder *,
700 void vtn_foreach_execution_mode(struct vtn_builder *b, struct vtn_value *value,
703 nir_op vtn_nir_alu_op_for_spirv_opcode(struct vtn_builder *b,
707 void vtn_handle_alu(struct vtn_builder *b, SpvOp opcode,
710 bool vtn_handle_glsl450_instruction(struct vtn_builder *b, uint32_t ext_opcode,