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
17namespace mlir {
18class DialectRegistry;
19class MLIRContext;
20
21/// Add all the MLIR dialects to the provided registry.
23
24/// Append all the MLIR dialects to the registry contained in the given context.
25void registerAllDialects(MLIRContext &context);
26
27} // namespace mlir
28
29#endif // MLIR_INITALLDIALECTS_H_
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
MLIRContext is the top-level object for a collection of MLIR operations.
Definition MLIRContext.h:63
Include the generated interface declarations.
void registerAllDialects(DialectRegistry &registry)
Add all the MLIR dialects to the provided registry.