Class PragmaStreamOp
Defined in File EmitHLSOps.h.inc
Inheritance Relationships
Base Type
public mlir::Op< PragmaStreamOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::OneOperand, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::mlir::emithls::PragmaInterface::Trait >
Class Documentation
-
class PragmaStreamOp : public mlir::Op<PragmaStreamOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::OneOperand, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::mlir::emithls::PragmaInterface::Trait>
Public Types
-
using Adaptor = PragmaStreamOpAdaptor
-
template<typename RangeT>
using GenericAdaptor = PragmaStreamOpGenericAdaptor<RangeT>
-
using FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>
-
using Properties = FoldAdaptor::Properties
Public Functions
-
inline ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames()
-
inline ::mlir::StringAttr getDepthAttrName()
-
inline std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index)
-
inline ::mlir::Operation::operand_range getODSOperands(unsigned index)
-
inline ::mlir::TypedValue<::mlir::Type> getVariable()
-
inline ::mlir::OpOperand &getVariableMutable()
-
inline std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index)
-
inline ::mlir::Operation::result_range getODSResults(unsigned index)
-
void writeProperties(::mlir::DialectBytecodeWriter &writer)
-
inline ::mlir::IntegerAttr getDepthAttr()
-
uint32_t getDepth()
-
inline void setDepthAttr(::mlir::IntegerAttr attr)
-
void setDepth(uint32_t attrValue)
-
void print(::mlir::OpAsmPrinter &p)
Prints a
emithls::PragmaStreamOpin the custom assembly syntax consumed byparse.
-
::llvm::LogicalResult verifyInvariantsImpl()
-
::llvm::LogicalResult verifyInvariants()
-
::llvm::LogicalResult verify()
Verifies a
emithls::PragmaStreamOpis well-formed.The depth must be a positive integer.
If the variable is an
ArrayType, its element type must be aStreamType.
-
inline Type getVariableType()
Public Static Functions
-
static inline ::mlir::StringAttr getDepthAttrName(::mlir::OperationName name)
-
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 ::llvm::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
-
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, Value variable, int32_t depth = 2)
Builds a
emithls::PragmaStreamOp.- Parameters:
variable – The stream variable (or array of streams) to configure.
depth – The FIFO depth for the stream channel; must be positive.
-
static PragmaStreamOp create(::mlir::OpBuilder &builder, ::mlir::Location location, Value variable, int32_t depth = 2)
-
static PragmaStreamOp create(::mlir::ImplicitLocOpBuilder &builder, Value variable, int32_t depth = 2)
-
static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Parses a
emithls::PragmaStreamOpfrom its custom assembly syntax.The expected syntax is:
`emithls.pragma_stream` `variable=` variable `(` type `)` `depth=` integer
-
static ::llvm::LogicalResult setPropertiesFromParsedAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Public Static Attributes
-
static constexpr int odsIndex_variable = 0
-
using Adaptor = PragmaStreamOpAdaptor