MLIR  19.0.0git
LLVMInlining.h
Go to the documentation of this file.
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 
17 namespace mlir {
18 namespace LLVM {
19 
20 class LLVMDialect;
21 
22 namespace detail {
23 
24 /// Register the `LLVMInlinerInterface` implementation of
25 /// `DialectInlinerInterface` with the LLVM dialect.
26 void addLLVMInlinerInterface(LLVMDialect *dialect);
27 
28 } // namespace detail
29 
30 } // namespace LLVM
31 } // namespace mlir
32 
33 #endif // DIALECT_LLVMIR_IR_LLVMINLINING_H
void addLLVMInlinerInterface(LLVMDialect *dialect)
Register the LLVMInlinerInterface implementation of DialectInlinerInterface with the LLVM dialect.
Include the generated interface declarations.