Introduce new types for fixed width and scalable vectors.
Does not remove getNumElements yet so as to not break code during transition
period.
Differential D77587
[SVE] Add new VectorType subclasses ctetreau on Apr 6 2020, 2:24 PM. Authored by
Details Introduce new types for fixed width and scalable vectors. Does not remove getNumElements yet so as to not break code during transition
Diff Detail
Event TimelineComment Actions If I'm following correctly, this should apply on its own. Then you're expecting the following API changes:
Does that sound right?
Comment Actions This is basically the plan:
Comment Actions Move getMinNumElements to ScalableVectorType. There's no reason for it to be in base VectorType Comment Actions Looks right, generally.
Comment Actions Thanks for this patch @ctetreau! Overall looks great to me, just two little nits.
|
Adding LLVMFixedVectorTypeKind and LLVMScalableVectorTypeKind without removing LLVMVectorTypeKind does't make sense.