CIRCT  20.0.0git
Passes.cpp
Go to the documentation of this file.
1 //===- Passes.cpp - Pass Utilities ------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "circt/Support/Passes.h"
10 #include "mlir/Transforms/GreedyPatternRewriteDriver.h"
11 #include "mlir/Transforms/Passes.h"
12 
13 using namespace circt;
14 
15 std::unique_ptr<Pass> circt::createSimpleCanonicalizerPass() {
16  mlir::GreedyRewriteConfig config;
17  config.useTopDownTraversal = true;
18  config.enableRegionSimplification = mlir::GreedySimplifyRegionLevel::Disabled;
19  return mlir::createCanonicalizerPass(config);
20 }
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition: DebugAnalysis.h:21
std::unique_ptr< Pass > createSimpleCanonicalizerPass()
Create a simple canonicalizer pass.
Definition: Passes.cpp:15