|
CIRCT 22.0.0git
|
Functions | |
| static Direction | get (bool isOutput) |
Return an output direction if isOutput is true, otherwise return an input direction. | |
| static bool | unGet (Direction dir) |
| Convert from Direction to bool. The opposite of get;. | |
| Direction | flip (Direction direction) |
| Flip a port direction. | |
| static StringRef | toString (Direction direction) |
| static StringRef | toString (bool direction) |
| mlir::DenseBoolArrayAttr | packAttribute (MLIRContext *context, ArrayRef< Direction > directions) |
Return a DenseBoolArrayAttr containing the packed representation of an array of directions. | |
| mlir::DenseBoolArrayAttr | packAttribute (MLIRContext *context, ArrayRef< bool > directions) |
Return a DenseBoolArrayAttr containing the packed representation of an array of directions. | |
| SmallVector< Direction > | unpackAttribute (mlir::DenseBoolArrayAttr directions) |
| Turn a packed representation of port attributes into a vector that can be worked with. | |
Flip a port direction.
Definition at line 27 of file FIRRTLAttributes.cpp.
|
inlinestatic |
Return an output direction if isOutput is true, otherwise return an input direction.
Definition at line 36 of file FIRRTLEnums.h.
Referenced by printModulePorts(), toString(), and unpackAttribute().
| mlir::DenseBoolArrayAttr circt::firrtl::direction::packAttribute | ( | MLIRContext * | context, |
| ArrayRef< bool > | directions | ||
| ) |
Return a DenseBoolArrayAttr containing the packed representation of an array of directions.
Definition at line 47 of file FIRRTLAttributes.cpp.
| mlir::DenseBoolArrayAttr circt::firrtl::direction::packAttribute | ( | MLIRContext * | context, |
| ArrayRef< Direction > | directions | ||
| ) |
Return a DenseBoolArrayAttr containing the packed representation of an array of directions.
Definition at line 38 of file FIRRTLAttributes.cpp.
Referenced by buildModuleLike(), erasePorts(), firrtlAttrGetPortDirs(), insertPorts(), lowerModuleSignature(), parseClassLike(), and parseFModuleLikeOp().
|
inlinestatic |
Definition at line 48 of file FIRRTLEnums.h.
References get(), and toString().
|
inlinestatic |
Definition at line 44 of file FIRRTLEnums.h.
References circt::firrtl::In.
Referenced by Equivalence::check(), circt::firrtl::operator<<(), toString(), circt::firrtl::instance_like_impl::verifyReferencedModule(), and circt::firrtl::detail::verifyTypeAgainstClassLike().
|
inlinestatic |
Convert from Direction to bool. The opposite of get;.
Definition at line 39 of file FIRRTLEnums.h.
Referenced by insertPorts().
| SmallVector< Direction > circt::firrtl::direction::unpackAttribute | ( | mlir::DenseBoolArrayAttr | directions | ) |
Turn a packed representation of port attributes into a vector that can be worked with.
Definition at line 54 of file FIRRTLAttributes.cpp.
References get().