|
MLIR 23.0.0git
|
#include "mlir/Dialect/Tosa/IR/TosaProfileCompliance.h"
Public Member Functions | |
| TosaProfileCompliance () | |
| template<typename T> | |
| std::unordered_map< std::string, SmallVector< OpComplianceInfo< T > > > | getProfileComplianceMap () |
| LogicalResult | checkProfile (Operation *op, const tosa::TargetEnv &targetEnv) |
| LogicalResult | checkExtension (Operation *op, const tosa::TargetEnv &targetEnv) |
| LogicalResult | checkInvalid (Operation *op) |
| template<typename T> | |
| LogicalResult | checkProfileOrExtension (Operation *op, const tosa::TargetEnv &targetEnv, const SmallVector< ArrayRef< T > > &specDefinedProfileSet) |
| bool | isSameTypeInfo (TypeInfo a, TypeInfo b) |
| template<typename T> | |
| SmallVector< OpComplianceInfo< T > > | findMatchedEntries (Operation *op, SmallVector< OpComplianceInfo< T > > compInfo) |
| template<typename T> | |
| SmallVector< StringRef > | stringifyProfile (ArrayRef< T > profiles) |
| template<typename T> | |
| SmallVector< StringRef > | stringifyProfile (const SmallVector< ArrayRef< T > > &profileSet) |
| template<> | |
| OperationProfileComplianceMap | getProfileComplianceMap () |
| template<> | |
| OperationExtensionComplianceMap | getProfileComplianceMap () |
Static Public Member Functions | |
| static llvm::SmallString< 32 > | stringifyTypeInfo (const TypeInfo &typeInfo) |
Definition at line 125 of file TosaProfileCompliance.h.
|
explicit |
Definition at line 16 of file TosaProfileCompliance.cpp.
| LogicalResult TosaProfileCompliance::checkExtension | ( | Operation * | op, |
| const tosa::TargetEnv & | targetEnv ) |
Definition at line 575 of file TosaProfileCompliance.cpp.
References checkProfileOrExtension(), and success().
| LogicalResult TosaProfileCompliance::checkInvalid | ( | Operation * | op | ) |
Definition at line 584 of file TosaProfileCompliance.cpp.
References mlir::Operation::emitOpError(), ProfileInfoDepot::getInfo(), mlir::Operation::getName(), getProfileComplianceMap(), mlir::OperationName::getStringRef(), isSameTypeInfo(), stringifyTypeInfo(), and success().
| LogicalResult TosaProfileCompliance::checkProfile | ( | Operation * | op, |
| const tosa::TargetEnv & | targetEnv ) |
Definition at line 565 of file TosaProfileCompliance.cpp.
References checkProfileOrExtension(), and success().
| LogicalResult TosaProfileCompliance::checkProfileOrExtension | ( | Operation * | op, |
| const tosa::TargetEnv & | targetEnv, | ||
| const SmallVector< ArrayRef< T > > & | specDefinedProfileSet ) |
Definition at line 462 of file TosaProfileCompliance.cpp.
References allOf, mlir::tosa::TargetEnv::allowsAllOf(), mlir::tosa::TargetEnv::allowsAnyOf(), mlir::Operation::emitOpError(), mlir::tosa::TargetEnv::getSpecVersion(), mlir::tosa::TosaSpecificationVersion::isBackwardsCompatibleWith(), stringifyProfile(), mlir::tosa::stringifyVersion(), and success().
Referenced by checkExtension(), and checkProfile().
| SmallVector< OpComplianceInfo< T > > TosaProfileCompliance::findMatchedEntries | ( | Operation * | op, |
| SmallVector< OpComplianceInfo< T > > | compInfo ) |
Definition at line 649 of file TosaProfileCompliance.cpp.
References ProfileInfoDepot::getInfo(), and isSameTypeInfo().
|
inline |
Definition at line 132 of file TosaProfileCompliance.h.
Referenced by checkInvalid().
| OperationProfileComplianceMap TosaProfileCompliance::getProfileComplianceMap | ( | ) |
Definition at line 74 of file TosaProfileCompliance.cpp.
| OperationExtensionComplianceMap TosaProfileCompliance::getProfileComplianceMap | ( | ) |
Definition at line 80 of file TosaProfileCompliance.cpp.
Definition at line 148 of file TosaProfileCompliance.h.
References b, TypeInfo::bitWidth, TypeInfo::blockShape, TypeInfo::scaleTypeID, TypeInfo::typeID, and TypeInfo::valueTypeID.
Referenced by checkInvalid(), and findMatchedEntries().
| SmallVector< StringRef > TosaProfileCompliance::stringifyProfile | ( | ArrayRef< T > | profiles | ) |
Definition at line 697 of file TosaProfileCompliance.cpp.
Referenced by checkProfileOrExtension(), and stringifyProfile().
| SmallVector< StringRef > TosaProfileCompliance::stringifyProfile | ( | const SmallVector< ArrayRef< T > > & | profileSet | ) |
Definition at line 709 of file TosaProfileCompliance.cpp.
References stringifyProfile().
|
static |
Definition at line 722 of file TosaProfileCompliance.cpp.
References TypeInfo::bitWidth, TypeInfo::blockShape, result, TypeInfo::scaleTypeID, TypeInfo::typeID, and TypeInfo::valueTypeID.
Referenced by checkInvalid().