MLIR  21.0.0git
Public Member Functions | List of all members
mlir::tosa::TargetEnv Class Reference

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 ()
 
 TargetEnv (const SmallVectorImpl< Profile > &profiles, const SmallVectorImpl< Extension > &extensions)
 
void addProfile (Profile p)
 
void addExtension (Extension e)
 
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
 

Detailed Description

This class represents the capability enabled in the target implementation such as profile, extension, and level.

Definition at line 25 of file TargetEnv.h.

Constructor & Destructor Documentation

◆ TargetEnv() [1/2]

mlir::tosa::TargetEnv::TargetEnv ( )
inline

Definition at line 27 of file TargetEnv.h.

◆ TargetEnv() [2/2]

mlir::tosa::TargetEnv::TargetEnv ( const SmallVectorImpl< Profile > &  profiles,
const SmallVectorImpl< Extension > &  extensions 
)
inlineexplicit

Definition at line 28 of file TargetEnv.h.

Member Function Documentation

◆ addExtension()

void mlir::tosa::TargetEnv::addExtension ( Extension  e)
inline

Definition at line 38 of file TargetEnv.h.

◆ addProfile()

void mlir::tosa::TargetEnv::addProfile ( Profile  p)
inline

Definition at line 37 of file TargetEnv.h.

◆ allows() [1/2]

bool mlir::tosa::TargetEnv::allows ( Extension  ext) const
inline

Definition at line 61 of file TargetEnv.h.

◆ allows() [2/2]

bool mlir::tosa::TargetEnv::allows ( Profile  prof) const
inline

Definition at line 45 of file TargetEnv.h.

Referenced by allowsAllOf(), and allowsAnyOf().

◆ allowsAllOf() [1/2]

bool mlir::tosa::TargetEnv::allowsAllOf ( ArrayRef< Extension >  exts) const
inline

Definition at line 69 of file TargetEnv.h.

References allows().

◆ allowsAllOf() [2/2]

bool mlir::tosa::TargetEnv::allowsAllOf ( ArrayRef< Profile >  profs) const
inline

Definition at line 53 of file TargetEnv.h.

References allows().

Referenced by TosaProfileCompliance::checkProfileOrExtension().

◆ allowsAnyOf() [1/2]

bool mlir::tosa::TargetEnv::allowsAnyOf ( ArrayRef< Extension >  exts) const
inline

Definition at line 63 of file TargetEnv.h.

References allows().

◆ allowsAnyOf() [2/2]

bool mlir::tosa::TargetEnv::allowsAnyOf ( ArrayRef< Profile >  profs) const
inline

Definition at line 47 of file TargetEnv.h.

References allows().

Referenced by TosaProfileCompliance::checkProfileOrExtension().


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