llvm/tools/mlir/include/mlir/Dialect/EmitC/Transforms/Passes.h.inc

/* Autogenerated by mlir-tblgen; don't manually edit */

#ifdef GEN_PASS_DECL
// Generate declarations for all passes.
#define GEN_PASS_DECL_FORMEXPRESSIONS
#undef GEN_PASS_DECL
#endif // GEN_PASS_DECL

//===----------------------------------------------------------------------===//
// FormExpressions
//===----------------------------------------------------------------------===//
#ifdef GEN_PASS_DECL_FORMEXPRESSIONS
#undef GEN_PASS_DECL_FORMEXPRESSIONS
#endif // GEN_PASS_DECL_FORMEXPRESSIONS
#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;

  /// Returns the command-line argument attached to this pass.
  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"; }

  /// Returns the derived pass name.
  static constexpr ::llvm::StringLiteral getPassName() {
    return ::llvm::StringLiteral("FormExpressions");
  }
  ::llvm::StringRef getName() const override { return "FormExpressions"; }

  /// Support isa/dyn_cast functionality for the derived pass class.
  static bool classof(const ::mlir::Pass *pass) {
    return pass->getTypeID() == ::mlir::TypeID::get<DerivedT>();
  }

  /// A clone method to create a copy of this pass.
  std::unique_ptr<::mlir::Pass> clonePass() const override {
    return std::make_unique<DerivedT>(*static_cast<const DerivedT *>(this));
  }

  /// Return the dialect that must be loaded in the context before this pass.
  void getDependentDialects(::mlir::DialectRegistry &registry) const override {
    registry.insert<emitc::EmitCDialect>();
  }

  /// Explicitly declare the TypeID for this class. We declare an explicit private
  /// instantiation because Pass classes should only be visible by the current
  /// library.
  MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(FormExpressionsBase<DerivedT>)

protected:
private:
};
} // namespace impl
#undef GEN_PASS_DEF_FORMEXPRESSIONS
#endif // GEN_PASS_DEF_FORMEXPRESSIONS
#ifdef GEN_PASS_REGISTRATION

//===----------------------------------------------------------------------===//
// FormExpressions Registration
//===----------------------------------------------------------------------===//

inline void registerFormExpressions() {}

// Old registration code, kept for temporary backwards compatibility.
inline void registerFormExpressionsPass() {}

//===----------------------------------------------------------------------===//
// EmitC Registration
//===----------------------------------------------------------------------===//

inline void registerEmitCPasses() {}
#undef GEN_PASS_REGISTRATION
#endif // GEN_PASS_REGISTRATION
// Deprecated. Please use the new per-pass macros.
#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;

  /// Returns the command-line argument attached to this pass.
  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"; }

  /// Returns the derived pass name.
  static constexpr ::llvm::StringLiteral getPassName() {
    return ::llvm::StringLiteral("FormExpressions");
  }
  ::llvm::StringRef getName() const override { return "FormExpressions"; }

  /// Support isa/dyn_cast functionality for the derived pass class.
  static bool classof(const ::mlir::Pass *pass) {
    return pass->getTypeID() == ::mlir::TypeID::get<DerivedT>();
  }

  /// A clone method to create a copy of this pass.
  std::unique_ptr<::mlir::Pass> clonePass() const override {
    return std::make_unique<DerivedT>(*static_cast<const DerivedT *>(this));
  }

  /// Register the dialects that must be loaded in the context before this pass.
  void getDependentDialects(::mlir::DialectRegistry &registry) const override {
    registry.insert<emitc::EmitCDialect>();
  }

  /// Explicitly declare the TypeID for this class. We declare an explicit private
  /// instantiation because Pass classes should only be visible by the current
  /// library.
  MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(FormExpressionsBase<DerivedT>)

protected:
};
#undef GEN_PASS_CLASSES
#endif // GEN_PASS_CLASSES