1 //===- Passes.h - Async pass entry points -----------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This header file defines prototypes that expose pass constructors. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef MLIR_DIALECT_ASYNC_PASSES_H_ 14 #define MLIR_DIALECT_ASYNC_PASSES_H_ 15 16 #include "mlir/Pass/Pass.h" 17 18 namespace mlir { 19 20 std::unique_ptr<OperationPass<FuncOp>> createAsyncParallelForPass(); 21 22 std::unique_ptr<OperationPass<FuncOp>> 23 createAsyncParallelForPass(int numWorkerThreads); 24 25 std::unique_ptr<OperationPass<FuncOp>> createAsyncRefCountingPass(); 26 27 std::unique_ptr<OperationPass<FuncOp>> createAsyncRefCountingOptimizationPass(); 28 29 //===----------------------------------------------------------------------===// 30 // Registration 31 //===----------------------------------------------------------------------===// 32 33 /// Generate the code for registering passes. 34 #define GEN_PASS_REGISTRATION 35 #include "mlir/Dialect/Async/Passes.h.inc" 36 37 } // namespace mlir 38 39 #endif // MLIR_DIALECT_ASYNC_PASSES_H_ 40