1 //===- Passes.h - Pass Entrypoints ------------------------------*- 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_SCF_PASSES_H_ 14 #define MLIR_DIALECT_SCF_PASSES_H_ 15 16 #include "mlir/Pass/Pass.h" 17 18 namespace mlir { 19 20 /// Creates a pass that bufferizes the SCF dialect. 21 std::unique_ptr<Pass> createSCFBufferizePass(); 22 23 /// Creates a pass that specializes for loop for unrolling and 24 /// vectorization. 25 std::unique_ptr<Pass> createForLoopSpecializationPass(); 26 27 /// Creates a loop fusion pass which fuses parallel loops. 28 std::unique_ptr<Pass> createParallelLoopFusionPass(); 29 30 /// Creates a pass that specializes parallel loop for unrolling and 31 /// vectorization. 32 std::unique_ptr<Pass> createParallelLoopSpecializationPass(); 33 34 /// Creates a pass which tiles innermost parallel loops. 35 std::unique_ptr<Pass> 36 createParallelLoopTilingPass(llvm::ArrayRef<int64_t> tileSize = {}); 37 38 //===----------------------------------------------------------------------===// 39 // Registration 40 //===----------------------------------------------------------------------===// 41 42 /// Generate the code for registering passes. 43 #define GEN_PASS_REGISTRATION 44 #include "mlir/Dialect/SCF/Passes.h.inc" 45 46 } // namespace mlir 47 48 #endif // MLIR_DIALECT_SCF_PASSES_H_ 49