CIRCT  19.0.0git
Macros | Functions
ExtractInstances.cpp File Reference
#include "PassDetails.h"
#include "circt/Dialect/FIRRTL/AnnotationDetails.h"
#include "circt/Dialect/FIRRTL/FIRRTLAnnotations.h"
#include "circt/Dialect/FIRRTL/FIRRTLInstanceGraph.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/Support/FileUtilities.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
Include dependency graph for ExtractInstances.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "firrtl-extract-instances"
 

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 36 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 454 of file ExtractInstances.cpp.

References circt::firrtl::getInnerSymName().

◆ isAnnoInteresting()

static bool isAnnoInteresting ( Annotation  anno)
static