| MLIR
    22.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 97 of file TargetEnv.h.
| 
 | inline | 
Definition at line 99 of file TargetEnv.h.
Referenced by createTargetEnvFromAttr().
| 
 | inline | 
Definition at line 108 of file TargetEnv.h.
| 
 | inline | 
Definition at line 107 of file TargetEnv.h.
| 
 | inline | 
Definition at line 135 of file TargetEnv.h.
| 
 | inline | 
Definition at line 124 of file TargetEnv.h.
Referenced by allowsAllOf(), and allowsAnyOf().
| 
 | inline | 
Definition at line 141 of file TargetEnv.h.
References allows().
| 
 | inline | 
Definition at line 130 of file TargetEnv.h.
References allows().
Referenced by TosaProfileCompliance::checkProfileOrExtension().
| 
 | inline | 
Definition at line 137 of file TargetEnv.h.
References allows().
| 
 | inline | 
Definition at line 126 of file TargetEnv.h.
References allows().
Referenced by TosaProfileCompliance::checkProfileOrExtension().
| 
 | static | 
Definition at line 63 of file TargetEnv.cpp.
References mlir::remark::failed(), TargetEnv(), and verifyTargetInformation().
| 
 | inline | 
Definition at line 114 of file TargetEnv.h.
References mlir::tosa::TOSA_LEVEL_EIGHTK, and mlir::tosa::TOSA_LEVEL_NONE.
| 
 | inline | 
Definition at line 110 of file TargetEnv.h.
Referenced by TosaProfileCompliance::checkProfileOrExtension().
| 
 | static | 
Definition at line 72 of file TargetEnv.cpp.
References mlir::emitError(), mlir::remark::failed(), mlir::tosa::getMinVersion(), mlir::tosa::TosaSpecificationVersion::isBackwardsCompatibleWith(), and mlir::tosa::stringifyVersion().
Referenced by createTargetEnvFromAttr().