Skip to content

Commit

Permalink
[flang][NFC] Cleanup dependent dialects and make def homogenous
Browse files Browse the repository at this point in the history
Remove unnecessary dependent dialect and make the definition of the
pass more homogenous with the two others.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D117688
  • Loading branch information
clementval committed Jan 20, 2022
1 parent ca36cc5 commit 911c137
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions flang/include/flang/Optimizer/CodeGen/CGPasses.td
Expand Up @@ -30,15 +30,14 @@ def FIRToLLVMLowering : Pass<"fir-to-llvm-ir", "mlir::ModuleOp"> {
];
}

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">
Expand Down

0 comments on commit 911c137

Please sign in to comment.