CIRCT  19.0.0git
Functions
CreateSiFiveMetadata.cpp File Reference
#include "PassDetails.h"
#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/FIRRTLTypes.h"
#include "circt/Dialect/FIRRTL/FIRRTLUtils.h"
#include "circt/Dialect/FIRRTL/Namespace.h"
#include "circt/Dialect/FIRRTL/Passes.h"
#include "circt/Dialect/HW/InnerSymbolNamespace.h"
#include "circt/Dialect/SV/SVOps.h"
#include "mlir/IR/ImplicitLocOpBuilder.h"
#include "mlir/IR/Location.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/Path.h"
Include dependency graph for CreateSiFiveMetadata.cpp:

Go to the source code of this file.

Functions

static LogicalResult removeAnnotationWithFilename (Operation *op, StringRef annoClass, StringRef &filename)
 This will search for a target annotation and remove it from the operation. More...
 

Function Documentation

◆ removeAnnotationWithFilename()

static LogicalResult removeAnnotationWithFilename ( Operation *  op,
StringRef  annoClass,
StringRef &  filename 
)
static

This will search for a target annotation and remove it from the operation.

If the annotation has a filename, it will be returned in the output argument. If the annotation is missing the filename member, or if more than one matching annotation is attached, it will print an error and return failure.

Definition at line 644 of file CreateSiFiveMetadata.cpp.

References circt::firrtl::Annotation::getMember(), and circt::firrtl::Annotation::isClass().