CIRCT 24.0.0git
Loading...
Searching...
No Matches
FIRRTLUtils.cpp File Reference
#include "circt/Dialect/FIRRTL/FIRRTLUtils.h"
#include "circt/Dialect/FIRRTL/FIRRTLInstanceGraph.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Dialect/HW/InnerSymbolNamespace.h"
#include "circt/Dialect/Seq/SeqTypes.h"
#include "circt/Support/Naming.h"
#include "mlir/IR/ImplicitLocOpBuilder.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/TypeSwitch.h"
Include dependency graph for FIRRTLUtils.cpp:

Go to the source code of this file.

Functions

template<typename ATy, typename IndexOp, bool isBundle>
static LogicalResult connectIfAggregates (ImplicitLocOpBuilder &builder, Value dst, FIRRTLType dstFType, Value src, FIRRTLType srcFType, llvm::function_ref< Location()> getDiagLoc, bool warnOnTruncation)
static void getDeclName (Value value, SmallString< 64 > &string, bool nameSafe)
 Get the string name of a value which is a direct child of a declaration op.

Function Documentation

◆ connectIfAggregates()

template<typename ATy, typename IndexOp, bool isBundle>
LogicalResult connectIfAggregates ( ImplicitLocOpBuilder & builder,
Value dst,
FIRRTLType dstFType,
Value src,
FIRRTLType srcFType,
llvm::function_ref< Location()> getDiagLoc,
bool warnOnTruncation )
static

◆ getDeclName()

void getDeclName ( Value value,
SmallString< 64 > & string,
bool nameSafe )
static

Get the string name of a value which is a direct child of a declaration op.

Definition at line 602 of file FIRRTLUtils.cpp.

Referenced by circt::firrtl::getFieldName(), and getFieldName().