MLIR  20.0.0git
UBToLLVM.h
Go to the documentation of this file.
1 //===- UBToLLVM.h - UB to LLVM dialect conversion ---------------*- 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 #ifndef MLIR_CONVERSION_UBTOLLVM_UBLLVM_H
10 #define MLIR_CONVERSION_UBTOLLVM_UBLLVM_H
11 
12 #include <memory>
13 
14 namespace mlir {
15 
16 class DialectRegistry;
17 class LLVMTypeConverter;
18 class RewritePatternSet;
19 class Pass;
20 
21 #define GEN_PASS_DECL_UBTOLLVMCONVERSIONPASS
22 #include "mlir/Conversion/Passes.h.inc"
23 
24 namespace ub {
26  RewritePatternSet &patterns);
27 
29 } // namespace ub
30 } // namespace mlir
31 
32 #endif // MLIR_CONVERSION_UBTOLLVM_UBLLVM_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Conversion from types to the LLVM IR dialect.
Definition: TypeConverter.h:35
void registerConvertUBToLLVMInterface(DialectRegistry &registry)
Definition: UBToLLVM.cpp:121
void populateUBToLLVMConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns)
Definition: UBToLLVM.cpp:94
Include the generated interface declarations.