MLIR 22.0.0git
MlirLspRegistryFunction.h
Go to the documentation of this file.
1//===- MlirLspRegistryFunction.h - LSP registry functions -------*- 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// Registry function types for MLIR LSP.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPREGISTRYFUNCTION_H
14#define MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPREGISTRYFUNCTION_H
15
16namespace llvm {
17template <typename Fn>
18class function_ref;
19namespace lsp {
20class URIForFile;
21} // namespace lsp
22} // namespace llvm
23
24namespace mlir {
25class DialectRegistry;
26namespace lsp {
28 llvm::function_ref<DialectRegistry &(const llvm::lsp::URIForFile &uri)>;
29} // namespace lsp
30} // namespace mlir
31
32#endif // MLIR_TOOLS_MLIR_LSP_SERVER_MLIRLSPREGISTRYFUNCTION_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Definition CallGraph.h:229
llvm::function_ref< DialectRegistry &(const llvm::lsp::URIForFile &uri)> DialectRegistryFn
Include the generated interface declarations.