CIRCT  20.0.0git
Namespaces | Macros | Functions
ExtractInstances.cpp File Reference
#include "circt/Dialect/Emit/EmitOps.h"
#include "circt/Dialect/FIRRTL/AnnotationDetails.h"
#include "circt/Dialect/FIRRTL/FIRRTLAnnotations.h"
#include "circt/Dialect/FIRRTL/FIRRTLInstanceGraph.h"
#include "circt/Dialect/FIRRTL/FIRRTLOps.h"
#include "circt/Dialect/FIRRTL/FIRRTLUtils.h"
#include "circt/Dialect/FIRRTL/NLATable.h"
#include "circt/Dialect/FIRRTL/Namespace.h"
#include "circt/Dialect/FIRRTL/Passes.h"
#include "circt/Dialect/HW/HWAttributes.h"
#include "circt/Dialect/HW/HWDialect.h"
#include "circt/Dialect/HW/InnerSymbolNamespace.h"
#include "circt/Dialect/SV/SVOps.h"
#include "circt/Support/Path.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/ImplicitLocOpBuilder.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Support/FileUtilities.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "circt/Dialect/FIRRTL/Passes.h.inc"
Include dependency graph for ExtractInstances.cpp:

Go to the source code of this file.

Namespaces

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

Macros

#define DEBUG_TYPE   "firrtl-extract-instances"
 
#define GEN_PASS_DEF_EXTRACTINSTANCES
 

Functions

static bool isAnnoInteresting (Annotation anno)
 
static unsigned findInstanceInNLA (InstanceOp inst, hw::HierPathOp nla)
 Find the location in an NLA that corresponds to a given instance (either by mentioning exactly the instance, or the instance's parent module). More...
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "firrtl-extract-instances"

Definition at line 38 of file ExtractInstances.cpp.

◆ GEN_PASS_DEF_EXTRACTINSTANCES

#define GEN_PASS_DEF_EXTRACTINSTANCES

Definition at line 42 of file ExtractInstances.cpp.

Function Documentation

◆ findInstanceInNLA()

static unsigned findInstanceInNLA ( InstanceOp  inst,
hw::HierPathOp  nla 
)
static

Find the location in an NLA that corresponds to a given instance (either by mentioning exactly the instance, or the instance's parent module).

Returns a position within the NLA's path, or the length of the path if the instances was not found.

Definition at line 471 of file ExtractInstances.cpp.

References circt::firrtl::getInnerSymName().

◆ isAnnoInteresting()

static bool isAnnoInteresting ( Annotation  anno)
static