Skip to content

Commit a118652

Browse files
committed
Delete constructors and use the ones from base
1 parent 5dbb951 commit a118652

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -286,28 +286,7 @@ struct GPUShuffleOpLowering : public ConvertOpToLLVMPattern<gpu::ShuffleOp> {
286286
// code.
287287
struct LowerGpuOpsToROCDLOpsPass final
288288
: public impl::ConvertGpuOpsToROCDLOpsBase<LowerGpuOpsToROCDLOpsPass> {
289-
LowerGpuOpsToROCDLOpsPass() = default;
290-
LowerGpuOpsToROCDLOpsPass(ConvertGpuOpsToROCDLOpsOptions options)
291-
: ConvertGpuOpsToROCDLOpsBase(options) {}
292-
LowerGpuOpsToROCDLOpsPass(
293-
const std::string &chipset, unsigned indexBitwidth,
294-
bool useBarePtrCallConv, gpu::amd::Runtime runtime,
295-
std::optional<llvm::SmallDenseSet<StringRef>> allowedDialects) {
296-
if (this->chipset.getNumOccurrences() == 0)
297-
this->chipset = chipset;
298-
if (this->indexBitwidth.getNumOccurrences() == 0)
299-
this->indexBitwidth = indexBitwidth;
300-
if (this->useBarePtrCallConv.getNumOccurrences() == 0)
301-
this->useBarePtrCallConv = useBarePtrCallConv;
302-
if (this->runtime.getNumOccurrences() == 0)
303-
this->runtime = runtime;
304-
if (this->allowedDialects.getNumOccurrences() == 0 &&
305-
allowedDialects.has_value()) {
306-
for (auto &str : allowedDialects.value()) {
307-
this->allowedDialects.push_back(str.str());
308-
}
309-
}
310-
}
289+
using Base::Base;
311290

312291
void getDependentDialects(DialectRegistry &registry) const override {
313292
Base::getDependentDialects(registry);

0 commit comments

Comments
 (0)