My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::DmaStartOp Class Reference

#include <Ops.h>

Inheritance diagram for mlir::DmaStartOp:
Inheritance graph
[legend]
Collaboration diagram for mlir::DmaStartOp:
Collaboration graph
[legend]

Public Member Functions

Value getSrcMemRef ()
 
unsigned getSrcMemRefRank ()
 
operand_range getSrcIndices ()
 
Value getDstMemRef ()
 
unsigned getDstMemRefRank ()
 
unsigned getSrcMemorySpace ()
 
unsigned getDstMemorySpace ()
 
operand_range getDstIndices ()
 
Value getNumElements ()
 
Value getTagMemRef ()
 
unsigned getTagMemRefRank ()
 
operand_range getTagIndices ()
 
bool isDestMemorySpaceFaster ()
 Returns true if this is a DMA from a faster memory space to a slower one. More...
 
bool isSrcMemorySpaceFaster ()
 Returns true if this is a DMA from a slower memory space to a faster one. More...
 
unsigned getFasterMemPos ()
 
void print (OpAsmPrinter &p)
 
LogicalResult verify ()
 
LogicalResult fold (ArrayRef< Attribute > cstOperands, SmallVectorImpl< OpFoldResult > &results)
 
bool isStrided ()
 
Value getStride ()
 
Value getNumElementsPerStride ()
 
- Public Member Functions inherited from mlir::Op< DmaStartOp, OpTrait::VariadicOperands, OpTrait::ZeroResult >
OperationgetOperation ()
 Return the operation that this refers to. More...
 
DmaStartOp clone ()
 Create a deep copy of this operation. More...
 
DmaStartOp cloneWithoutRegions ()
 
DialectgetDialect ()
 Return the dialect that this refers to. More...
 
RegiongetParentRegion ()
 Return the parent Region of this operation. More...
 
 Op ()
 This is a public constructor. Any op can be initialized to null. More...
 
 Op (std::nullptr_t)
 
 Op (Operation *state)
 
const void * getAsOpaquePointer () const
 Methods for supporting PointerLikeTypeTraits. More...
 
- Public Member Functions inherited from mlir::OpState
 operator bool ()
 Ops are pointer-like, so we allow implicit conversion to bool. More...
 
 operator Operation * () const
 This implicitly converts to Operation*. More...
 
OperationgetOperation ()
 Return the operation that this refers to. More...
 
OperationgetParentOp ()
 
template<typename OpTy >
OpTy getParentOfType ()
 Return the closest surrounding parent operation that is of type 'OpTy'. More...
 
MLIRContextgetContext ()
 Return the context this operation belongs to. More...
 
void print (raw_ostream &os, OpPrintingFlags flags=llvm::None)
 Print the operation to the given stream. More...
 
void dump ()
 Dump this operation. More...
 
Location getLoc ()
 The source location the operation was defined or derived from. More...
 
void setLoc (Location loc)
 
ArrayRef< NamedAttributegetAttrs ()
 Return all of the attributes on this operation. More...
 
dialect_attr_range getDialectAttrs ()
 Return a range corresponding to the dialect attributes for this operation. More...
 
dialect_attr_iterator dialect_attr_begin ()
 
dialect_attr_iterator dialect_attr_end ()
 
Attribute getAttr (StringRef name)
 Return an attribute with the specified name. More...
 
template<typename AttrClass >
AttrClass getAttrOfType (StringRef name)
 If the operation has an attribute of the specified type, return it. More...
 
void setAttr (Identifier name, Attribute value)
 
void setAttr (StringRef name, Attribute value)
 
void setAttrs (ArrayRef< NamedAttribute > attributes)
 Set the attributes held by this operation. More...
 
void setAttrs (NamedAttributeList newAttrs)
 
template<typename DialectAttrs >
void setDialectAttrs (DialectAttrs &&attrs)
 Set the dialect attributes for this operation, and preserve all dependent. More...
 
NamedAttributeList::RemoveResult removeAttr (Identifier name)
 
NamedAttributeList::RemoveResult removeAttr (StringRef name)
 
bool use_empty ()
 Return true if there are no users of any results of this operation. More...
 
void erase ()
 Remove this operation from its parent block and delete it. More...
 
InFlightDiagnostic emitOpError (const Twine &message={})
 
InFlightDiagnostic emitError (const Twine &message={})
 
InFlightDiagnostic emitWarning (const Twine &message={})
 
InFlightDiagnostic emitRemark (const Twine &message={})
 
template<typename FnT , typename RetT = detail::walkResultType<FnT>>
RetT walk (FnT &&callback)
 
- Public Member Functions inherited from mlir::OpTrait::detail::MultiOperandTraitBase< DmaStartOp, VariadicOperands >
unsigned getNumOperands ()
 Return the number of operands. More...
 
Value getOperand (unsigned i)
 Return the operand at index 'i'. More...
 
void setOperand (unsigned i, Value value)
 Set the operand at index 'i' to 'value'. More...
 
operand_iterator operand_begin ()
 Operand iterator access. More...
 
operand_iterator operand_end ()
 
operand_range getOperands ()
 
operand_type_iterator operand_type_begin ()
 Operand type access. More...
 
operand_type_iterator operand_type_end ()
 
operand_type_range getOperandTypes ()
 
- Public Member Functions inherited from mlir::FoldingHook< DmaStartOp, llvm::is_one_of< OpTrait::OneResult< DmaStartOp >, OpTrait::VariadicOperands< DmaStartOp >... >::value >
LogicalResult fold (ArrayRef< Attribute > operands, SmallVectorImpl< OpFoldResult > &results)
 

Static Public Member Functions

static void build (Builder *builder, OperationState &result, Value srcMemRef, ValueRange srcIndices, Value destMemRef, ValueRange destIndices, Value numElements, Value tagMemRef, ValueRange tagIndices, Value stride=nullptr, Value elementsPerStride=nullptr)
 
static StringRef getOperationName ()
 
static ParseResult parse (OpAsmParser &parser, OperationState &result)
 
- Static Public Member Functions inherited from mlir::Op< DmaStartOp, OpTrait::VariadicOperands, OpTrait::ZeroResult >
static constexpr bool hasTrait ()
 Return if this operation contains the provided trait. More...
 
static bool classof (Operation *op)
 Return true if this "op class" can match against the specified operation. More...
 
static ParseResult parseAssembly (OpAsmParser &parser, OperationState &result)
 
static void printAssembly (Operation *op, OpAsmPrinter &p)
 
static LogicalResult verifyInvariants (Operation *op)
 
static AbstractOperation::OperationProperties getOperationProperties ()
 
static ConcreteOpType getFromOpaquePointer (const void *pointer)
 
- Static Public Member Functions inherited from mlir::OpState
static void getCanonicalizationPatterns (OwningRewritePatternList &results, MLIRContext *context)
 
- Static Public Member Functions inherited from mlir::FoldingHook< DmaStartOp, llvm::is_one_of< OpTrait::OneResult< DmaStartOp >, OpTrait::VariadicOperands< DmaStartOp >... >::value >
static LogicalResult foldHook (Operation *op, ArrayRef< Attribute > operands, SmallVectorImpl< OpFoldResult > &results)
 

Additional Inherited Members

- Public Types inherited from mlir::Op< DmaStartOp, OpTrait::VariadicOperands, OpTrait::ZeroResult >
using ConcreteOpType = DmaStartOp
 
- Public Types inherited from mlir::OpState
using dialect_attr_iterator = Operation::dialect_attr_iterator
 A utility iterator that filters out non-dialect attributes. More...
 
using dialect_attr_range = Operation::dialect_attr_range
 
- Public Types inherited from mlir::OpTrait::detail::MultiOperandTraitBase< DmaStartOp, VariadicOperands >
using operand_iterator = Operation::operand_iterator
 
using operand_range = Operation::operand_range
 
using operand_type_iterator = Operation::operand_type_iterator
 
using operand_type_range = Operation::operand_type_range
 
- Protected Member Functions inherited from mlir::OpState
LogicalResult verify ()
 
void print (OpAsmPrinter &p)
 
 OpState (Operation *state)
 
- Protected Member Functions inherited from mlir::OpTrait::TraitBase< DmaStartOp, VariadicOperands >
OperationgetOperation ()
 Return the ultimate Operation being worked on. More...
 
- Static Protected Member Functions inherited from mlir::OpState
static ParseResult parse (OpAsmParser &parser, OperationState &result)
 
- Static Protected Member Functions inherited from mlir::OpTrait::TraitBase< DmaStartOp, VariadicOperands >
static LogicalResult verifyTrait (Operation *op)
 
static AbstractOperation::OperationProperties getTraitProperties ()
 

Member Function Documentation

◆ build()

void DmaStartOp::build ( Builder builder,
OperationState result,
Value  srcMemRef,
ValueRange  srcIndices,
Value  destMemRef,
ValueRange  destIndices,
Value  numElements,
Value  tagMemRef,
ValueRange  tagIndices,
Value  stride = nullptr,
Value  elementsPerStride = nullptr 
)
static

◆ fold()

LogicalResult DmaStartOp::fold ( ArrayRef< Attribute cstOperands,
SmallVectorImpl< OpFoldResult > &  results 
)

dma_start(memrefcast) -> dma_start

◆ getDstIndices()

operand_range mlir::DmaStartOp::getDstIndices ( )
inline

◆ getDstMemorySpace()

unsigned mlir::DmaStartOp::getDstMemorySpace ( )
inline

◆ getDstMemRef()

Value mlir::DmaStartOp::getDstMemRef ( )
inline

◆ getDstMemRefRank()

unsigned mlir::DmaStartOp::getDstMemRefRank ( )
inline

◆ getFasterMemPos()

unsigned mlir::DmaStartOp::getFasterMemPos ( )
inline

Given a DMA start operation, returns the operand position of either the source or destination memref depending on the one that is at the higher level of the memory hierarchy. Asserts failure if neither is true.

◆ getNumElements()

Value mlir::DmaStartOp::getNumElements ( )
inline

◆ getNumElementsPerStride()

Value mlir::DmaStartOp::getNumElementsPerStride ( )
inline

◆ getOperationName()

static StringRef mlir::DmaStartOp::getOperationName ( )
inlinestatic

◆ getSrcIndices()

operand_range mlir::DmaStartOp::getSrcIndices ( )
inline

◆ getSrcMemorySpace()

unsigned mlir::DmaStartOp::getSrcMemorySpace ( )
inline

◆ getSrcMemRef()

Value mlir::DmaStartOp::getSrcMemRef ( )
inline

◆ getSrcMemRefRank()

unsigned mlir::DmaStartOp::getSrcMemRefRank ( )
inline

◆ getStride()

Value mlir::DmaStartOp::getStride ( )
inline

◆ getTagIndices()

operand_range mlir::DmaStartOp::getTagIndices ( )
inline

◆ getTagMemRef()

Value mlir::DmaStartOp::getTagMemRef ( )
inline

◆ getTagMemRefRank()

unsigned mlir::DmaStartOp::getTagMemRefRank ( )
inline

◆ isDestMemorySpaceFaster()

bool mlir::DmaStartOp::isDestMemorySpaceFaster ( )
inline

Returns true if this is a DMA from a faster memory space to a slower one.

◆ isSrcMemorySpaceFaster()

bool mlir::DmaStartOp::isSrcMemorySpaceFaster ( )
inline

Returns true if this is a DMA from a slower memory space to a faster one.

◆ isStrided()

bool mlir::DmaStartOp::isStrided ( )
inline

◆ parse()

ParseResult DmaStartOp::parse ( OpAsmParser parser,
OperationState result 
)
static

◆ print()

void DmaStartOp::print ( OpAsmPrinter p)

◆ verify()

LogicalResult DmaStartOp::verify ( )

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