|
1 | | -//===- ConvertGPUToSPIRVPass.h - GPU to SPIR-V conversion pass --*- C++ -*-===// |
| 1 | +//===- GPUToSPIRVPass.h - GPU to SPIR-V Passes ------------------*- C++ -*-===// |
2 | 2 | // |
3 | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | 4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | 6 | // |
7 | 7 | //===----------------------------------------------------------------------===// |
8 | 8 | // |
9 | | -// Provides a pass to convert GPU ops to SPIRV ops. |
| 9 | +// Provides passes to convert GPU dialect to SPIR-V dialect. |
10 | 10 | // |
11 | 11 | //===----------------------------------------------------------------------===// |
12 | 12 |
|
13 | | -#ifndef MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H |
14 | | -#define MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H |
15 | | - |
16 | | -#include "mlir/Support/LLVM.h" |
| 13 | +#ifndef MLIR_CONVERSION_GPUTOSPIRV_GPUTOSPIRVPASS_H |
| 14 | +#define MLIR_CONVERSION_GPUTOSPIRV_GPUTOSPIRVPASS_H |
17 | 15 |
|
18 | 16 | #include <memory> |
19 | 17 |
|
20 | 18 | namespace mlir { |
21 | 19 |
|
22 | 20 | class ModuleOp; |
23 | | -template <typename T> class OperationPass; |
| 21 | +template <typename T> |
| 22 | +class OperationPass; |
24 | 23 |
|
25 | | -/// Pass to convert GPU Ops to SPIR-V ops. For a gpu.func to be converted, it |
26 | | -/// should have a spv.entry_point_abi attribute. |
| 24 | +/// Creates a pass to convert GPU Ops to SPIR-V ops. For a gpu.func to be |
| 25 | +/// converted, it should have a spv.entry_point_abi attribute. |
27 | 26 | std::unique_ptr<OperationPass<ModuleOp>> createConvertGPUToSPIRVPass(); |
28 | 27 |
|
29 | 28 | } // namespace mlir |
30 | | -#endif // MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H |
| 29 | +#endif // MLIR_CONVERSION_GPUTOSPIRV_GPUTOSPIRVPASS_H |
0 commit comments