|
MLIR 23.0.0git
|
This class represents the capability enabled in the target implementation such as profile, extension, and level. More...
#include "mlir/Dialect/Tosa/IR/TargetEnv.h"
Public Member Functions | |
| TargetEnv () | |
| void | addProfile (Profile p) |
| void | addExtension (Extension e) |
| TosaSpecificationVersion | getSpecVersion () const |
| TosaLevel | getLevel () const |
| bool | allows (Profile prof) const |
| bool | allowsAnyOf (ArrayRef< Profile > profs) const |
| bool | allowsAllOf (ArrayRef< Profile > profs) const |
| bool | allows (Extension ext) const |
| bool | allowsAnyOf (ArrayRef< Extension > exts) const |
| bool | allowsAllOf (ArrayRef< Extension > exts) const |
Static Public Member Functions | |
| static FailureOr< TargetEnv > | createTargetEnvFromAttr (TargetEnvAttr targetAttr, Location targetEnvAttrLoc) |
| static LogicalResult | verifyTargetInformation (TargetEnvAttr targetAttr, Location targetAttrLoc) |
This class represents the capability enabled in the target implementation such as profile, extension, and level.
It's a wrapper class around tosa::TargetEnvAttr.
Definition at line 117 of file TargetEnv.h.
|
inline |
Definition at line 119 of file TargetEnv.h.
Referenced by createTargetEnvFromAttr().
|
inline |
Definition at line 128 of file TargetEnv.h.
|
inline |
Definition at line 127 of file TargetEnv.h.
|
inline |
Definition at line 155 of file TargetEnv.h.
|
inline |
Definition at line 144 of file TargetEnv.h.
Referenced by allowsAllOf(), allowsAllOf(), allowsAnyOf(), and allowsAnyOf().
Definition at line 161 of file TargetEnv.h.
References allows().
Definition at line 150 of file TargetEnv.h.
References allows().
Referenced by TosaProfileCompliance::checkProfileOrExtension().
Definition at line 157 of file TargetEnv.h.
References allows().
Definition at line 146 of file TargetEnv.h.
References allows().
Referenced by TosaProfileCompliance::checkProfileOrExtension().
|
static |
Definition at line 92 of file TargetEnv.cpp.
References TargetEnv(), and verifyTargetInformation().
|
inline |
Definition at line 134 of file TargetEnv.h.
References mlir::tosa::TOSA_LEVEL_EIGHTK, and mlir::tosa::TOSA_LEVEL_NONE.
|
inline |
Definition at line 130 of file TargetEnv.h.
Referenced by TosaProfileCompliance::checkProfileOrExtension().
|
static |
Definition at line 101 of file TargetEnv.cpp.
References mlir::emitError(), mlir::tosa::getCooperativeProfiles(), mlir::tosa::getMinVersion(), mlir::tosa::TosaSpecificationVersion::isBackwardsCompatibleWith(), mlir::tosa::stringifyVersion(), and success().
Referenced by createTargetEnvFromAttr().