MLIR  22.0.0git
InitAllDialects.h
Go to the documentation of this file.
1 //===- InitAllDialects.h - MLIR Dialects 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 dialects and
10 // passes to the system.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_INITALLDIALECTS_H_
15 #define MLIR_INITALLDIALECTS_H_
16 
17 namespace mlir {
18 class DialectRegistry;
19 class MLIRContext;
20 
21 /// Add all the MLIR dialects to the provided registry.
22 void registerAllDialects(DialectRegistry &registry);
23 
24 /// Append all the MLIR dialects to the registry contained in the given context.
25 void registerAllDialects(MLIRContext &context);
26 
27 } // namespace mlir
28 
29 #endif // MLIR_INITALLDIALECTS_H_
Include the generated interface declarations.
void registerAllDialects(DialectRegistry &registry)
Add all the MLIR dialects to the provided registry.