MLIR
22.0.0git
include
mlir
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 ®istry);
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_
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
mlir::registerAllDialects
void registerAllDialects(DialectRegistry ®istry)
Add all the MLIR dialects to the provided registry.
Definition:
RegisterAllDialects.cpp:109
Generated on Thu Sep 4 2025 20:31:53 for MLIR by
1.9.1