| 155 | } |
| 156 | |
| 157 | expr Type::enforceVectorTypeIff(const Type &other) const { |
| 158 | expr elems = false; |
| 159 | if (auto agg = getAsAggregateType()) |
| 160 | if (auto agg2 = other.getAsAggregateType()) |
| 161 | elems = agg->numElements() == agg2->numElements(); |
| 162 | return !other.enforceVectorType() || (enforceVectorType() && elems); |
| 163 | } |
| 164 | |
| 165 | expr Type::enforceVectorTypeSameChildTy(const Type &other) const { |
| 166 | if (auto agg = getAsAggregateType()) |
no test coverage detected