MLIR 22.0.0git
InlinerInterfaceImpl.h
Go to the documentation of this file.
1//===- InlinerInterfaceImpl.h - Inlining for LLVM the dialect ---*- 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// Allows registering the LLVM DialectInlinerInterface with the LLVM dialect.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef MLIR_DIALECT_LLVMIR_TRANSFORMS_INLINERINTERFACEIMPL_H
14#define MLIR_DIALECT_LLVMIR_TRANSFORMS_INLINERINTERFACEIMPL_H
15
16namespace mlir {
17class DialectRegistry;
18
19namespace LLVM {
20
21/// Register the `LLVMInlinerInterface` implementation of
22/// `DialectInlinerInterface` with the LLVM dialect.
23void registerInlinerInterface(DialectRegistry &registry);
24
25} // namespace LLVM
26
27namespace NVVM {
28/// Register the `NVVMInlinerInterface` implementation of
29/// `DialectInlinerInterface` with the NVVM dialect.
30void registerInlinerInterface(DialectRegistry &registry);
31} // namespace NVVM
32
33} // namespace mlir
34
35#endif // MLIR_DIALECT_LLVMIR_TRANSFORMS_INLINERINTERFACEIMPL_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
void registerInlinerInterface(DialectRegistry &registry)
Register the LLVMInlinerInterface implementation of DialectInlinerInterface with the LLVM dialect.
void registerInlinerInterface(DialectRegistry &registry)
Register the NVVMInlinerInterface implementation of DialectInlinerInterface with the NVVM dialect.
Include the generated interface declarations.