Lines Matching defs:lhs
350 types_equal(const struct dxil_type *lhs, const struct dxil_type *rhs);
353 type_list_equal(const struct dxil_type_list *lhs,
356 if (lhs->num_types != rhs->num_types)
358 for (unsigned i = 0; i < lhs->num_types; ++i)
359 if (!types_equal(lhs->types[i], rhs->types[i]))
365 types_equal(const struct dxil_type *lhs, const struct dxil_type *rhs)
367 if (lhs == rhs)
373 if (lhs->type != rhs->type)
377 switch (lhs->type) {
382 retval = lhs->float_bits == rhs->float_bits;
385 retval = lhs->int_bits == rhs->int_bits;
388 retval = types_equal(lhs->ptr_target_type, rhs->ptr_target_type);
392 retval = (lhs->array_or_vector_def.num_elems == rhs->array_or_vector_def.num_elems) &&
393 types_equal(lhs->array_or_vector_def.elem_type,
397 if (!types_equal(lhs->function_def.ret_type,
400 retval = type_list_equal(&lhs->function_def.args, &rhs->function_def.args);
403 retval = type_list_equal(&lhs->struct_def.elem, &rhs->struct_def.elem);