CIRCT
20.0.0git
|
#include "circt/Dialect/FIRRTL/FIRRTLAnnotationHelper.h"
#include "circt/Dialect/FIRRTL/AnnotationDetails.h"
#include "circt/Dialect/FIRRTL/FIRRTLUtils.h"
#include "mlir/IR/ImplicitLocOpBuilder.h"
#include "llvm/Support/Debug.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "lower-annos" |
Functions | |
static LogicalResult | updateExpandedPort (StringRef field, AnnoTarget &ref) |
static FailureOr< unsigned > | findBundleElement (Operation *op, Type type, StringRef field) |
Try to resolve an non-array aggregate name from a target given the type and operation of the resolved target. More... | |
static FailureOr< unsigned > | findVectorElement (Operation *op, Type type, StringRef indexStr) |
Try to resolve an array index from a target given the type of the resolved target. More... | |
static FailureOr< unsigned > | findFieldID (AnnoTarget &ref, ArrayRef< TargetToken > tokens) |
static Value | lowerInternalPathAnno (AnnoPathValue &srcTarget, const AnnoPathValue &moduleTarget, const AnnoPathValue &target, StringAttr internalPathAttr, FIRRTLBaseType targetType, ApplyState &state) |
#define DEBUG_TYPE "lower-annos" |
Definition at line 19 of file FIRRTLAnnotationHelper.cpp.
|
static |
Try to resolve an non-array aggregate name from a target given the type and operation of the resolved target.
This needs to deal with places where we represent bundle returns as split into constituent parts.
Definition at line 43 of file FIRRTLAnnotationHelper.cpp.
Referenced by findFieldID().
|
static |
Definition at line 78 of file FIRRTLAnnotationHelper.cpp.
References findBundleElement(), findVectorElement(), circt::firrtl::AnnoTarget::getOp(), circt::firrtl::AnnoTarget::getType(), and updateExpandedPort().
Referenced by circt::firrtl::resolveEntities().
|
static |
Try to resolve an array index from a target given the type of the resolved target.
Definition at line 62 of file FIRRTLAnnotationHelper.cpp.
Referenced by findFieldID().
|
static |
Definition at line 420 of file FIRRTLAnnotationHelper.cpp.
References circt::firrtl::addPortsToModule(), circt::firrtl::emitConnect(), circt::calyx::direction::get(), circt::igraph::InstancePathCache::getAbsolutePaths(), circt::firrtl::AnnoTarget::getOp(), circt::igraph::InstancePathCache::instanceGraph, circt::firrtl::ApplyState::instancePathCache, circt::firrtl::AnnoPathValue::instances, circt::igraph::InstanceGraph::lookup(), circt::firrtl::Out, circt::firrtl::AnnoPathValue::ref, circt::firrtl::ApplyState::targetCaches, and circt::firrtl::ApplyState::wiringProblemInstRefs.
Referenced by circt::firrtl::applyGCTDataTaps().
|
static |
Definition at line 29 of file FIRRTLAnnotationHelper.cpp.
References circt::firrtl::AnnoTarget::getOp().
Referenced by findFieldID().