@@ -286,28 +286,7 @@ struct GPUShuffleOpLowering : public ConvertOpToLLVMPattern<gpu::ShuffleOp> {
286286// code.
287287struct 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 ®istry) const override {
313292 Base::getDependentDialects (registry);
0 commit comments