Skip to content

Commit 0e23cb0

Browse files
authored
[mlir][nfc] GpuToROCDL: Remove some dead code (#121403)
1 parent a5f3058 commit 0e23cb0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848
#include "../GPUCommon/GPUOpsLowering.h"
4949
#include "../GPUCommon/IndexIntrinsicsOpLowering.h"
50-
#include "../GPUCommon/OpToFuncCallLowering.h"
5150

5251
namespace mlir {
5352
#define GEN_PASS_DEF_CONVERTGPUOPSTOROCDLOPS
@@ -346,16 +345,6 @@ void mlir::configureGpuToROCDLConversionLegality(ConversionTarget &target) {
346345
target.addLegalOp<gpu::YieldOp, gpu::GPUModuleOp>();
347346
}
348347

349-
template <typename OpTy>
350-
static void populateOpPatterns(const LLVMTypeConverter &converter,
351-
RewritePatternSet &patterns, StringRef f32Func,
352-
StringRef f64Func, StringRef f32ApproxFunc,
353-
StringRef f16Func) {
354-
patterns.add<ScalarizeVectorOpLowering<OpTy>>(converter);
355-
patterns.add<OpToFuncCallLowering<OpTy>>(converter, f32Func, f32ApproxFunc,
356-
f16Func);
357-
}
358-
359348
void mlir::populateGpuToROCDLConversionPatterns(
360349
const LLVMTypeConverter &converter, RewritePatternSet &patterns,
361350
mlir::gpu::amd::Runtime runtime) {

0 commit comments

Comments
 (0)