[flang-commits] [flang] e2bd29a - [flang][NFC] Update the CG rewrite pass.
Eric Schweitz via flang-commits
flang-commits at lists.llvm.org
Tue Feb 2 11:56:39 PST 2021
Author: Eric Schweitz
Date: 2021-02-02T11:56:21-08:00
New Revision: e2bd29a0d680158a66472859a18af0f1d450bbe1
URL: https://github.com/llvm/llvm-project/commit/e2bd29a0d680158a66472859a18af0f1d450bbe1
DIFF: https://github.com/llvm/llvm-project/commit/e2bd29a0d680158a66472859a18af0f1d450bbe1.diff
LOG: [flang][NFC] Update the CG rewrite pass.
Add description and dependencies.
Differential Revision: https://reviews.llvm.org/D95888
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 187147b8375f..46442a281606 100644
--- a/flang/include/flang/Optimizer/CodeGen/CGPasses.td
+++ b/flang/include/flang/Optimizer/CodeGen/CGPasses.td
@@ -16,9 +16,13 @@
include "mlir/Pass/PassBase.td"
-def CodeGenRewrite : FunctionPass<"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 dependentDialects = ["fir::FIROpsDialect"];
}
#endif // FLANG_OPTIMIZER_CODEGEN_PASSES
More information about the flang-commits
mailing list