mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
[mlir][nfc] GpuToROCDL: Remove some dead code (#121403)
This commit is contained in:
@@ -47,7 +47,6 @@
|
||||
|
||||
#include "../GPUCommon/GPUOpsLowering.h"
|
||||
#include "../GPUCommon/IndexIntrinsicsOpLowering.h"
|
||||
#include "../GPUCommon/OpToFuncCallLowering.h"
|
||||
|
||||
namespace mlir {
|
||||
#define GEN_PASS_DEF_CONVERTGPUOPSTOROCDLOPS
|
||||
@@ -346,16 +345,6 @@ void mlir::configureGpuToROCDLConversionLegality(ConversionTarget &target) {
|
||||
target.addLegalOp<gpu::YieldOp, gpu::GPUModuleOp>();
|
||||
}
|
||||
|
||||
template <typename OpTy>
|
||||
static void populateOpPatterns(const LLVMTypeConverter &converter,
|
||||
RewritePatternSet &patterns, StringRef f32Func,
|
||||
StringRef f64Func, StringRef f32ApproxFunc,
|
||||
StringRef f16Func) {
|
||||
patterns.add<ScalarizeVectorOpLowering<OpTy>>(converter);
|
||||
patterns.add<OpToFuncCallLowering<OpTy>>(converter, f32Func, f32ApproxFunc,
|
||||
f16Func);
|
||||
}
|
||||
|
||||
void mlir::populateGpuToROCDLConversionPatterns(
|
||||
const LLVMTypeConverter &converter, RewritePatternSet &patterns,
|
||||
mlir::gpu::amd::Runtime runtime) {
|
||||
|
||||
Reference in New Issue
Block a user