MLIR 22.0.0git
TosaOps.h File Reference
#include "mlir/Bytecode/BytecodeOpInterface.h"
#include "mlir/Dialect/Quant/IR/QuantTypes.h"
#include "mlir/Dialect/Traits.h"
#include "mlir/IR/Matchers.h"
#include "mlir/IR/OpDefinition.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/Interfaces/InferTypeOpInterface.h"
#include "mlir/Interfaces/LoopLikeInterface.h"
#include "mlir/Interfaces/SideEffectInterfaces.h"
#include "mlir/Interfaces/VectorInterfaces.h"
#include "mlir/Dialect/Tosa/IR/TosaEnums.h.inc"
#include "mlir/Dialect/Tosa/IR/TosaOpsDialect.h.inc"
#include "mlir/Transforms/DialectConversion.h"
#include "mlir/Dialect/Tosa/IR/TosaAvailability.h.inc"
#include "mlir/Dialect/Tosa/IR/TosaInterfaces.h.inc"
#include "mlir/Dialect/Tosa/IR/TosaAttributes.h.inc"
#include "mlir/Dialect/Tosa/IR/TosaOpsTypesBase.h.inc"
#include "mlir/Dialect/Tosa/IR/TosaOps.h.inc"

Go to the source code of this file.

Classes

struct  mlir::tosa::detail::TosaOpInterfaceTraits
struct  mlir::tosa::detail::TosaOpInterfaceTraits::Concept
class  mlir::tosa::detail::TosaOpInterfaceTraits::Model< ConcreteOp >
class  mlir::tosa::detail::TosaOpInterfaceTraits::FallbackModel< ConcreteOp >
class  mlir::tosa::detail::TosaOpInterfaceTraits::ExternalModel< ConcreteModel, ConcreteOp >
class  mlir::tosa::TosaOp
struct  mlir::tosa::TosaOp::Trait< ConcreteOp >
struct  mlir::tosa::detail::TosaOpTrait< ConcreteOp >
class  mlir::OpTrait::tosa::MulOperandsAndResultElementType< ConcreteType >
class  mlir::OpTrait::tosa::TosaElementwiseOperator< ConcreteType >
 This class indicates that an op is tosa-elementwise (permits broadcasting, unlike Elementwise trait). More...
class  mlir::OpTrait::tosa::TosaResolvableShapeOperands< ConcreteType >
 This class verifies that tosa shape operands are compile time resolvable. More...
class  mlir::OpTrait::tosa::TosaShapeOperator< ConcreteType >
 This class indicates that op operates on tosa shape types. More...
class  mlir::OpTrait::tosa::TosaShapeOperatorWithSameRanks< ConcreteType >
 This class indicates that op operates on tosa shape types. More...

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::tosa
namespace  mlir::tosa::detail
 Implemented by ops that correspond to the Tosa specification.
namespace  mlir::OpTrait
namespace  mlir::OpTrait::tosa

Macros

#define GET_ATTRDEF_CLASSES
#define GET_TYPEDEF_CLASSES
#define GET_OP_CLASSES

Functions

ParseResult mlir::tosa::parseVariableOpTypeOrInitialValue (OpAsmParser &parser, DenseElementsAttr &varShapeAttr, TypeAttr &typeAttr, Attribute &initialValueAttr)
void mlir::tosa::printVariableOpTypeOrInitialValue (OpAsmPrinter &p, Operation *op, DenseElementsAttr varShapeAttr, TypeAttr typeAttr, Attribute initialValueAttr)
LogicalResult mlir::OpTrait::tosa::verifyTosaResolvableShapeOperands (Operation *op)
LogicalResult mlir::OpTrait::tosa::verifyTosaShapeOperator (Operation *op)
LogicalResult mlir::OpTrait::tosa::verifyTosaShapeOperatorWithSameRanks (Operation *op)
bool mlir::tosa::isa_tosa_shape_type (mlir::Type t)
std::optional< Valuemlir::tosa::createZeroPointTensor (OpBuilder &builder, Location loc, Type srcElemType, int64_t zp=0)
Value mlir::tosa::createPadConstTensor (OpBuilder &builder, Location loc, Value src, int32_t val=0)
RankedTensorType mlir::tosa::getVariableType (VariableOp variableOp)
unsigned mlir::tosa::getBitWidth (Type type)

Macro Definition Documentation

◆ GET_ATTRDEF_CLASSES

#define GET_ATTRDEF_CLASSES

Definition at line 159 of file TosaOps.h.

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 165 of file TosaOps.h.

◆ GET_TYPEDEF_CLASSES

#define GET_TYPEDEF_CLASSES

Definition at line 162 of file TosaOps.h.