1//===- LLVMInlining.h - Registration of LLVMInlinerInterface ----*- 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// during initialization.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef DIALECT_LLVMIR_IR_LLVMINLINING_H
15#define DIALECT_LLVMIR_IR_LLVMINLINING_H
16
17namespace mlir {
18namespace LLVM {
19
20class LLVMDialect;
21
22namespace detail {
23
24/// Register the `LLVMInlinerInterface` implementation of
25/// `DialectInlinerInterface` with the LLVM dialect.
26void addLLVMInlinerInterface(LLVMDialect *dialect);
27
28} // namespace detail
29
30} // namespace LLVM
31} // namespace mlir
32
33#endif // DIALECT_LLVMIR_IR_LLVMINLINING_H
34

source code of mlir/lib/Dialect/LLVMIR/IR/LLVMInlining.h