#ifndef MLIR_DIALECT_ASYNC_PASSES_H_
#define MLIR_DIALECT_ASYNC_PASSES_H_
#include "mlir/Pass/Pass.h"
namespace mlir {
class ModuleOp;
class ConversionTarget;
#define GEN_PASS_DECL
#include "mlir/Dialect/Async/Passes.h.inc"
std::unique_ptr<Pass> createAsyncParallelForPass();
std::unique_ptr<Pass> createAsyncParallelForPass(bool asyncDispatch,
int32_t numWorkerThreads,
int32_t minTaskSize);
void populateAsyncFuncToAsyncRuntimeConversionPatterns(
RewritePatternSet &patterns, ConversionTarget &target);
std::unique_ptr<OperationPass<ModuleOp>> createAsyncFuncToAsyncRuntimePass();
std::unique_ptr<OperationPass<ModuleOp>> createAsyncToAsyncRuntimePass();
std::unique_ptr<Pass> createAsyncRuntimeRefCountingPass();
std::unique_ptr<Pass> createAsyncRuntimeRefCountingOptPass();
std::unique_ptr<Pass> createAsyncRuntimePolicyBasedRefCountingPass();
#define GEN_PASS_REGISTRATION
#include "mlir/Dialect/Async/Passes.h.inc"
}
#endif