#ifdef GEN_PASS_DECL
#define GEN_PASS_DECL_FORMEXPRESSIONS
#undef GEN_PASS_DECL
#endif
#ifdef GEN_PASS_DECL_FORMEXPRESSIONS
#undef GEN_PASS_DECL_FORMEXPRESSIONS
#endif
#ifdef GEN_PASS_DEF_FORMEXPRESSIONS
namespace impl {
template <typename DerivedT>
class FormExpressionsBase : public ::mlir::OperationPass<> {
public:
using Base = FormExpressionsBase;
FormExpressionsBase() : ::mlir::OperationPass<>(::mlir::TypeID::get<DerivedT>()) {}
FormExpressionsBase(const FormExpressionsBase &other) : ::mlir::OperationPass<>(other) {}
FormExpressionsBase& operator=(const FormExpressionsBase &) = delete;
FormExpressionsBase(FormExpressionsBase &&) = delete;
FormExpressionsBase& operator=(FormExpressionsBase &&) = delete;
~FormExpressionsBase() = default;
static constexpr ::llvm::StringLiteral getArgumentName() {
return ::llvm::StringLiteral("form-expressions");
}
::llvm::StringRef getArgument() const override { return "form-expressions"; }
::llvm::StringRef getDescription() const override { return "Form C-style expressions from C-operator ops"; }
static constexpr ::llvm::StringLiteral getPassName() {
return ::llvm::StringLiteral("FormExpressions");
}
::llvm::StringRef getName() const override { return "FormExpressions"; }
static bool classof(const ::mlir::Pass *pass) {
return pass->getTypeID() == ::mlir::TypeID::get<DerivedT>();
}
std::unique_ptr<::mlir::Pass> clonePass() const override {
return std::make_unique<DerivedT>(*static_cast<const DerivedT *>(this));
}
void getDependentDialects(::mlir::DialectRegistry ®istry) const override {
registry.insert<emitc::EmitCDialect>();
}
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(FormExpressionsBase<DerivedT>)
protected:
private:
};
}
#undef GEN_PASS_DEF_FORMEXPRESSIONS
#endif
#ifdef GEN_PASS_REGISTRATION
inline void registerFormExpressions() { … }
inline void registerFormExpressionsPass() { … }
inline void registerEmitCPasses() { … }
#undef GEN_PASS_REGISTRATION
#endif
#ifdef GEN_PASS_CLASSES
template <typename DerivedT>
class FormExpressionsBase : public ::mlir::OperationPass<> {
public:
using Base = FormExpressionsBase;
FormExpressionsBase() : ::mlir::OperationPass<>(::mlir::TypeID::get<DerivedT>()) {}
FormExpressionsBase(const FormExpressionsBase &other) : ::mlir::OperationPass<>(other) {}
FormExpressionsBase& operator=(const FormExpressionsBase &) = delete;
FormExpressionsBase(FormExpressionsBase &&) = delete;
FormExpressionsBase& operator=(FormExpressionsBase &&) = delete;
~FormExpressionsBase() = default;
static constexpr ::llvm::StringLiteral getArgumentName() {
return ::llvm::StringLiteral("form-expressions");
}
::llvm::StringRef getArgument() const override { return "form-expressions"; }
::llvm::StringRef getDescription() const override { return "Form C-style expressions from C-operator ops"; }
static constexpr ::llvm::StringLiteral getPassName() {
return ::llvm::StringLiteral("FormExpressions");
}
::llvm::StringRef getName() const override { return "FormExpressions"; }
static bool classof(const ::mlir::Pass *pass) {
return pass->getTypeID() == ::mlir::TypeID::get<DerivedT>();
}
std::unique_ptr<::mlir::Pass> clonePass() const override {
return std::make_unique<DerivedT>(*static_cast<const DerivedT *>(this));
}
void getDependentDialects(::mlir::DialectRegistry ®istry) const override {
registry.insert<emitc::EmitCDialect>();
}
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(FormExpressionsBase<DerivedT>)
protected:
};
#undef GEN_PASS_CLASSES
#endif