CIRCT  19.0.0git
Classes | Macros | Functions
InnerSymbolDCE.cpp File Reference
#include "PassDetails.h"
#include "circt/Dialect/FIRRTL/FIRRTLOps.h"
#include "circt/Dialect/HW/HWAttributes.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Threading.h"
#include "llvm/Support/Debug.h"
Include dependency graph for InnerSymbolDCE.cpp:

Go to the source code of this file.


struct  InnerSymbolDCEPass


#define DEBUG_TYPE   "firrtl-inner-symbol-dce"


static void dropSymbol (const InnerSymTarget &target)
 Drop the specified symbol. More...

Macro Definition Documentation


#define DEBUG_TYPE   "firrtl-inner-symbol-dce"

Definition at line 19 of file InnerSymbolDCE.cpp.

Function Documentation

◆ dropSymbol()

static void dropSymbol ( const InnerSymTarget target)

Drop the specified symbol.

Belongs in InnerSymbolTable, need to move port symbols accessors into HW(ModuleLike) or perhaps a new inner-symbol interface that dialects can optionally elect to use on their "ModuleLike"s. For now, since InnerSymbolDCE is FIRRTL-only, define this here.

Definition at line 31 of file InnerSymbolDCE.cpp.

References assert(), circt::hw::InnerSymTarget::getField(), circt::hw::InnerSymTarget::getOp(), circt::hw::InnerSymTarget::getPort(), and circt::hw::InnerSymTarget::isPort().

Referenced by InnerSymbolDCEPass::removeInnerSyms().