CIRCT 20.0.0git
Loading...
Searching...
No Matches
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
10#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
11#include "mlir/Transforms/Passes.h"
12
13using namespace circt;
14
15std::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.
std::unique_ptr< Pass > createSimpleCanonicalizerPass()
Create a simple canonicalizer pass.
Definition Passes.cpp:15