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:
parent
902970b075
commit
05332b78c7
@ -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..
|
||||||
|
Loading…
Reference in New Issue
Block a user