diff --git a/flang/include/flang/Optimizer/CodeGen/CGPasses.td b/flang/include/flang/Optimizer/CodeGen/CGPasses.td --- a/flang/include/flang/Optimizer/CodeGen/CGPasses.td +++ b/flang/include/flang/Optimizer/CodeGen/CGPasses.td @@ -30,15 +30,14 @@ ]; } -def CodeGenRewrite : Pass<"cg-rewrite"> { +def CodeGenRewrite : Pass<"cg-rewrite", "mlir::ModuleOp"> { let summary = "Rewrite some FIR ops into their code-gen forms."; let description = [{ Fuse specific subgraphs into single Ops for code generation. }]; - let constructor = "fir::createFirCodeGenRewritePass()"; + let constructor = "::fir::createFirCodeGenRewritePass()"; let dependentDialects = [ - "fir::FIROpsDialect", "fir::FIRCodeGenDialect", "mlir::BuiltinDialect", - "mlir::LLVM::LLVMDialect", "mlir::omp::OpenMPDialect" + "fir::FIROpsDialect", "fir::FIRCodeGenDialect" ]; let statistics = [ Statistic<"numDCE", "num-dce'd", "Number of operations eliminated">