Files
gps/tools/local/circt/include/mlir/Dialect/Tosa/IR/TosaInterfaces.h.inc
T
2026-07-12 11:01:51 +03:00

54 lines
1.8 KiB
C++

/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|* *|
|* Interface Declarations *|
|* *|
|* Automatically generated file, do not edit! *|
|* *|
\*===----------------------------------------------------------------------===*/
/// Implemented by ops that correspond to the Tosa specification.
class TosaOp;
/// Implemented by ops that correspond to the Tosa specification.
namespace detail {
struct TosaOpInterfaceTraits {
struct Concept {
/// The methods defined by the interface.
};
template<typename ConcreteOp>
class Model : public Concept {
public:
using Interface = TosaOp;
Model() : Concept{} {}
};
template<typename ConcreteOp>
class FallbackModel : public Concept {
public:
using Interface = TosaOp;
FallbackModel() : Concept{} {}
};
template<typename ConcreteModel, typename ConcreteOp>
class ExternalModel : public FallbackModel<ConcreteModel> {
public:
using ConcreteEntity = ConcreteOp;
};
};
template <typename ConcreteOp>
struct TosaOpTrait;
} // namespace detail
class TosaOp : public ::mlir::OpInterface<TosaOp, detail::TosaOpInterfaceTraits> {
public:
using ::mlir::OpInterface<TosaOp, detail::TosaOpInterfaceTraits>::OpInterface;
template <typename ConcreteOp>
struct Trait : public detail::TosaOpTrait<ConcreteOp> {};
};
namespace detail {
template <typename ConcreteOp>
struct TosaOpTrait : public ::mlir::OpInterface<TosaOp, detail::TosaOpInterfaceTraits>::Trait<ConcreteOp> {
};
} // namespace detail