forked from OSchip/llvm-project
[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:
parent
ca36cc56ac
commit
911c137054
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue