[flang][NFC] Cleanup dependent dialects and make def homogenous

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
This commit is contained in:
Valentin Clement 2022-01-20 13:33:38 +01:00
parent ca36cc56ac
commit 911c137054
No known key found for this signature in database
GPG Key ID: 086D54783C928776
1 changed files with 3 additions and 4 deletions

View File

@ -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">