Skip to content

Commit

Permalink
TypeSize.h: add integral constructor to ElementCount
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed Nov 2, 2021
1 parent 9c1d22f commit 3f0e3cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/llvm/Support/TypeSize.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ class ElementCount : public LinearPolySize<ElementCount> {

ElementCount(const LinearPolySize<ElementCount> &V) : LinearPolySize(V) {}

ElementCount(unsigned Size, bool IsScalable = false)
: LinearPolySize(get(Size, IsScalable)) {}

/// Counting predicates.
///
///@{ Number of elements..
Expand Down

0 comments on commit 3f0e3cb

Please sign in to comment.