|
36 | 36 | #include "mlir/Dialect/MemRef/IR/MemRef.h"
|
37 | 37 | #include "mlir/Dialect/Vector/IR/VectorOps.h"
|
38 | 38 | #include "mlir/IR/BuiltinAttributes.h"
|
39 |
| -#include "mlir/Pass/Pass.h" |
40 | 39 | #include "mlir/Transforms/DialectConversion.h"
|
41 | 40 | #include "mlir/Transforms/GreedyPatternRewriteDriver.h"
|
42 | 41 |
|
@@ -287,19 +286,7 @@ struct GPUShuffleOpLowering : public ConvertOpToLLVMPattern<gpu::ShuffleOp> {
|
287 | 286 | // code.
|
288 | 287 | struct LowerGpuOpsToROCDLOpsPass final
|
289 | 288 | : public impl::ConvertGpuOpsToROCDLOpsBase<LowerGpuOpsToROCDLOpsPass> {
|
290 |
| - LowerGpuOpsToROCDLOpsPass() = default; |
291 |
| - LowerGpuOpsToROCDLOpsPass(const std::string &chipset, unsigned indexBitwidth, |
292 |
| - bool useBarePtrCallConv, |
293 |
| - gpu::amd::Runtime runtime) { |
294 |
| - if (this->chipset.getNumOccurrences() == 0) |
295 |
| - this->chipset = chipset; |
296 |
| - if (this->indexBitwidth.getNumOccurrences() == 0) |
297 |
| - this->indexBitwidth = indexBitwidth; |
298 |
| - if (this->useBarePtrCallConv.getNumOccurrences() == 0) |
299 |
| - this->useBarePtrCallConv = useBarePtrCallConv; |
300 |
| - if (this->runtime.getNumOccurrences() == 0) |
301 |
| - this->runtime = runtime; |
302 |
| - } |
| 289 | + using Base::Base; |
303 | 290 |
|
304 | 291 | void getDependentDialects(DialectRegistry ®istry) const override {
|
305 | 292 | Base::getDependentDialects(registry);
|
@@ -499,12 +486,3 @@ void mlir::populateGpuToROCDLConversionPatterns(
|
499 | 486 |
|
500 | 487 | populateMathToROCDLConversionPatterns(converter, patterns);
|
501 | 488 | }
|
502 |
| - |
503 |
| -std::unique_ptr<OperationPass<gpu::GPUModuleOp>> |
504 |
| -mlir::createLowerGpuOpsToROCDLOpsPass(const std::string &chipset, |
505 |
| - unsigned indexBitwidth, |
506 |
| - bool useBarePtrCallConv, |
507 |
| - gpu::amd::Runtime runtime) { |
508 |
| - return std::make_unique<LowerGpuOpsToROCDLOpsPass>( |
509 |
| - chipset, indexBitwidth, useBarePtrCallConv, runtime); |
510 |
| -} |
0 commit comments