• Home
  • Raw
  • Download

Lines Matching refs:vtn_builder

40 struct vtn_builder;
43 void vtn_log(struct vtn_builder *b, enum nir_spirv_debug_level level,
46 void vtn_logf(struct vtn_builder *b, enum nir_spirv_debug_level level,
51 void _vtn_warn(struct vtn_builder *b, const char *file, unsigned line,
55 void _vtn_err(struct vtn_builder *b, const char *file, unsigned line,
80 _vtn_fail(struct vtn_builder *b, const char *file, unsigned line,
288 typedef bool (*vtn_instruction_handler)(struct vtn_builder *, SpvOp,
291 void vtn_build_cfg(struct vtn_builder *b, const uint32_t *words,
293 void vtn_function_emit(struct vtn_builder *b, struct vtn_function *func,
295 void vtn_handle_function_call(struct vtn_builder *b, SpvOp opcode,
299 vtn_foreach_instruction(struct vtn_builder *b, const uint32_t *start,
442 bool vtn_type_contains_block(struct vtn_builder *b, struct vtn_type *type);
444 bool vtn_types_compatible(struct vtn_builder *b,
577 vtn_type_get_nir_type(struct vtn_builder *b, struct vtn_type *type,
632 struct vtn_builder { struct
728 vtn_pointer_to_ssa(struct vtn_builder *b, struct vtn_pointer *ptr); argument
730 vtn_pointer_from_ssa(struct vtn_builder *b, nir_ssa_def *ssa,
734 vtn_untyped_value(struct vtn_builder *b, uint32_t value_id) in vtn_untyped_value()
746 vtn_push_value(struct vtn_builder *b, uint32_t value_id, in vtn_push_value()
765 vtn_value(struct vtn_builder *b, uint32_t value_id, in vtn_value()
775 vtn_set_instruction_result_type(struct vtn_builder *b, SpvOp opcode,
779 vtn_constant_uint(struct vtn_builder *b, uint32_t value_id) in vtn_constant_uint()
797 vtn_constant_int(struct vtn_builder *b, uint32_t value_id) in vtn_constant_int()
815 vtn_get_value_type(struct vtn_builder *b, uint32_t value_id) in vtn_get_value_type()
823 vtn_get_type(struct vtn_builder *b, uint32_t value_id) in vtn_get_type()
828 struct vtn_ssa_value *vtn_ssa_value(struct vtn_builder *b, uint32_t value_id);
829 struct vtn_value *vtn_push_ssa_value(struct vtn_builder *b, uint32_t value_id,
832 nir_ssa_def *vtn_get_nir_ssa(struct vtn_builder *b, uint32_t value_id);
833 struct vtn_value *vtn_push_nir_ssa(struct vtn_builder *b, uint32_t value_id,
836 struct vtn_value *vtn_push_pointer(struct vtn_builder *b,
845 nir_ssa_def *vtn_sampled_image_to_nir_ssa(struct vtn_builder *b,
849 vtn_copy_value(struct vtn_builder *b, uint32_t src_value_id,
852 struct vtn_ssa_value *vtn_create_ssa_value(struct vtn_builder *b,
855 struct vtn_ssa_value *vtn_ssa_transpose(struct vtn_builder *b,
858 nir_deref_instr *vtn_nir_deref(struct vtn_builder *b, uint32_t id);
860 nir_deref_instr *vtn_pointer_to_deref(struct vtn_builder *b,
863 vtn_pointer_to_offset(struct vtn_builder *b, struct vtn_pointer *ptr,
867 vtn_get_call_payload_for_location(struct vtn_builder *b, uint32_t location_id);
870 vtn_local_load(struct vtn_builder *b, nir_deref_instr *src,
873 void vtn_local_store(struct vtn_builder *b, struct vtn_ssa_value *src,
878 vtn_variable_load(struct vtn_builder *b, struct vtn_pointer *src,
881 void vtn_variable_store(struct vtn_builder *b, struct vtn_ssa_value *src,
884 void vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
888 typedef void (*vtn_decoration_foreach_cb)(struct vtn_builder *,
894 void vtn_foreach_decoration(struct vtn_builder *b, struct vtn_value *value,
897 typedef void (*vtn_execution_mode_foreach_cb)(struct vtn_builder *,
902 void vtn_foreach_execution_mode(struct vtn_builder *b, struct vtn_value *value,
905 nir_op vtn_nir_alu_op_for_spirv_opcode(struct vtn_builder *b,
909 void vtn_handle_alu(struct vtn_builder *b, SpvOp opcode,
912 void vtn_handle_bitcast(struct vtn_builder *b, const uint32_t *w,
915 void vtn_handle_subgroup(struct vtn_builder *b, SpvOp opcode,
918 bool vtn_handle_glsl450_instruction(struct vtn_builder *b, SpvOp ext_opcode,
921 bool vtn_handle_opencl_instruction(struct vtn_builder *b, SpvOp ext_opcode,
923 bool vtn_handle_opencl_core_instruction(struct vtn_builder *b, SpvOp opcode,
926 struct vtn_builder* vtn_create_builder(const uint32_t *words, size_t word_count,
930 void vtn_handle_entry_point(struct vtn_builder *b, const uint32_t *w,
933 void vtn_handle_decoration(struct vtn_builder *b, SpvOp opcode,
936 enum vtn_variable_mode vtn_storage_class_to_mode(struct vtn_builder *b,
941 nir_address_format vtn_mode_to_address_format(struct vtn_builder *b,
944 nir_rounding_mode vtn_rounding_mode_to_nir(struct vtn_builder *b,
960 bool vtn_handle_amd_gcn_shader_instruction(struct vtn_builder *b, SpvOp ext_opcode,
963 bool vtn_handle_amd_shader_ballot_instruction(struct vtn_builder *b, SpvOp ext_opcode,
966 bool vtn_handle_amd_shader_trinary_minmax_instruction(struct vtn_builder *b, SpvOp ext_opcode,
969 bool vtn_handle_amd_shader_explicit_vertex_parameter_instruction(struct vtn_builder *b,
976 void vtn_emit_memory_barrier(struct vtn_builder *b, SpvScope scope,