Skip to content

Commit 195edef

Browse files
fabianmcghhkit
authored andcommitted
[codegen][rocdl] Remove ROCDLKernelConfig and ROCDLSelectLoweringStrategy (iree-org#21820)
This patch removes removes: - ROCDLKernelConfig.h - ROCDLKernelConfig.cpp - ROCDLSelectLoweringStrategy.cpp The reason for removal is that they are not being used by any pipeline, and are not being properly tested. --------- Signed-off-by: Fabian Mora <[email protected]> Signed-off-by: Ivan Ho <[email protected]>
1 parent 51bf8e0 commit 195edef

File tree

13 files changed

+0
-392
lines changed

13 files changed

+0
-392
lines changed

compiler/src/iree/compiler/Codegen/LLVMGPU/BUILD.bazel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,15 @@ iree_compiler_cc_library(
113113
"ROCDLAnnotateKernelForTranslation.cpp",
114114
"ROCDLBufferInstructionsOptimization.cpp",
115115
"ROCDLConfigureBufferInstructions.cpp",
116-
"ROCDLKernelConfig.cpp",
117116
"ROCDLLowerExecutableTarget.cpp",
118117
"ROCDLPrefetching.cpp",
119-
"ROCDLSelectLoweringStrategy.cpp",
120118
"TestLLVMGPUQueryMMAPass.cpp",
121119
"Verifiers.cpp",
122120
],
123121
hdrs = [
124122
"ConvertToLLVM.h",
125123
"KernelConfig.h",
126124
"Passes.h",
127-
"ROCDLKernelConfig.h",
128125
"ROCDLPasses.h",
129126
],
130127
deps = [

compiler/src/iree/compiler/Codegen/LLVMGPU/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ iree_cc_library(
6767
"ConvertToLLVM.h"
6868
"KernelConfig.h"
6969
"Passes.h"
70-
"ROCDLKernelConfig.h"
7170
"ROCDLPasses.h"
7271
SRCS
7372
"AMDGPUEmulateNarrowType.cpp"
@@ -93,10 +92,8 @@ iree_cc_library(
9392
"ROCDLAnnotateKernelForTranslation.cpp"
9493
"ROCDLBufferInstructionsOptimization.cpp"
9594
"ROCDLConfigureBufferInstructions.cpp"
96-
"ROCDLKernelConfig.cpp"
9795
"ROCDLLowerExecutableTarget.cpp"
9896
"ROCDLPrefetching.cpp"
99-
"ROCDLSelectLoweringStrategy.cpp"
10097
"TestLLVMGPUQueryMMAPass.cpp"
10198
"Verifiers.cpp"
10299
DEPS

compiler/src/iree/compiler/Codegen/LLVMGPU/Passes.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,27 +1199,6 @@ void buildLLVMGPULinkingPassPipeline(OpPassManager &modulePassManager,
11991199
// ROCDL Pass Pipelines
12001200
//===----------------------------------------------------------------------===//
12011201

1202-
static void buildROCDLCodegenConfigurationPassPipelineImpl(
1203-
OpPassManager &modulePassManager) {
1204-
{
1205-
FunctionLikeNest funcPassManager(modulePassManager);
1206-
funcPassManager.addPass(createGPUGeneralizeNamedOpsPass);
1207-
funcPassManager.addPass(createROCDLConfigureBufferInstructionsPass);
1208-
addCommonTargetExecutablePreprocessingPasses(funcPassManager);
1209-
}
1210-
modulePassManager.addPass(createMaterializeTuningSpecsPass());
1211-
modulePassManager.addPass(createMaterializeUserConfigsPass());
1212-
1213-
modulePassManager.addPass(createROCDLSelectLoweringStrategyPass());
1214-
}
1215-
1216-
void buildROCDLCodegenConfigurationPassPipeline(
1217-
OpPassManager &variantPassManager) {
1218-
variantPassManager.addPass(createSpecializeExportsPass());
1219-
OpPassManager &modulePassManager = variantPassManager.nest<ModuleOp>();
1220-
buildROCDLCodegenConfigurationPassPipelineImpl(modulePassManager);
1221-
}
1222-
12231202
void buildROCDLCodegenPassPipeline(OpPassManager &variantPassManager) {
12241203
{
12251204
OpPassManager &modulePassManager = variantPassManager.nest<ModuleOp>();
@@ -1299,13 +1278,6 @@ void registerCodegenROCDLPasses() {
12991278
// Generated.
13001279
rocdl::registerPasses();
13011280

1302-
static PassPipelineRegistration<> ROCDLConfigPipeline(
1303-
"iree-codegen-rocdl-configuration-pipeline",
1304-
"Runs pass pipeline to select a suitable lowering strategy for ROCDL",
1305-
[](OpPassManager &modulePassManager) {
1306-
buildROCDLCodegenConfigurationPassPipelineImpl(modulePassManager);
1307-
});
1308-
13091281
static PassPipelineRegistration<> LinalgROCDLPipeline(
13101282
"iree-codegen-linalg-to-rocdl-pipeline2",
13111283
"Runs pass pipeline to progressively lower Linalg to ROCDL",

compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLKernelConfig.cpp

Lines changed: 0 additions & 202 deletions
This file was deleted.

compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLKernelConfig.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLPasses.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,4 @@ def ROCDLLowerExecutableTargetPass : InterfacePass<
5656
"pass pipeline";
5757
}
5858

59-
def ROCDLSelectLoweringStrategyPass :
60-
Pass<"iree-rocdl-select-lowering-strategy", "ModuleOp"> {
61-
let summary = "Select a suitable lowering strategy for an IREE "
62-
"hal.executable.variant op";
63-
}
64-
6559
#endif // IREE_CODEGEN_LLVMGPU_ROCDLPASSES

compiler/src/iree/compiler/Codegen/LLVMGPU/ROCDLSelectLoweringStrategy.cpp

Lines changed: 0 additions & 42 deletions
This file was deleted.

compiler/src/iree/compiler/Codegen/LLVMGPU/test/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ iree_lit_test_suite(
3838
"config_winograd.mlir",
3939
"extract_address_computation_gpu.mlir",
4040
"gpu_pipeline_data_tiling.mlir",
41-
"gpu_pipeline_generalize_named_ops.mlir",
4241
"gpu_pipeline_relayout_ops.mlir",
4342
"horizontal_fusion_pipeline.mlir",
4443
"link_executables.mlir",

compiler/src/iree/compiler/Codegen/LLVMGPU/test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ iree_lit_test_suite(
3535
"elementwise_pipeline.mlir"
3636
"extract_address_computation_gpu.mlir"
3737
"gpu_pipeline_data_tiling.mlir"
38-
"gpu_pipeline_generalize_named_ops.mlir"
3938
"gpu_pipeline_relayout_ops.mlir"
4039
"horizontal_fusion_pipeline.mlir"
4140
"legalize.mlir"

compiler/src/iree/compiler/Codegen/LLVMGPU/test/ROCDL/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ iree_lit_test_suite(
2929
"config_vector_distribute_gfx950.mlir",
3030
"config_user_vector_distribute.mlir",
3131
"configure_buffer_instructions.mlir",
32-
"lowering_scalar_dispatch.mlir",
3332
"pipeline_elementwise_f8fnuz.mlir",
3433
"pipeline_elementwise_f8ocp.mlir",
3534
"pipeline_igemm_tile_and_fuse.mlir",

0 commit comments

Comments
 (0)