Lines Matching refs:value_id
765 vtn_untyped_value(struct vtn_builder *b, uint32_t value_id) in vtn_untyped_value() argument
767 vtn_fail_if(value_id >= b->value_id_bound, in vtn_untyped_value()
768 "SPIR-V id %u is out-of-bounds", value_id); in vtn_untyped_value()
769 return &b->values[value_id]; in vtn_untyped_value()
776 uint32_t value_id = value - b->values; in vtn_id_for_value() local
777 … vtn_fail_if(value_id >= b->value_id_bound, "vtn_value pointer outside the range of valid values"); in vtn_id_for_value()
778 return value_id; in vtn_id_for_value()
786 vtn_push_value(struct vtn_builder *b, uint32_t value_id, in vtn_push_value() argument
789 struct vtn_value *val = vtn_untyped_value(b, value_id); in vtn_push_value()
797 value_id); in vtn_push_value()
801 return &b->values[value_id]; in vtn_push_value()
805 vtn_value(struct vtn_builder *b, uint32_t value_id, in vtn_value() argument
808 struct vtn_value *val = vtn_untyped_value(b, value_id); in vtn_value()
810 "SPIR-V id %u is the wrong kind of value", value_id); in vtn_value()
815 vtn_pointer_value(struct vtn_builder *b, uint32_t value_id) in vtn_pointer_value() argument
817 struct vtn_value *val = vtn_untyped_value(b, value_id); in vtn_pointer_value()
820 "SPIR-V id %u is the wrong kind of value", value_id); in vtn_pointer_value()
838 vtn_pointer(struct vtn_builder *b, uint32_t value_id) in vtn_pointer() argument
840 return vtn_value_to_pointer(b, vtn_pointer_value(b, value_id)); in vtn_pointer()
848 vtn_constant_uint(struct vtn_builder *b, uint32_t value_id) in vtn_constant_uint() argument
850 struct vtn_value *val = vtn_value(b, value_id, vtn_value_type_constant); in vtn_constant_uint()
854 "Expected id %u to be an integer constant", value_id); in vtn_constant_uint()
866 vtn_constant_int(struct vtn_builder *b, uint32_t value_id) in vtn_constant_int() argument
868 struct vtn_value *val = vtn_value(b, value_id, vtn_value_type_constant); in vtn_constant_int()
872 "Expected id %u to be an integer constant", value_id); in vtn_constant_int()
884 vtn_get_value_type(struct vtn_builder *b, uint32_t value_id) in vtn_get_value_type() argument
886 struct vtn_value *val = vtn_untyped_value(b, value_id); in vtn_get_value_type()
887 vtn_fail_if(val->type == NULL, "Value %u does not have a type", value_id); in vtn_get_value_type()
892 vtn_get_type(struct vtn_builder *b, uint32_t value_id) in vtn_get_type() argument
894 return vtn_value(b, value_id, vtn_value_type_type)->type; in vtn_get_type()
897 struct vtn_ssa_value *vtn_ssa_value(struct vtn_builder *b, uint32_t value_id);
898 struct vtn_value *vtn_push_ssa_value(struct vtn_builder *b, uint32_t value_id,
901 nir_ssa_def *vtn_get_nir_ssa(struct vtn_builder *b, uint32_t value_id);
902 struct vtn_value *vtn_push_nir_ssa(struct vtn_builder *b, uint32_t value_id,
906 uint32_t value_id,