My Project
LoopsToGPUPass.h
Go to the documentation of this file.
1 //===- LoopsToGPUPass.h - Pass converting loops to GPU kernels --*- 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_LOOPSTOGPU_LOOPSTOGPUPASS_H_
9 #define MLIR_CONVERSION_LOOPSTOGPU_LOOPSTOGPUPASS_H_
10 
11 #include "mlir/Support/LLVM.h"
12 
13 #include <memory>
14 
15 namespace mlir {
16 class FuncOp;
17 template <typename T> class OpPassBase;
18 
27 std::unique_ptr<OpPassBase<FuncOp>>
28 createSimpleLoopsToGPUPass(unsigned numBlockDims, unsigned numThreadDims);
29 
36 std::unique_ptr<OpPassBase<FuncOp>>
37 createLoopToGPUPass(ArrayRef<int64_t> numWorkGroups,
38  ArrayRef<int64_t> workGroupSize);
39 } // namespace mlir
40 
41 #endif // MLIR_CONVERSION_LOOPSTOGPU_LOOPSTOGPUPASS_H_
Definition: InferTypeOpInterface.cpp:20
std::unique_ptr< OpPassBase< FuncOp > > createSimpleLoopsToGPUPass(unsigned numBlockDims, unsigned numThreadDims)
Definition: LoopsToGPUPass.cpp:121
std::unique_ptr< OpPassBase< FuncOp > > createLoopToGPUPass(ArrayRef< int64_t > numWorkGroups, ArrayRef< int64_t > workGroupSize)
Definition: LoopsToGPUPass.cpp:127