1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

TypeSize.h: add integral constructor to ElementCount

This commit is contained in:
Nekotekina 2021-11-02 16:57:35 +03:00
parent 902970b075
commit 05332b78c7

View File

@ -389,6 +389,9 @@ public:
ElementCount(const LinearPolySize<ElementCount> &V) : LinearPolySize(V) {} ElementCount(const LinearPolySize<ElementCount> &V) : LinearPolySize(V) {}
ElementCount(unsigned Size, bool IsScalable = false)
: LinearPolySize(get(Size, IsScalable)) {}
/// Counting predicates. /// Counting predicates.
/// ///
///@{ Number of elements.. ///@{ Number of elements..