MLIR  21.0.0git
Classes | Namespaces | Macros | Functions
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

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

 mlir
 Include the generated interface declarations.
 
 mlir::tosa
 
 mlir::OpTrait
 
 mlir::OpTrait::tosa
 

Macros

#define GET_ATTRDEF_CLASSES
 
#define GET_TYPEDEF_CLASSES
 
#define GET_OP_CLASSES
 

Functions

ParseResult mlir::tosa::parseTypeOrAttr (OpAsmParser &parser, TypeAttr &typeAttr, Attribute &attr)
 
void mlir::tosa::printTypeOrAttr (OpAsmPrinter &p, Operation *op, TypeAttr type, Attribute attr)
 
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)
 

Macro Definition Documentation

◆ GET_ATTRDEF_CLASSES

#define GET_ATTRDEF_CLASSES

Definition at line 155 of file TosaOps.h.

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 161 of file TosaOps.h.

◆ GET_TYPEDEF_CLASSES

#define GET_TYPEDEF_CLASSES

Definition at line 158 of file TosaOps.h.