|
| template<typename T > |
| static T & | circt::firrtl::operator<< (T &os, const AnnoPathValue &path) |
| |
| template<typename T > |
| static T & | circt::firrtl::operator<< (T &os, const OpAnnoTarget &target) |
| |
| template<typename T > |
| static T & | circt::firrtl::operator<< (T &os, const PortAnnoTarget &target) |
| |
| template<typename T > |
| static T & | circt::firrtl::operator<< (T &os, const AnnoTarget &target) |
| |
| std::string | circt::firrtl::canonicalizeTarget (StringRef target) |
| | Return an input target string in canonical form.
|
| |
| std::optional< TokenAnnoTarget > | circt::firrtl::tokenizePath (StringRef origTarget) |
| | Parse a FIRRTL annotation path into its constituent parts.
|
| |
| std::optional< AnnoPathValue > | circt::firrtl::resolveEntities (TokenAnnoTarget path, CircuitOp circuit, SymbolTable &symTbl, CircuitTargetCache &cache) |
| | Convert a parsed target string to a resolved target structure.
|
| |
| std::optional< AnnoPathValue > | circt::firrtl::resolvePath (StringRef rawPath, CircuitOp circuit, SymbolTable &symTbl, CircuitTargetCache &cache) |
| | Resolve a string path to a named item inside a circuit.
|
| |
| LogicalResult | circt::firrtl::applyGCTView (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state) |
| |
| LogicalResult | circt::firrtl::applyGCTDataTaps (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state) |
| |
| LogicalResult | circt::firrtl::applyGCTMemTaps (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state) |
| |
| LogicalResult | circt::firrtl::applyTraceName (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state) |
| | Expand a TraceNameAnnotation (which has don't touch semantics) into a TraceAnnotation (which does NOT have don't touch semantics) and separate DontTouchAnnotations for targets that are not modules, external modules, or instances (as these targets are not valid for a don't touch).
|
| |
| LogicalResult | circt::firrtl::applyWiring (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state) |
| | Consume SourceAnnotation and SinkAnnotation, storing into state.
|
| |
| template<typename A > |
| A | circt::firrtl::tryGetAsBase (DictionaryAttr dict, Attribute root, StringRef key, Location loc, Twine whatSpecific, Twine whatFull, Twine path=Twine()) |
| | Implements the same behavior as DictionaryAttr::getAs<A> to return the value of a specific type associated with a key in a dictionary.
|
| |
| template<typename A > |
| A | circt::firrtl::tryGetAs (DictionaryAttr dict, Attribute root, StringRef key, Location loc, Twine clazz, Twine path=Twine()) |
| | Implements the same behavior as DictionaryAttr::getAs<A> to return the value of a specific type associated with a key in a dictionary.
|
| |
| InstanceOp | circt::firrtl::addPortsToModule (FModuleLike mod, InstanceOp instOnPath, FIRRTLType portType, Direction dir, StringRef newName, InstancePathCache &instancePathcache, CircuitTargetCache *targetCaches=nullptr) |
| | Add ports to the module and all its instances and return the clone for instOnPath.
|
| |
| LogicalResult | circt::firrtl::registerAnnotationRecord (StringRef annoClass, AnnoRecord annoRecord, const std::function< void(llvm::Twine)> &errorHandler={}) |
| | Register external annotation records.
|
| |
| std::optional< AnnoPathValue > | circt::firrtl::stdResolve (DictionaryAttr anno, ApplyState &state) |
| | ===-------------------------------------------------------------------—===// Standard Utility Resolvers ===-------------------------------------------------------------------—===//
|
| |
| std::optional< AnnoPathValue > | circt::firrtl::tryResolve (DictionaryAttr anno, ApplyState &state) |
| | Resolves with target, if it exists. If not, resolves to the circuit.
|
| |
| LogicalResult | circt::firrtl::applyWithoutTargetImpl (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state, bool allowNonLocal) |
| | ===-------------------------------------------------------------------—===// Standard Utility Appliers ===-------------------------------------------------------------------—===//
|
| |
| template<bool allowNonLocal, bool allowPortAnnoTarget, typename T , typename... Tr> |
| static LogicalResult | circt::firrtl::applyWithoutTarget (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state) |
| | An applier which puts the annotation on the target and drops the 'target' field from the annotation.
|
| |
| template<bool allowNonLocal, typename T , typename... Tr> |
| static LogicalResult | circt::firrtl::applyWithoutTarget (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state) |
| |
| template<bool allowNonLocal = false> |
| static LogicalResult | circt::firrtl::applyWithoutTarget (const AnnoPathValue &target, DictionaryAttr anno, ApplyState &state) |
| | An applier which puts the annotation on the target and drops the 'target' field from the annotaiton.
|
| |