MLIR  20.0.0git
AllExtensions.h
Go to the documentation of this file.
1 //===- AllExtensions.h - All Tensor 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 // Tensor dialect.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_DIALECT_TENSOR_EXTENSIONS_ALLEXTENSIONS_H
15 #define MLIR_DIALECT_TENSOR_EXTENSIONS_ALLEXTENSIONS_H
16 
17 namespace mlir {
18 class DialectRegistry;
19 
20 namespace tensor {
21 /// Register all extensions of the Tensor 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 tensor
27 
28 } // namespace mlir
29 
30 #endif // MLIR_DIALECT_TENSOR_EXTENSIONS_ALLEXTENSIONS_H
void registerAllExtensions(DialectRegistry &registry)
Register all extensions of the Tensor dialect.
Include the generated interface declarations.