MLIR  19.0.0git
Public Member Functions | List of all members
mlir::VectorType::Builder Class Reference

This is a builder type that keeps local references to arguments. More...

#include "mlir/IR/BuiltinTypes.h"

Public Member Functions

 Builder (VectorType other)
 Build from another VectorType. More...
 Builder (ArrayRef< int64_t > shape, Type elementType, ArrayRef< bool > scalableDims={})
 Build from scratch. More...
BuildersetShape (ArrayRef< int64_t > newShape, ArrayRef< bool > newIsScalableDim={})
BuildersetElementType (Type newElementType)
BuilderdropDim (unsigned pos)
 Erase a dim from shape @pos. More...
BuildersetDim (unsigned pos, int64_t val)
 Set a dim in shape @pos to val. More...
 operator VectorType ()

Detailed Description

This is a builder type that keeps local references to arguments.

Arguments that are passed into the builder must outlive the builder.

Definition at line 305 of file BuiltinTypes.h.

Constructor & Destructor Documentation

◆ Builder() [1/2]

mlir::VectorType::Builder::Builder ( VectorType  other)

Build from another VectorType.

Definition at line 308 of file BuiltinTypes.h.

◆ Builder() [2/2]

mlir::VectorType::Builder::Builder ( ArrayRef< int64_t >  shape,
Type  elementType,
ArrayRef< bool >  scalableDims = {} 

Build from scratch.

Definition at line 313 of file BuiltinTypes.h.

Member Function Documentation

◆ dropDim()

Builder& mlir::VectorType::Builder::dropDim ( unsigned  pos)

Erase a dim from shape @pos.

Definition at line 330 of file BuiltinTypes.h.

References mlir::CopyOnWriteArrayRef< T >::empty(), and mlir::CopyOnWriteArrayRef< T >::erase().

Referenced by reshapeLoad(), and reshapeStore().

◆ operator VectorType()

mlir::VectorType::Builder::operator VectorType ( )

Definition at line 345 of file BuiltinTypes.h.

References mlir::get().

◆ setDim()

Builder& mlir::VectorType::Builder::setDim ( unsigned  pos,
int64_t  val 

Set a dim in shape @pos to val.

Definition at line 339 of file BuiltinTypes.h.

◆ setElementType()

Builder& mlir::VectorType::Builder::setElementType ( Type  newElementType)

Definition at line 324 of file BuiltinTypes.h.

◆ setShape()

Builder& mlir::VectorType::Builder::setShape ( ArrayRef< int64_t >  newShape,
ArrayRef< bool >  newIsScalableDim = {} 

Definition at line 317 of file BuiltinTypes.h.

The documentation for this class was generated from the following file: