get overloads

Synopses

Declared in <llvm/IR/DerivedTypes.h>

This static method is the primary way to construct a VectorType.

static
VectorType*
get(
    Type* ElementType,
    ElementCount EC);

Get or create a scalable vector type with the given element type and min length.

static
ScalableVectorType*
get(
    Type* ElementType,
    unsigned int MinNumElts);

Get a scalable vector with ElementType and the same min length as SVTy.

static
ScalableVectorType*
get(
    Type* ElementType,
    ScalableVectorType const* SVTy);

Construct a VectorType with ElementType and the same count as Other.

static
VectorType*
get(
    Type* ElementType,
    VectorType const* Other);

Construct a VectorType from an element type, count, and scalability flag.

static
VectorType*
get(
    Type* ElementType,
    unsigned int NumElements,
    bool Scalable);

Return Value

  • The uniqued VectorType for the given element type and count.

  • The uniqued ScalableVectorType for the given shape.

  • The uniqued ScalableVectorType matching SVTy's min length.

  • The uniqued VectorType matching Other's element count.

  • The uniqued VectorType for the given shape.

Parameters

Name

Description

ElementType

Element type of the vector.

EC

Element count (fixed or scalable).

MinNumElts

Minimum number of elements (vscale multiple).

SVTy

Scalable vector whose minimum element count is reused.

Other

Vector whose element count is reused.

NumElements

Minimum (or exact) number of elements.

Scalable

Whether the vector is scalable.

Created with MrDocs