MLIR 24.0.0git
TosaProfileCompliance.cpp File Reference
#include "mlir/Dialect/Tosa/IR/TosaProfileCompliance.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/raw_ostream.h"
#include "mlir/Dialect/Tosa/IR/TosaComplianceData.h.inc"

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::tosa

Macros

#define POPULATE_PROFILE_INFO_CUSTOM(tosaOp)
#define POPULATE_PROFILE_INFO_SKIP(tosaOp)
#define POPULATE_PROFILE_INFO_COMMON(tosaOp)

Functions

template<typename T>
static bool mlir::tosa::isModeSupported (const OpComplianceInfo< T > &info, const TargetEnv &targetEnv)
template<typename Range>
static bool mlir::tosa::satisfiesComplianceRequirements (const Range &entries, const TargetEnv &targetEnv)
template<typename Range>
static auto mlir::tosa::entriesAtVersion (const Range &entries, SpecificationVersion version)
template<typename Range>
static void mlir::tosa::emitModeRequirements (llvm::raw_ostream &os, const Range &entries)
template<typename ProfileRange, typename ExtensionRange>
static LogicalResult mlir::tosa::emitProfileOrExtensionError (Operation *op, const TargetEnv &targetEnv, const ProfileRange &profiles, const ExtensionRange &extensions)

Macro Definition Documentation

◆ POPULATE_PROFILE_INFO_COMMON

#define POPULATE_PROFILE_INFO_COMMON ( tosaOp)
Value:
if (isa<tosa::tosaOp##Op>(op)) { \
return populateProfileInfo(op->getOperands(), op->getResults()); \
}

◆ POPULATE_PROFILE_INFO_CUSTOM

#define POPULATE_PROFILE_INFO_CUSTOM ( tosaOp)
Value:
if (isa<tosa::tosaOp##Op>(op)) { \
return populateProfileInfo(cast<tosa::tosaOp##Op>(op)); \
}

◆ POPULATE_PROFILE_INFO_SKIP

#define POPULATE_PROFILE_INFO_SKIP ( tosaOp)
Value:
if (isa<tosa::tosaOp##Op>(op)) \
return success();
return success()