MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / enforceVectorTypeSameChildTy

Method enforceVectorTypeSameChildTy

ir/type.cpp:165–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165expr Type::enforceVectorTypeSameChildTy(const Type &other) const {
166 if (auto agg = getAsAggregateType())
167 if (auto agg2 = other.getAsAggregateType())
168 return agg->getChild(0) == agg2->getChild(0);
169 return false;
170}
171
172expr Type::enforceVectorTypeEquiv(const Type &other) const {
173 return enforceVectorTypeIff(other) && other.enforceVectorTypeIff(*this);

Callers 1

getTypeConstraintsMethod · 0.80

Calls 1

getAsAggregateTypeMethod · 0.80

Tested by

no test coverage detected