[flang][NFC] Update the CG rewrite pass.
authorEric Schweitz <eschweitz@nvidia.com>
Tue, 2 Feb 2021 18:56:50 +0000 (10:56 -0800)
committerEric Schweitz <eschweitz@nvidia.com>
Tue, 2 Feb 2021 19:56:21 +0000 (11:56 -0800)
Add description and dependencies.

Differential Revision: https://reviews.llvm.org/D95888

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

index 187147b..46442a2 100644 (file)
 
 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