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 /// Get the LLHD to LLVM type conversions
27 void populateLLHDToLLVMTypeConversions(mlir::LLVMTypeConverter &converter);
28 
29 /// Get the LLHD to LLVM conversion patterns.
30 void populateLLHDToLLVMConversionPatterns(mlir::LLVMTypeConverter &converter,
31  RewritePatternSet &patterns,
32  size_t &sigCounter,
33  size_t &regCounter);
34 
35 /// Create an LLHD to LLVM conversion pass.
36 std::unique_ptr<OperationPass<ModuleOp>> createConvertLLHDToLLVMPass();
37 
38 } // namespace circt
39 
40 #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.