Class ArithFusedOp

Inheritance Relationships

Base Type

  • public mlir::Op< ArithFusedOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::NOperands< 2 >::Impl, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::mlir::OpTrait::SameTypeOperands, ::mlir::MemoryEffectOpInterface::Trait >

Class Documentation

class ArithFusedOp : public mlir::Op<ArithFusedOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::NOperands<2>::Impl, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::mlir::OpTrait::SameTypeOperands, ::mlir::MemoryEffectOpInterface::Trait>

Public Types

using Adaptor = ArithFusedOpAdaptor
template<typename RangeT>
using GenericAdaptor = ArithFusedOpGenericAdaptor<RangeT>
using FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>
using Properties = FoldAdaptor::Properties

Public Functions

inline ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames()
inline ::mlir::StringAttr getOpCodeAttrName()
inline std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index)
inline ::mlir::Operation::operand_range getODSOperands(unsigned index)
inline ::mlir::TypedValue<::mlir::Type> getAcc()
inline ::mlir::TypedValue<::mlir::Type> getVal()
inline ::mlir::OpOperand &getAccMutable()
inline ::mlir::OpOperand &getValMutable()
inline std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index)
inline ::mlir::Operation::result_range getODSResults(unsigned index)
void writeProperties(::mlir::DialectBytecodeWriter &writer)
inline ::mlir::emithls::FusedOperatorAttr getOpCodeAttr()
::mlir::emithls::FusedOperator getOpCode()
inline void setOpCodeAttr(::mlir::emithls::FusedOperatorAttr attr)
void setOpCode(::mlir::emithls::FusedOperator attrValue)
::llvm::LogicalResult verifyInvariantsImpl()
::llvm::LogicalResult verifyInvariants()
::llvm::LogicalResult verify()

Verifies an emithls::ArithFusedOp has the correct accumulator value, which must be defined as a non-constant variable.

void print(::mlir::OpAsmPrinter &_odsPrinter)
inline void getEffects(SmallVectorImpl<SideEffects::EffectInstance<MemoryEffects::Effect>> &effects)

Public Static Functions

static inline ::mlir::StringAttr getOpCodeAttrName(::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, ::mlir::emithls::FusedOperatorAttr op_code, ::mlir::Value acc, ::mlir::Value val)
static ArithFusedOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::emithls::FusedOperatorAttr op_code, ::mlir::Value acc, ::mlir::Value val)
static ArithFusedOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::emithls::FusedOperatorAttr op_code, ::mlir::Value acc, ::mlir::Value val)
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::emithls::FusedOperatorAttr op_code, ::mlir::Value acc, ::mlir::Value val)
static ArithFusedOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::emithls::FusedOperatorAttr op_code, ::mlir::Value acc, ::mlir::Value val)
static ArithFusedOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::emithls::FusedOperatorAttr op_code, ::mlir::Value acc, ::mlir::Value val)
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::emithls::FusedOperator op_code, ::mlir::Value acc, ::mlir::Value val)
static ArithFusedOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::emithls::FusedOperator op_code, ::mlir::Value acc, ::mlir::Value val)
static ArithFusedOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::emithls::FusedOperator op_code, ::mlir::Value acc, ::mlir::Value val)
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::emithls::FusedOperator op_code, ::mlir::Value acc, ::mlir::Value val)
static ArithFusedOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::emithls::FusedOperator op_code, ::mlir::Value acc, ::mlir::Value val)
static ArithFusedOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::emithls::FusedOperator op_code, ::mlir::Value acc, ::mlir::Value val)
static void build(::mlir::OpBuilder&, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {})
static ArithFusedOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {})
static ArithFusedOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {})
static void build(::mlir::OpBuilder&, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {})
static ArithFusedOp create(::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {})
static ArithFusedOp create(::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute> discardableAttributes = {})
static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)

Public Static Attributes

static constexpr int odsIndex_acc = 0
static constexpr int odsIndex_val = 1