Piggy-back off of TypeSize's STRICT_FIXED_SIZE_VECTORS flag and:
- if it is defined, assert that the vector is not scalable
- if it is not defined, complain if the vector is scalable
Paths
| Differential D78576
[SVE] Make VectorType::getNumElements() complain for scalable vectors ClosedPublic Authored by ctetreau on Apr 21 2020, 10:41 AM.
Details Summary Piggy-back off of TypeSize's STRICT_FIXED_SIZE_VECTORS flag and:
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 21 2020, 12:46 PM ctetreau removed a parent revision: D77587: [SVE] Add new VectorType subclasses.Apr 22 2020, 9:33 AM Closed by commit rG3d178581ac7f: [SVE] Make VectorType::getNumElements() complain for scalable vectors (authored by ctetreau). · Explain WhyApr 23 2020, 10:48 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 259052 llvm/CMakeLists.txt
llvm/include/llvm/IR/DerivedTypes.h
|
Tiny style nit: This line seems unnecessary, as EC is already a member of VectorType.