-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mlir][spirv] NFC: rename SPIR-V conversion files for consistency
This commit renames various SPIR-V related conversion files for consistency. It drops the "Convert" prefix to various files and fixes various comment headers. Reviewed By: hanchung, ThomasRaoux Differential Revision: https://reviews.llvm.org/D93489
- Loading branch information
1 parent
34e70d7
commit 930c74f
Showing
36 changed files
with
171 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 9 additions & 10 deletions
19
...ersion/GPUToSPIRV/ConvertGPUToSPIRVPass.h → ...ir/Conversion/GPUToSPIRV/GPUToSPIRVPass.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
//===- ConvertGPUToSPIRVPass.h - GPU to SPIR-V conversion pass --*- C++ -*-===// | ||
//===- GPUToSPIRVPass.h - GPU to SPIR-V Passes ------------------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Provides a pass to convert GPU ops to SPIRV ops. | ||
// Provides passes to convert GPU dialect to SPIR-V dialect. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H | ||
#define MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H | ||
|
||
#include "mlir/Support/LLVM.h" | ||
#ifndef MLIR_CONVERSION_GPUTOSPIRV_GPUTOSPIRVPASS_H | ||
#define MLIR_CONVERSION_GPUTOSPIRV_GPUTOSPIRVPASS_H | ||
|
||
#include <memory> | ||
|
||
namespace mlir { | ||
|
||
class ModuleOp; | ||
template <typename T> class OperationPass; | ||
template <typename T> | ||
class OperationPass; | ||
|
||
/// Pass to convert GPU Ops to SPIR-V ops. For a gpu.func to be converted, it | ||
/// should have a spv.entry_point_abi attribute. | ||
/// Creates a pass to convert GPU Ops to SPIR-V ops. For a gpu.func to be | ||
/// converted, it should have a spv.entry_point_abi attribute. | ||
std::unique_ptr<OperationPass<ModuleOp>> createConvertGPUToSPIRVPass(); | ||
|
||
} // namespace mlir | ||
#endif // MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H | ||
#endif // MLIR_CONVERSION_GPUTOSPIRV_GPUTOSPIRVPASS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRVPass.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...ndardToSPIRV/ConvertStandardToSPIRVPass.h → ...ion/StandardToSPIRV/StandardToSPIRVPass.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
//===- ConvertStandardToSPIRVPass.h - StdOps to SPIR-V pass -----*- C++ -*-===// | ||
//===- StandardToSPIRVPass.h - Standard to SPIR-V Passes --------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Provides a pass to lower from StandardOps to SPIR-V dialect. | ||
// Provides passes to convert Standard dialect to SPIR-V dialect. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef MLIR_CONVERSION_STANDARDTOSPIRV_CONVERTSTANDARDTOSPIRVPASS_H | ||
#define MLIR_CONVERSION_STANDARDTOSPIRV_CONVERTSTANDARDTOSPIRVPASS_H | ||
#ifndef MLIR_CONVERSION_STANDARDTOSPIRV_STANDARDTOSPIRVPASS_H | ||
#define MLIR_CONVERSION_STANDARDTOSPIRV_STANDARDTOSPIRVPASS_H | ||
|
||
#include "mlir/Pass/Pass.h" | ||
|
||
namespace mlir { | ||
|
||
/// Pass to convert StandardOps to SPIR-V ops. | ||
/// Creates a pass to convert standard ops to SPIR-V ops. | ||
std::unique_ptr<OperationPass<ModuleOp>> createConvertStandardToSPIRVPass(); | ||
|
||
/// Pass to legalize ops that are not directly lowered to SPIR-V. | ||
/// Creates a pass to legalize ops that are not directly lowered to SPIR-V. | ||
std::unique_ptr<Pass> createLegalizeStdOpsForSPIRVLoweringPass(); | ||
|
||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_STANDARDTOSPIRV_CONVERTSTANDARDTOSPIRVPASS_H | ||
#endif // MLIR_CONVERSION_STANDARDTOSPIRV_STANDARDTOSPIRVPASS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
.../VectorToSPIRV/ConvertVectorToSPIRVPass.h → ...version/VectorToSPIRV/VectorToSPIRVPass.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
//=- ConvertVectorToSPIRVPass.h - Pass converting Vector to SPIRV -*- C++ -*-=// | ||
//=- VectorToSPIRVPass.h - Vector to SPIR-V Passes ----------------*- C++ -*-=// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Provides a pass to convert Vector ops to SPIR-V ops. | ||
// Provides passes to convert Vector dialect to SPIR-V dialect. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef MLIR_CONVERSION_VECTORTOSPIRV_CONVERTGPUTOSPIRVPASS_H | ||
#define MLIR_CONVERSION_VECTORTOSPIRV_CONVERTGPUTOSPIRVPASS_H | ||
#ifndef MLIR_CONVERSION_VECTORTOSPIRV_GPUTOSPIRVPASS_H | ||
#define MLIR_CONVERSION_VECTORTOSPIRV_GPUTOSPIRVPASS_H | ||
|
||
#include "mlir/Pass/Pass.h" | ||
|
||
namespace mlir { | ||
|
||
/// Pass to convert Vector Ops to SPIR-V ops. | ||
/// Creates a pass to convert Vector Ops to SPIR-V ops. | ||
std::unique_ptr<OperationPass<ModuleOp>> createConvertVectorToSPIRVPass(); | ||
|
||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_VECTORTOSPIRV_CONVERTGPUTOSPIRVPASS_H | ||
#endif // MLIR_CONVERSION_VECTORTOSPIRV_GPUTOSPIRVPASS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...nversion/GPUToSPIRV/ConvertGPUToSPIRV.cpp → .../lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.