MLIR
22.0.0git
include
mlir
InitAllExtensions.h
Go to the documentation of this file.
1
//===- InitAllExtensions.h - MLIR Extension 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 dialect
10
// extensions to the system.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef MLIR_INITALLEXTENSIONS_H_
15
#define MLIR_INITALLEXTENSIONS_H_
16
17
namespace
mlir
{
18
class
DialectRegistry
;
19
20
/// This function may be called to register all MLIR dialect extensions with the
21
/// provided registry.
22
/// If you're building a compiler, you generally shouldn't use this: you would
23
/// individually register the specific extensions that are useful for the
24
/// pipelines and transformations you are using.
25
void
registerAllExtensions
(
DialectRegistry
®istry);
26
27
}
// namespace mlir
28
29
#endif
// MLIR_INITALLEXTENSIONS_H_
mlir::DialectRegistry
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Definition
DialectRegistry.h:139
mlir
Include the generated interface declarations.
Definition
AliasAnalysis.h:19
mlir::registerAllExtensions
void registerAllExtensions(DialectRegistry ®istry)
This function may be called to register all MLIR dialect extensions with the provided registry.
Definition
RegisterAllExtensions.cpp:71
Generated on
for MLIR by
1.14.0