Class PushMemRefOp
Defined in File DFGOps.h.inc
Inheritance Relationships
Base Type
public mlir::Op< PushMemRefOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::NOperands< 2 >::Impl, ::mlir::OpTrait::OpInvariants >
Class Documentation
-
class PushMemRefOp : public mlir::Op<PushMemRefOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::NOperands<2>::Impl, ::mlir::OpTrait::OpInvariants>
Public Types
-
using Adaptor = PushMemRefOpAdaptor
-
template<typename RangeT>
using GenericAdaptor = PushMemRefOpGenericAdaptor<RangeT>
-
using FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>
-
using Properties = FoldAdaptor::Properties
Public Functions
-
inline ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames()
-
inline std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index)
-
inline ::mlir::Operation::operand_range getODSOperands(unsigned index)
-
inline ::mlir::TypedValue<::mlir::MemRefType> getTokenMemref()
-
inline ::mlir::OpOperand &getTokenMemrefMutable()
-
inline ::mlir::OpOperand &getWritePortMutable()
-
inline std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index)
-
inline ::mlir::Operation::result_range getODSResults(unsigned index)
-
void print(::mlir::OpAsmPrinter &p)
Prints a
dfg::PushMemRefOpin the custom assembly syntax consumed byparse.Emits
tokenMemref to writePort : portType.
-
::llvm::LogicalResult verifyInvariantsImpl()
-
::llvm::LogicalResult verifyInvariants()
Public Static Functions
-
static inline constexpr ::llvm::StringLiteral getOperationName()
-
static ::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
-
static ::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
-
static llvm::hash_code computePropertiesHash(const Properties &prop)
-
static std::optional<mlir::Attribute> getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
-
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
-
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
-
static ::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
-
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, Value tokenMemRef, Value writePort)
Builds a
dfg::PushMemRefOpthat writes a ranked memref to a shaped port.- Parameters:
tokenMemref – The ranked-memref value to write.
writePort – The shaped
dfg::InputTypeport to write to.
-
static PushMemRefOp create(::mlir::OpBuilder &builder, ::mlir::Location location, Value tokenMemRef, Value writePort)
-
static PushMemRefOp create(::mlir::ImplicitLocOpBuilder &builder, Value tokenMemRef, Value writePort)
-
static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Parses a
dfg::PushMemRefOpfrom its custom assembly syntax.The expected syntax is:
`dfg.push_memref` %tokenMemref `to` %writePort `:` port-type
The memref token type is resolved as a
MemRefTypederived from the port’s shape and element type and is not written explicitly.
-
static ::llvm::LogicalResult setPropertiesFromParsedAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
-
using Adaptor = PushMemRefOpAdaptor