[flang-commits] [flang] 911c137 - [flang][NFC] Cleanup dependent dialects and make def homogenous
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Thu Jan 20 04:34:02 PST 2022
Author: Valentin Clement
Date: 2022-01-20T13:33:56+01:00
New Revision: 911c1370546f5f2deb72a5660a77a1b2f28d6f7a
URL: https://github.com/llvm/llvm-project/commit/911c1370546f5f2deb72a5660a77a1b2f28d6f7a
DIFF: https://github.com/llvm/llvm-project/commit/911c1370546f5f2deb72a5660a77a1b2f28d6f7a.diff
LOG: [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
Added:
Modified:
flang/include/flang/Optimizer/CodeGen/CGPasses.td
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/CodeGen/CGPasses.td b/flang/include/flang/Optimizer/CodeGen/CGPasses.td
index 247440983019b..8aa75d1cb771e 100644
--- a/flang/include/flang/Optimizer/CodeGen/CGPasses.td
+++ b/flang/include/flang/Optimizer/CodeGen/CGPasses.td
@@ -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">
More information about the flang-commits
mailing list