MLIR  20.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 317 of file BuiltinTypes.h.

Constructor & Destructor Documentation

◆ Builder() [1/2]

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

Build from another VectorType.

Definition at line 320 of file BuiltinTypes.h.

◆ Builder() [2/2]

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

Build from scratch.

Definition at line 325 of file BuiltinTypes.h.

Member Function Documentation

◆ dropDim()

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

Erase a dim from shape @pos.

Definition at line 342 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 ( )
inline

Definition at line 357 of file BuiltinTypes.h.

References mlir::get().

◆ setDim()

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

Set a dim in shape @pos to val.

Definition at line 351 of file BuiltinTypes.h.

◆ setElementType()

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

Definition at line 336 of file BuiltinTypes.h.

◆ setShape()

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

Definition at line 329 of file BuiltinTypes.h.


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