MLIR  19.0.0git
AllExtensions.h
Go to the documentation of this file.
1 //===- AllExtensions.h - All Func Extensions --------------------*- 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 common entry point for registering all extensions to the
10 // func dialect.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_DIALECT_FUNC_EXTENSIONS_ALLEXTENSIONS_H
15 #define MLIR_DIALECT_FUNC_EXTENSIONS_ALLEXTENSIONS_H
16 
17 namespace mlir {
18 class DialectRegistry;
19 
20 namespace func {
21 /// Register all extensions of the func dialect. This should generally only be
22 /// used by tools, or other use cases that really do want *all* extensions of
23 /// the dialect. All other cases should prefer to instead register the specific
24 /// extensions they intend to take advantage of.
25 void registerAllExtensions(DialectRegistry &registry);
26 } // namespace func
27 
28 } // namespace mlir
29 
30 #endif // MLIR_DIALECT_FUNC_EXTENSIONS_ALLEXTENSIONS_H
void registerAllExtensions(DialectRegistry &registry)
Register all extensions of the func dialect.
Include the generated interface declarations.