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

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

//===----------------------------------------------------------------------===//
// PrepareForOMPOffloadPrivatizationPass
//===----------------------------------------------------------------------===//
#ifdef GEN_PASS_DECL_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS
std::unique_ptr<::mlir::Pass> createPrepareForOMPOffloadPrivatizationPass();
#undef GEN_PASS_DECL_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS
#endif // GEN_PASS_DECL_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS
#ifdef GEN_PASS_DEF_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS

namespace impl {
  std::unique_ptr<::mlir::Pass> createPrepareForOMPOffloadPrivatizationPass();
} // namespace impl
namespace impl {

template <typename DerivedT>
class PrepareForOMPOffloadPrivatizationPassBase : public ::mlir::OperationPass<ModuleOp> {
public:
  using Base = PrepareForOMPOffloadPrivatizationPassBase;

  PrepareForOMPOffloadPrivatizationPassBase() : ::mlir::OperationPass<ModuleOp>(::mlir::TypeID::get<DerivedT>()) {}
  PrepareForOMPOffloadPrivatizationPassBase(const PrepareForOMPOffloadPrivatizationPassBase &other) : ::mlir::OperationPass<ModuleOp>(other) {}
  PrepareForOMPOffloadPrivatizationPassBase& operator=(const PrepareForOMPOffloadPrivatizationPassBase &) = delete;
  PrepareForOMPOffloadPrivatizationPassBase(PrepareForOMPOffloadPrivatizationPassBase &&) = delete;
  PrepareForOMPOffloadPrivatizationPassBase& operator=(PrepareForOMPOffloadPrivatizationPassBase &&) = delete;
  ~PrepareForOMPOffloadPrivatizationPassBase() = default;

  /// Returns the command-line argument attached to this pass.
  static constexpr ::llvm::StringLiteral getArgumentName() {
    return ::llvm::StringLiteral("omp-offload-privatization-prepare");
  }
  ::llvm::StringRef getArgument() const override { return "omp-offload-privatization-prepare"; }

  ::llvm::StringRef getDescription() const override { return R"PD(Prepare OpenMP maps for privatization for deferred target tasks)PD"; }

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

  /// 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<LLVM::LLVMDialect>();
  }

  /// 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(PrepareForOMPOffloadPrivatizationPassBase<DerivedT>)

protected:
private:

  friend std::unique_ptr<::mlir::Pass> createPrepareForOMPOffloadPrivatizationPass() {
    return std::make_unique<DerivedT>();
  }
};
} // namespace impl

std::unique_ptr<::mlir::Pass> createPrepareForOMPOffloadPrivatizationPass() {
  return impl::createPrepareForOMPOffloadPrivatizationPass();
}
#undef GEN_PASS_DEF_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS
#endif // GEN_PASS_DEF_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS
#ifdef GEN_PASS_REGISTRATION
// Generate registrations for all passes.
#define GEN_PASS_REGISTRATION_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS
#endif // GEN_PASS_REGISTRATION

//===----------------------------------------------------------------------===//
// PrepareForOMPOffloadPrivatizationPass Registration
//===----------------------------------------------------------------------===//
#ifdef GEN_PASS_REGISTRATION_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS

inline void registerPrepareForOMPOffloadPrivatizationPass() {
  ::mlir::registerPass([]() -> std::unique_ptr<::mlir::Pass> {
    return createPrepareForOMPOffloadPrivatizationPass();
  });
}

// Old registration code, kept for temporary backwards compatibility.
inline void registerPrepareForOMPOffloadPrivatizationPassPass() {
  ::mlir::registerPass([]() -> std::unique_ptr<::mlir::Pass> {
    return createPrepareForOMPOffloadPrivatizationPass();
  });
}

#undef GEN_PASS_REGISTRATION_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS
#endif // GEN_PASS_REGISTRATION_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS
#ifdef GEN_PASS_REGISTRATION

//===----------------------------------------------------------------------===//
// OpenMP Registration
//===----------------------------------------------------------------------===//

inline void registerOpenMPPasses() {
  registerPrepareForOMPOffloadPrivatizationPass();
}
#undef GEN_PASS_REGISTRATION
#endif // GEN_PASS_REGISTRATION
#ifdef GEN_PASS_CLASSES
#error "GEN_PASS_CLASSES is deprecated; use per-pass macros"
#undef GEN_PASS_CLASSES
#endif // GEN_PASS_CLASSES
