MLIR  17.0.0git
ConvertFuncToLLVMPass.h
Go to the documentation of this file.
1 //===- ConvertFuncToLLVMPass.h - Pass entrypoint ----------------*- 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_FUNCTOLLVM_CONVERTFUNCTOLLVMPASS_H_
10 #define MLIR_CONVERSION_FUNCTOLLVM_CONVERTFUNCTOLLVMPASS_H_
11 
12 #include <memory>
13 #include <string>
14 
15 namespace mlir {
16 class LowerToLLVMOptions;
17 class ModuleOp;
18 template <typename T>
19 class OperationPass;
20 class Pass;
21 
22 #define GEN_PASS_DECL_CONVERTFUNCTOLLVM
23 #include "mlir/Conversion/Passes.h.inc"
24 
25 /// Creates a pass to convert the Func dialect into the LLVMIR dialect.
26 std::unique_ptr<OperationPass<ModuleOp>> createConvertFuncToLLVMPass();
27 std::unique_ptr<OperationPass<ModuleOp>>
28 createConvertFuncToLLVMPass(const LowerToLLVMOptions &options);
29 
30 } // namespace mlir
31 
32 #endif // MLIR_CONVERSION_FUNCTOLLVM_CONVERTFUNCTOLLVMPASS_H_
static llvm::ManagedStatic< PassManagerOptions > options
Include the generated interface declarations.
std::unique_ptr< OperationPass< ModuleOp > > createConvertFuncToLLVMPass()
Creates a pass to convert the Func dialect into the LLVMIR dialect.
Definition: FuncToLLVM.cpp:780