|
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 100 of file TargetEnv.h.
|
inline |
Definition at line 102 of file TargetEnv.h.
Referenced by createTargetEnvFromAttr().
|
inline |
Definition at line 111 of file TargetEnv.h.
|
inline |
Definition at line 110 of file TargetEnv.h.
|
inline |
Definition at line 138 of file TargetEnv.h.
|
inline |
Definition at line 127 of file TargetEnv.h.
Referenced by allowsAllOf(), allowsAllOf(), allowsAnyOf(), and allowsAnyOf().
Definition at line 144 of file TargetEnv.h.
References allows().
Definition at line 133 of file TargetEnv.h.
References allows().
Referenced by TosaProfileCompliance::checkProfileOrExtension().
Definition at line 140 of file TargetEnv.h.
References allows().
Definition at line 129 of file TargetEnv.h.
References allows().
Referenced by TosaProfileCompliance::checkProfileOrExtension().
|
static |
Definition at line 65 of file TargetEnv.cpp.
References TargetEnv(), and verifyTargetInformation().
|
inline |
Definition at line 117 of file TargetEnv.h.
References mlir::tosa::TOSA_LEVEL_EIGHTK, and mlir::tosa::TOSA_LEVEL_NONE.
|
inline |
Definition at line 113 of file TargetEnv.h.
Referenced by TosaProfileCompliance::checkProfileOrExtension().
|
static |
Definition at line 74 of file TargetEnv.cpp.
References mlir::emitError(), mlir::tosa::getMinVersion(), mlir::tosa::TosaSpecificationVersion::isBackwardsCompatibleWith(), mlir::tosa::stringifyVersion(), and success().
Referenced by createTargetEnvFromAttr().