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 | |
12 | #include "mlir/Dialect/LLVMIR/Transforms/AddComdats.h" |
13 | #include "mlir/Dialect/LLVMIR/Transforms/LegalizeForExport.h" |
14 | #include "mlir/Dialect/LLVMIR/Transforms/OptimizeForNVVM.h" |
15 | #include "mlir/Dialect/LLVMIR/Transforms/RequestCWrappers.h" |
16 | #include "mlir/Dialect/LLVMIR/Transforms/TypeConsistency.h" |
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 |
34 |