CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::debug Namespace Reference

Classes

struct  EmitHGLDDOptions
 Options for HGLDD emission. More...

Functions

void registerTranslations ()
 Register all debug information emission flavors as from-MLIR translations.
LogicalResult dumpDebugInfo (Operation *module, llvm::raw_ostream &os)
 Dump the debug information in the given module in a human-readable format.
LogicalResult emitHGLDD (Operation *module, llvm::raw_ostream &os, const EmitHGLDDOptions &options={})
 Serialize the debug information in the given module into the HGLDD format and writes it to output.
LogicalResult emitSplitHGLDD (Operation *module, const EmitHGLDDOptions &options={})
 Serialize the debug information in the given module into the HGLDD format and emit one companion HGLDD file per emitted HDL file.
static void registerDialects (DialectRegistry &registry)
void registerDumpTranslation ()
void registerHGLDDTranslation ()

Function Documentation

◆ dumpDebugInfo()

LogicalResult circt::debug::dumpDebugInfo ( Operation * module,
llvm::raw_ostream & os )

Dump the debug information in the given module in a human-readable format.

Definition at line 72 of file DumpDebugInfo.cpp.

References dump(), dumpDebugInfo(), and success().

Referenced by dumpDebugInfo(), and registerDumpTranslation().

◆ emitHGLDD()

LogicalResult circt::debug::emitHGLDD ( Operation * module,
llvm::raw_ostream & os,
const EmitHGLDDOptions & options = {} )

Serialize the debug information in the given module into the HGLDD format and writes it to output.

Definition at line 1034 of file EmitHGLDD.cpp.

References emitHGLDD(), and success().

Referenced by emitHGLDD(), and registerHGLDDTranslation().

◆ emitSplitHGLDD()

LogicalResult circt::debug::emitSplitHGLDD ( Operation * module,
const EmitHGLDDOptions & options = {} )

Serialize the debug information in the given module into the HGLDD format and emit one companion HGLDD file per emitted HDL file.

This requires that a prior emission pass such as ExportVerilog has annotated emission locations on the operations in module.

Definition at line 1045 of file EmitHGLDD.cpp.

References emitSplitHGLDD(), failure(), and success().

Referenced by emitSplitHGLDD(), and registerHGLDDTranslation().

◆ registerDialects()

void circt::debug::registerDialects ( DialectRegistry & registry)
static

Definition at line 25 of file TranslateRegistration.cpp.

Referenced by registerDumpTranslation(), and registerHGLDDTranslation().

◆ registerDumpTranslation()

void circt::debug::registerDumpTranslation ( )

Definition at line 35 of file TranslateRegistration.cpp.

References dumpDebugInfo(), and registerDialects().

Referenced by registerTranslations().

◆ registerHGLDDTranslation()

◆ registerTranslations()

void circt::debug::registerTranslations ( )

Register all debug information emission flavors as from-MLIR translations.

Definition at line 83 of file TranslateRegistration.cpp.

References registerDumpTranslation(), and registerHGLDDTranslation().

Referenced by circt::registerAllTranslations().