Skip to content

Commit 911c137

Browse files
committed
[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
1 parent ca36cc5 commit 911c137

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

flang/include/flang/Optimizer/CodeGen/CGPasses.td

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@ def FIRToLLVMLowering : Pass<"fir-to-llvm-ir", "mlir::ModuleOp"> {
3030
];
3131
}
3232

33-
def CodeGenRewrite : Pass<"cg-rewrite"> {
33+
def CodeGenRewrite : Pass<"cg-rewrite", "mlir::ModuleOp"> {
3434
let summary = "Rewrite some FIR ops into their code-gen forms.";
3535
let description = [{
3636
Fuse specific subgraphs into single Ops for code generation.
3737
}];
38-
let constructor = "fir::createFirCodeGenRewritePass()";
38+
let constructor = "::fir::createFirCodeGenRewritePass()";
3939
let dependentDialects = [
40-
"fir::FIROpsDialect", "fir::FIRCodeGenDialect", "mlir::BuiltinDialect",
41-
"mlir::LLVM::LLVMDialect", "mlir::omp::OpenMPDialect"
40+
"fir::FIROpsDialect", "fir::FIRCodeGenDialect"
4241
];
4342
let statistics = [
4443
Statistic<"numDCE", "num-dce'd", "Number of operations eliminated">

0 commit comments

Comments
 (0)