MLIR 22.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
17namespace mlir {
18class DialectRegistry;
19
20namespace 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.
25void registerAllExtensions(DialectRegistry &registry);
26} // namespace tensor
27
28} // namespace mlir
29
30#endif // MLIR_DIALECT_TENSOR_EXTENSIONS_ALLEXTENSIONS_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
void registerAllExtensions(DialectRegistry &registry)
Register all extensions of the Tensor dialect.
Include the generated interface declarations.