MLIR  20.0.0git
Public Member Functions | List of all members
mlir::MemRefType::Builder Class Reference

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

#include "mlir/IR/BuiltinTypes.h"

Public Member Functions

 Builder (MemRefType other)
 
 Builder (ArrayRef< int64_t > shape, Type elementType)
 
BuildersetShape (ArrayRef< int64_t > newShape)
 
BuildersetElementType (Type newElementType)
 
BuildersetLayout (MemRefLayoutAttrInterface newLayout)
 
BuildersetMemorySpace (Attribute newMemorySpace)
 
 operator MemRefType ()
 

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

Constructor & Destructor Documentation

◆ Builder() [1/2]

mlir::MemRefType::Builder::Builder ( MemRefType  other)
inlineexplicit

Definition at line 216 of file BuiltinTypes.h.

◆ Builder() [2/2]

mlir::MemRefType::Builder::Builder ( ArrayRef< int64_t >  shape,
Type  elementType 
)
inline

Definition at line 221 of file BuiltinTypes.h.

Member Function Documentation

◆ operator MemRefType()

mlir::MemRefType::Builder::operator MemRefType ( )
inline

Definition at line 244 of file BuiltinTypes.h.

References mlir::get().

◆ setElementType()

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

Definition at line 229 of file BuiltinTypes.h.

Referenced by mlir::BaseMemRefType::cloneWith().

◆ setLayout()

Builder& mlir::MemRefType::Builder::setLayout ( MemRefLayoutAttrInterface  newLayout)
inline

◆ setMemorySpace()

Builder& mlir::MemRefType::Builder::setMemorySpace ( Attribute  newMemorySpace)
inline

◆ setShape()

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

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