My Project
GPUToCUDAPass.h
Go to the documentation of this file.
1 //===- GPUToCUDAPass.h - MLIR CUDA runtime support --------------*- C++ -*-===//
2 //
3 // Part of the MLIR 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 #ifndef MLIR_CONVERSION_GPUTOCUDA_GPUTOCUDAPASS_H_
9 #define MLIR_CONVERSION_GPUTOCUDA_GPUTOCUDAPASS_H_
10 
11 #include "mlir/Support/LLVM.h"
12 #include <functional>
13 #include <memory>
14 #include <string>
15 #include <vector>
16 
17 namespace mlir {
18 
19 class Location;
20 class ModuleOp;
21 
22 namespace LLVM {
23 class LLVMDialect;
24 } // namespace LLVM
25 
26 template <typename T> class OpPassBase;
27 
28 using OwnedCubin = std::unique_ptr<std::vector<char>>;
29 using CubinGenerator =
30  std::function<OwnedCubin(const std::string &, Location, StringRef)>;
31 
41 std::unique_ptr<OpPassBase<ModuleOp>>
43 
50 std::unique_ptr<OpPassBase<ModuleOp>>
52 
53 } // namespace mlir
54 
55 #endif // MLIR_CONVERSION_GPUTOCUDA_GPUTOCUDAPASS_H_
Definition: InferTypeOpInterface.cpp:20
std::function< OwnedCubin(const std::string &, Location, StringRef)> CubinGenerator
Definition: GPUToCUDAPass.h:30
std::unique_ptr< std::vector< char > > OwnedCubin
Definition: GPUToCUDAPass.h:28
std::unique_ptr< OpPassBase< ModuleOp > > createConvertGpuLaunchFuncToCudaCallsPass()
Definition: ConvertLaunchFuncToCudaCalls.cpp:418
std::unique_ptr< OpPassBase< ModuleOp > > createConvertGPUKernelToCubinPass(CubinGenerator cubinGenerator)
Definition: ConvertKernelFuncToCubin.cpp:161