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

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

//===----------------------------------------------------------------------===//
// NVVMOptimizeForTargetPass
//===----------------------------------------------------------------------===//
#ifdef GEN_PASS_DECL_NVVMOPTIMIZEFORTARGETPASS
std::unique_ptr<::mlir::Pass> createNVVMOptimizeForTargetPass();
#undef GEN_PASS_DECL_NVVMOPTIMIZEFORTARGETPASS
#endif // GEN_PASS_DECL_NVVMOPTIMIZEFORTARGETPASS
#ifdef GEN_PASS_DEF_NVVMOPTIMIZEFORTARGETPASS

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

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

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

  /// Returns the command-line argument attached to this pass.
  static constexpr ::llvm::StringLiteral getArgumentName() {
    return ::llvm::StringLiteral("llvm-optimize-for-nvvm-target");
  }
  ::llvm::StringRef getArgument() const override { return "llvm-optimize-for-nvvm-target"; }

  ::llvm::StringRef getDescription() const override { return R"PD(Optimize NVVM IR)PD"; }

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

  /// 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 {
    
  }

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

protected:
private:

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

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

//===----------------------------------------------------------------------===//
// NVVMOptimizeForTargetPass Registration
//===----------------------------------------------------------------------===//
#ifdef GEN_PASS_REGISTRATION_NVVMOPTIMIZEFORTARGETPASS

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

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

#undef GEN_PASS_REGISTRATION_NVVMOPTIMIZEFORTARGETPASS
#endif // GEN_PASS_REGISTRATION_NVVMOPTIMIZEFORTARGETPASS
#ifdef GEN_PASS_REGISTRATION

//===----------------------------------------------------------------------===//
// NVVM Registration
//===----------------------------------------------------------------------===//

inline void registerNVVMPasses() {
  registerNVVMOptimizeForTargetPass();
}
#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
