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

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

#include "mlir/IR/BuiltinTypes.h"

Public Member Functions

 Builder (RankedTensorType other)
 Build from another RankedTensorType. More...
 
 Builder (ArrayRef< int64_t > shape, Type elementType, Attribute encoding)
 Build from scratch. More...
 
BuildersetShape (ArrayRef< int64_t > newShape)
 
BuildersetElementType (Type newElementType)
 
BuildersetEncoding (Attribute newEncoding)
 
BuilderdropDim (unsigned pos)
 Erase a dim from shape @pos. More...
 
BuilderinsertDim (int64_t val, unsigned pos)
 Insert a val into shape @pos. More...
 
 operator RankedTensorType ()
 

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 249 of file BuiltinTypes.h.

Constructor & Destructor Documentation

◆ Builder() [1/2]

mlir::RankedTensorType::Builder::Builder ( RankedTensorType  other)
inlineexplicit

Build from another RankedTensorType.

Definition at line 252 of file BuiltinTypes.h.

◆ Builder() [2/2]

mlir::RankedTensorType::Builder::Builder ( ArrayRef< int64_t >  shape,
Type  elementType,
Attribute  encoding 
)
inline

Build from scratch.

Definition at line 257 of file BuiltinTypes.h.

Member Function Documentation

◆ dropDim()

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

◆ insertDim()

Builder& mlir::RankedTensorType::Builder::insertDim ( int64_t  val,
unsigned  pos 
)
inline

Insert a val into shape @pos.

Definition at line 283 of file BuiltinTypes.h.

References mlir::CopyOnWriteArrayRef< T >::insert(), and mlir::CopyOnWriteArrayRef< T >::size().

◆ operator RankedTensorType()

mlir::RankedTensorType::Builder::operator RankedTensorType ( )
inline

Definition at line 289 of file BuiltinTypes.h.

References mlir::get().

◆ setElementType()

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

Definition at line 265 of file BuiltinTypes.h.

◆ setEncoding()

Builder& mlir::RankedTensorType::Builder::setEncoding ( Attribute  newEncoding)
inline

Definition at line 270 of file BuiltinTypes.h.

◆ setShape()

Builder& mlir::RankedTensorType::Builder::setShape ( ArrayRef< int64_t >  newShape)
inline

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