CIRCT
20.0.0git
Loading...
Searching...
No Matches
lib
Support
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
}
Passes.h
circt
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition
DebugAnalysis.h:21
circt::createSimpleCanonicalizerPass
std::unique_ptr< Pass > createSimpleCanonicalizerPass()
Create a simple canonicalizer pass.
Definition
Passes.cpp:15
Generated on Thu Jan 23 2025 00:07:29 for CIRCT by
1.9.8