MLIR 22.0.0git
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
17namespace mlir {
18class 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.
26
27} // namespace mlir
28
29#endif // MLIR_INITALLEXTENSIONS_H_
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Include the generated interface declarations.
void registerAllExtensions(DialectRegistry &registry)
This function may be called to register all MLIR dialect extensions with the provided registry.