MLIR  19.0.0git
Passes.h
Go to the documentation of this file.
1 //===- Passes.h - LLVM Pass Construction and Registration -----------------===//
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_DIALECT_LLVMIR_TRANSFORMS_PASSES_H
10 #define MLIR_DIALECT_LLVMIR_TRANSFORMS_PASSES_H
11 
17 #include "mlir/Pass/Pass.h"
18 
19 namespace mlir {
20 
21 namespace LLVM {
22 
23 /// Create a pass to add DIScope to LLVMFuncOp that are missing it.
24 std::unique_ptr<Pass> createDIScopeForLLVMFuncOpPass();
25 
26 /// Generate the code for registering conversion passes.
27 #define GEN_PASS_REGISTRATION
28 #include "mlir/Dialect/LLVMIR/Transforms/Passes.h.inc"
29 
30 } // namespace LLVM
31 } // namespace mlir
32 
33 #endif // MLIR_DIALECT_LLVMIR_TRANSFORMS_PASSES_H
std::unique_ptr< Pass > createDIScopeForLLVMFuncOpPass()
Create a pass to add DIScope to LLVMFuncOp that are missing it.
Include the generated interface declarations.