MLIR  22.0.0git
InitAllPasses.h
Go to the documentation of this file.
1 //===- InitAllPasses.h - MLIR Registration ----------------------*- 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 file defines a helper to trigger the registration of all passes to the
10 // system.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_INITALLPASSES_H_
15 #define MLIR_INITALLPASSES_H_
16 
17 namespace mlir {
18 
19 // This function may be called to register the MLIR passes with the
20 // global registry.
21 // If you're building a compiler, you likely don't need this: you would build a
22 // pipeline programmatically without the need to register with the global
23 // registry, since it would already be calling the creation routine of the
24 // individual passes.
25 // The global registry is interesting to interact with the command-line tools.
26 void registerAllPasses();
27 
28 } // namespace mlir
29 
30 #endif // MLIR_INITALLPASSES_H_
Include the generated interface declarations.
void registerAllPasses()