17 #include "llvm/Support/GraphWriter.h"
18 #include "llvm/Support/raw_ostream.h"
20 using namespace circt;
24 struct PrintFSMGraphPass :
public PrintFSMGraphBase<PrintFSMGraphPass> {
25 PrintFSMGraphPass(raw_ostream &os) : os(os) {}
26 void runOnOperation()
override {
28 auto fsmGraph = fsm::FSMGraph(machine);
29 llvm::WriteGraph(os, &fsmGraph,
false);
37 return std::make_unique<PrintFSMGraphPass>(
llvm::errs());
std::unique_ptr< mlir::Pass > createPrintFSMGraphPass()
This file defines an intermediate representation for circuits acting as an abstraction for constraint...
mlir::raw_indented_ostream & errs()