Skip to content

Commit dcbe91d

Browse files
committed
Allow comparing vector types
1 parent 6fdab49 commit dcbe91d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gcc/jit/jit-recording.h

+9
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,15 @@ class vector_type : public decorated_type
882882

883883
void replay_into (replayer *) final override;
884884

885+
virtual bool is_same_type_as (type *other)
886+
{
887+
vector_type *other_vec_type = other->dyn_cast_vector_type ();
888+
if (other_vec_type == NULL)
889+
return false;
890+
return get_num_units () == other_vec_type->get_num_units () &&
891+
get_element_type () == other_vec_type->get_element_type ();
892+
}
893+
885894
vector_type *is_vector () final override { return this; }
886895

887896
private:

0 commit comments

Comments
 (0)