CIRCT  20.0.0git
Namespaces | Macros | Functions | Variables
ExportChiselInterface.cpp File Reference
#include "circt/Conversion/ExportChiselInterface.h"
#include "circt/Dialect/FIRRTL/FIRRTLOps.h"
#include "circt/Support/Version.h"
#include "mlir/Support/FileUtilities.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/ToolOutputFile.h"
#include "circt/Conversion/Passes.h.inc"
Include dependency graph for ExportChiselInterface.cpp:

Go to the source code of this file.

Namespaces

 circt
 The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
 

Macros

#define GEN_PASS_DEF_EXPORTCHISELINTERFACE
 
#define GEN_PASS_DEF_EXPORTSPLITCHISELINTERFACE
 
#define DEBUG_TYPE   "export-chisel-package"
 

Functions

static LogicalResult exportChiselInterface (CircuitOp circuit, llvm::raw_ostream &os)
 Exports a Chisel interface to the output stream. More...
 
static LogicalResult exportSplitChiselInterface (CircuitOp circuit, StringRef outputDirectory)
 Exports Chisel interface files for the circuit to the specified directory. More...
 

Variables

static const unsigned int indentIncrement = 2
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "export-chisel-package"

Definition at line 30 of file ExportChiselInterface.cpp.

◆ GEN_PASS_DEF_EXPORTCHISELINTERFACE

#define GEN_PASS_DEF_EXPORTCHISELINTERFACE

Definition at line 22 of file ExportChiselInterface.cpp.

◆ GEN_PASS_DEF_EXPORTSPLITCHISELINTERFACE

#define GEN_PASS_DEF_EXPORTSPLITCHISELINTERFACE

Definition at line 23 of file ExportChiselInterface.cpp.

Function Documentation

◆ exportChiselInterface()

static LogicalResult exportChiselInterface ( CircuitOp  circuit,
llvm::raw_ostream &  os 
)
static

Exports a Chisel interface to the output stream.

Definition at line 223 of file ExportChiselInterface.cpp.

References circt::getCirctVersionComment().

Referenced by exportSplitChiselInterface().

◆ exportSplitChiselInterface()

static LogicalResult exportSplitChiselInterface ( CircuitOp  circuit,
StringRef  outputDirectory 
)
static

Exports Chisel interface files for the circuit to the specified directory.

Definition at line 253 of file ExportChiselInterface.cpp.

References append(), and exportChiselInterface().

Variable Documentation

◆ indentIncrement

const unsigned int indentIncrement = 2
static

Definition at line 36 of file ExportChiselInterface.cpp.