MLIR  20.0.0git
OptimizeForNVVM.h
Go to the documentation of this file.
1 //===- OptimizeForNVVM.h - Optimize LLVM IR for NVVM -*- 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_DIALECT_LLVMIR_TRANSFORMS_OPTIMIZENVVM_H
10 #define MLIR_DIALECT_LLVMIR_TRANSFORMS_OPTIMIZENVVM_H
11 
12 #include <memory>
13 
14 namespace mlir {
15 class Pass;
16 
17 namespace NVVM {
18 
19 #define GEN_PASS_DECL_NVVMOPTIMIZEFORTARGET
20 #include "mlir/Dialect/LLVMIR/Transforms/Passes.h.inc"
21 
22 /// Creates a pass that optimizes LLVM IR for the NVVM target.
23 std::unique_ptr<Pass> createOptimizeForTargetPass();
24 
25 } // namespace NVVM
26 } // namespace mlir
27 
28 #endif // MLIR_DIALECT_LLVMIR_TRANSFORMS_OPTIMIZENVVM_H
std::unique_ptr< Pass > createOptimizeForTargetPass()
Creates a pass that optimizes LLVM IR for the NVVM target.
Include the generated interface declarations.