Describes how many elements a type holds, either fixed or scaled by vscale.
Synopsis
Declared in <llvm/Support/TypeSize.h>
class ElementCount
: public details::FixedOrScalableQuantity<ElementCount, unsigned int>
Description
Examples:
-
ElementCount::getFixed(1) : A scalar value.
-
ElementCount::getFixed(2) : A vector type holding 2 values.
-
ElementCount::getScalable(4) : A scalable vector type holding 4 values.
Base Classes
Name |
Description |
|
Common representation for a quantity that may be fixed or scaled by runtime |
Type Aliases
Name |
Description |
Scalar type used to store the fixed or scalable quantity. |
Member Functions
Name |
Description |
|
Construct a zero fixed element count. |
Round the known‐min coefficient up to the next power of two. |
|
Divide the known‐min coefficient by |
|
Return the compile‐time quantity when |
|
Returns the minimum value this quantity can represent. |
|
Returns a value X where RHS.multiplyCoefficientBy(X) will result in a value whose quantity matches our own. |
|
Add |
|
Returns true if there exists a value X where RHS.multiplyCoefficientBy(X) will result in a value whose quantity matches our own. |
|
Returns true if the quantity is not scaled by vscale. |
|
Return true if the known‐min coefficient is even. |
|
|
|
Return true if the underlying coefficient is non‐zero. |
|
Returns whether the quantity is scaled by a runtime quantity (vscale). |
|
Exactly one element. |
|
One or more elements. |
|
Return true if the known‐minimum coefficient is zero. |
|
Multiply the known‐min coefficient by |
|
Print this quantity to |
|
Return true if the quantity is non‐zero. |
|
Return true if quantity and scalable kind equal those of |
|
Return true if quantity or scalable kind differs from |
Static Member Functions
Name |
Description |
Return an element count with minimum value |
|
Return a fixed (non‐vscale) element count of |
|
Return a scalable element count with known‐minimum |
|
Return true when |
|
Return true when |
|
Return true when |
|
Return true when |
Protected Data Members
Non-Member Functions
Name |
Description |
Invoke a callback once for each lane of a vector with |
|
Build an ElementCount from loop vectorize width metadata, if present. |
|
Returns the number of vector elements for a vectorized type. |
|
Multiply |
|
Multiply |
|
Add |
|
Add |
|
Negate |
|
Subtract |
|
Subtract |
Created with MrDocs