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::DialectRegistry
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Definition
DialectRegistry.h:139
mlir::MLIRContext
MLIRContext is the top-level object for a collection of MLIR operations.
Definition
MLIRContext.h:63
mlir
Include the generated interface declarations.
Definition
AliasAnalysis.h:19
mlir::registerAllDialects
void registerAllDialects(DialectRegistry ®istry)
Add all the MLIR dialects to the provided registry.
Definition
RegisterAllDialects.cpp:109
Generated on
for MLIR by
1.14.0