Skip to content

Commit

Permalink
[FIRRTL] Delete CheckCombCycles, remove -use-old-check-comb-cycles. (#…
Browse files Browse the repository at this point in the history
…5410)

CheckCombLoops has replaced this for some time now.

Code lives on in version history if needed.
  • Loading branch information
dtzSiFive authored Jun 15, 2023
1 parent 5f9d04e commit a343950
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 843 deletions.
2 changes: 0 additions & 2 deletions include/circt/Dialect/FIRRTL/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ createBlackBoxReaderPass(std::optional<mlir::StringRef> inputPrefix = {});
std::unique_ptr<mlir::Pass>
createGrandCentralPass(bool instantiateCompanionOnly = false);

std::unique_ptr<mlir::Pass> createCheckCombCyclesPass();

std::unique_ptr<mlir::Pass> createCheckCombLoopsPass();

std::unique_ptr<mlir::Pass> createSFCCompatPass();
Expand Down
12 changes: 0 additions & 12 deletions include/circt/Dialect/FIRRTL/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -469,18 +469,6 @@ def GrandCentral : Pass<"firrtl-grand-central", "CircuitOp"> {
];
}

def CheckCombCycles : Pass<"firrtl-check-comb-cycles", "firrtl::CircuitOp"> {
let summary = "Check combinational cycles and emit errors";
let description = [{
This pass checks combinational cycles in the IR and emit errors.
}];
let options = [
Option<"printSimpleCycle", "print-simple-cycle", "bool", "true",
"Print a simple cycle instead of printing all operations in SCC">
];
let constructor = "circt::firrtl::createCheckCombCyclesPass()";
}

def CheckCombLoops : Pass<"firrtl-check-comb-loops", "firrtl::CircuitOp"> {
let summary = "Check combinational cycles and emit errors";
let description = [{
Expand Down
6 changes: 0 additions & 6 deletions include/circt/Firtool/Firtool.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ struct FirtoolOptions {
"dedup", llvm::cl::desc("Deduplicate structurally identical modules"),
llvm::cl::init(false), llvm::cl::cat(category)};

llvm::cl::opt<bool> useOldCheckCombCycles{
"use-old-check-comb-cycles",
llvm::cl::desc(
"Use old CheckCombCycles pass, that does not support aggregates"),
llvm::cl::init(false), llvm::cl::Hidden, llvm::cl::cat(category)};

llvm::cl::opt<bool> grandCentralInstantiateCompanionOnly{
"grand-central-instantiate-companion",
llvm::cl::desc("Run Grand Central in a mode where the companion module "
Expand Down
1 change: 0 additions & 1 deletion lib/Dialect/FIRRTL/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
add_circt_dialect_library(CIRCTFIRRTLTransforms
AddSeqMemPorts.cpp
BlackBoxReader.cpp
CheckCombCycles.cpp
CheckCombLoops.cpp
CreateSiFiveMetadata.cpp
Dedup.cpp
Expand Down
Loading

0 comments on commit a343950

Please sign in to comment.