MLIR  21.0.0git
Public Member Functions | List of all members
TosaProfileCompliance Class Reference

#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< T > findMatchedProfile (Operation *op, SmallVector< OpComplianceInfo< T >> compInfo, CheckCondition &condition)
 
SmallVector< Profile > getCooperativeProfiles (Extension ext)
 
template<typename T >
SmallVector< StringRef > stringifyProfile (ArrayRef< T > profiles)
 
template<typename T >
SmallVector< StringRef > stringifyProfile (const SmallVector< ArrayRef< T >> &profileSet)
 
template<>
OperationProfileComplianceMap getProfileComplianceMap ()
 

Detailed Description

Definition at line 103 of file TosaProfileCompliance.h.

Constructor & Destructor Documentation

◆ TosaProfileCompliance()

TosaProfileCompliance::TosaProfileCompliance ( )
explicit

Definition at line 15 of file TosaProfileCompliance.cpp.

Member Function Documentation

◆ checkExtension()

LogicalResult TosaProfileCompliance::checkExtension ( Operation op,
const tosa::TargetEnv targetEnv 
)

Definition at line 476 of file TosaProfileCompliance.cpp.

◆ checkInvalid()

LogicalResult TosaProfileCompliance::checkInvalid ( Operation op)

Definition at line 485 of file TosaProfileCompliance.cpp.

References invalid.

◆ checkProfile()

LogicalResult TosaProfileCompliance::checkProfile ( Operation op,
const tosa::TargetEnv targetEnv 
)

Definition at line 466 of file TosaProfileCompliance.cpp.

◆ checkProfileOrExtension()

template<typename T >
LogicalResult TosaProfileCompliance::checkProfileOrExtension ( Operation op,
const tosa::TargetEnv targetEnv,
const SmallVector< ArrayRef< T >> &  specDefinedProfileSet 
)

◆ findMatchedProfile()

template<typename T >
SmallVector< T > TosaProfileCompliance::findMatchedProfile ( Operation op,
SmallVector< OpComplianceInfo< T >>  compInfo,
CheckCondition condition 
)

Definition at line 499 of file TosaProfileCompliance.cpp.

References ProfileInfoDepot::getInfo().

◆ getCooperativeProfiles()

SmallVector<Profile> TosaProfileCompliance::getCooperativeProfiles ( Extension  ext)
inline

Definition at line 137 of file TosaProfileCompliance.h.

◆ getProfileComplianceMap() [1/2]

template<typename T >
std::unordered_map<std::string, SmallVector<OpComplianceInfo<T> > > TosaProfileCompliance::getProfileComplianceMap ( )
inline

Definition at line 110 of file TosaProfileCompliance.h.

◆ getProfileComplianceMap() [2/2]

template<>
OperationExtensionComplianceMap TosaProfileCompliance::getProfileComplianceMap ( )

Definition at line 35 of file TosaProfileCompliance.cpp.

◆ isSameTypeInfo()

bool TosaProfileCompliance::isSameTypeInfo ( TypeInfo  a,
TypeInfo  b 
)
inline

Definition at line 126 of file TosaProfileCompliance.h.

References TypeInfo::bitWidth, and TypeInfo::typeID.

◆ stringifyProfile() [1/2]

template<typename T >
SmallVector< StringRef > TosaProfileCompliance::stringifyProfile ( ArrayRef< T >  profiles)

Definition at line 543 of file TosaProfileCompliance.cpp.

◆ stringifyProfile() [2/2]

template<typename T >
SmallVector< StringRef > TosaProfileCompliance::stringifyProfile ( const SmallVector< ArrayRef< T >> &  profileSet)

Definition at line 555 of file TosaProfileCompliance.cpp.


The documentation for this class was generated from the following files: