MLIR  16.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 
14 namespace mlir {
15 class LowerToLLVMOptions;
16 class ModuleOp;
17 template <typename T>
18 class OperationPass;
19 class Pass;
20 
21 /// Creates a pass to convert the Func dialect into the LLVMIR dialect.
22 std::unique_ptr<OperationPass<ModuleOp>> createConvertFuncToLLVMPass();
23 std::unique_ptr<OperationPass<ModuleOp>>
24 createConvertFuncToLLVMPass(const LowerToLLVMOptions &options);
25 
26 } // namespace mlir
27 
28 #endif // MLIR_CONVERSION_FUNCTOLLVM_CONVERTFUNCTOLLVMPASS_H_
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:729
static llvm::ManagedStatic< PassManagerOptions > options