CIRCT  19.0.0git
LLHDToLLVM.h
Go to the documentation of this file.
1 //===- LLHDToLLVM.h - LLHD to LLVM pass entry point -------------*- 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 // This header file defines prototypes that expose the LLHDToLLVM pass
10 // constructors.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef CIRCT_CONVERSION_LLHDTOLLVM_LLHDTOLLVM_H
15 #define CIRCT_CONVERSION_LLHDTOLLVM_LLHDTOLLVM_H
16 
17 #include "circt/Support/LLVM.h"
18 #include <memory>
19 
20 namespace mlir {
21 class LLVMTypeConverter;
22 } // namespace mlir
23 
24 namespace circt {
25 
26 #define GEN_PASS_DECL_CONVERTLLHDTOLLVM
27 #include "circt/Conversion/Passes.h.inc"
28 
29 /// Get the LLHD to LLVM type conversions
30 void populateLLHDToLLVMTypeConversions(mlir::LLVMTypeConverter &converter);
31 
32 /// Get the LLHD to LLVM conversion patterns.
33 void populateLLHDToLLVMConversionPatterns(mlir::LLVMTypeConverter &converter,
34  RewritePatternSet &patterns,
35  size_t &sigCounter,
36  size_t &regCounter);
37 
38 /// Create an LLHD to LLVM conversion pass.
39 std::unique_ptr<OperationPass<ModuleOp>> createConvertLLHDToLLVMPass();
40 
41 } // namespace circt
42 
43 #endif // CIRCT_CONVERSION_LLHDTOLLVM_LLHDTOLLVM_H
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition: DebugAnalysis.h:21
void populateLLHDToLLVMTypeConversions(mlir::LLVMTypeConverter &converter)
Get the LLHD to LLVM type conversions.
std::unique_ptr< OperationPass< ModuleOp > > createConvertLLHDToLLVMPass()
Create an LLHD to LLVM conversion pass.
void populateLLHDToLLVMConversionPatterns(mlir::LLVMTypeConverter &converter, RewritePatternSet &patterns, size_t &sigCounter, size_t &regCounter)
Get the LLHD to LLVM conversion patterns.