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);

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 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).

Other

Vector whose element count is reused.

NumElements

Minimum (or exact) number of elements.

Scalable

Whether the vector is scalable.

Created with MrDocs