13 #ifndef CIRCT_DIALECT_FIRRTL_FIRRTLATTRIBUTES_H
14 #define CIRCT_DIALECT_FIRRTL_FIRRTLATTRIBUTES_H
47 IntegerAttr
packAttribute(MLIRContext *context, ArrayRef<Direction> directions);
57 #define GET_ATTRDEF_CLASSES
58 #include "circt/Dialect/FIRRTL/FIRRTLAttributes.h.inc"
IntegerAttr packAttribute(MLIRContext *context, ArrayRef< Direction > directions)
Return a IntegerAttr containing the packed representation of an array of directions.
StringRef toString(Direction direction)
Direction flip(Direction direction)
Flip a port direction.
SmallVector< Direction > unpackAttribute(IntegerAttr directions)
Turn a packed representation of port attributes into a vector that can be worked with.
Direction get(bool isOutput)
Return an output direction if isOutput is true, otherwise return an input direction.
Direction
This represents the direction of a single port.
T & operator<<(T &os, FIRVersion version)
This file defines an intermediate representation for circuits acting as an abstraction for constraint...