CIRCT 24.0.0git
Loading...
Searching...
No Matches
FIRRTLAnnotations.cpp File Reference
#include "circt/Dialect/FIRRTL/FIRRTLAnnotations.h"
#include "circt/Dialect/FIRRTL/AnnotationDetails.h"
#include "circt/Dialect/FIRRTL/FIRRTLAttributes.h"
#include "circt/Dialect/FIRRTL/FIRRTLOps.h"
#include "circt/Dialect/FIRRTL/FIRRTLUtils.h"
#include "circt/Dialect/FIRRTL/Namespace.h"
#include "circt/Dialect/HW/HWAttributes.h"
#include "circt/Dialect/HW/InnerSymbolNamespace.h"
#include "mlir/IR/Operation.h"
#include "mlir/Interfaces/FunctionImplementation.h"
#include "llvm/ADT/TypeSwitch.h"
Include dependency graph for FIRRTLAnnotations.cpp:

Go to the source code of this file.

Functions

static ArrayAttr getAnnotationsFrom (Operation *op)
static ArrayAttr getAnnotationsFrom (ArrayRef< Annotation > annotations, MLIRContext *context)
static AnnotationSet forPort (Operation *op, size_t portNo)
static bool applyToPort (AnnotationSet annos, Operation *op, size_t portCount, size_t portNo)

Function Documentation

◆ applyToPort()

bool applyToPort ( AnnotationSet annos,
Operation * op,
size_t portCount,
size_t portNo )
static

◆ forPort()

AnnotationSet forPort ( Operation * op,
size_t portNo )
static

Definition at line 63 of file FIRRTLAnnotations.cpp.

References circt::firrtl::getPortAnnotationAttrName().

◆ getAnnotationsFrom() [1/2]

ArrayAttr getAnnotationsFrom ( ArrayRef< Annotation > annotations,
MLIRContext * context )
static

Definition at line 34 of file FIRRTLAnnotations.cpp.

References attrs, and context.

◆ getAnnotationsFrom() [2/2]

ArrayAttr getAnnotationsFrom ( Operation * op)
static