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

Method enforceVectorTypeIff

ir/type.cpp:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157expr 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
165expr Type::enforceVectorTypeSameChildTy(const Type &other) const {
166 if (auto agg = getAsAggregateType())

Callers 2

getTypeConstraintsMethod · 0.80

Calls 3

getAsAggregateTypeMethod · 0.80
numElementsMethod · 0.80
enforceVectorTypeMethod · 0.80

Tested by

no test coverage detected