CIRCT 20.0.0git
Loading...
Searching...
No Matches
Functions
circt::calyx::direction Namespace Reference

Functions

Direction get (bool isOutput)
 Returns an output direction if isOutput is true, otherwise returns an input direction.
 
IntegerAttr packAttribute (MLIRContext *context, size_t nIns, size_t nOuts)
 Returns an IntegerAttr containing the packed representation of the direction counts.
 

Function Documentation

◆ get()

Direction circt::calyx::direction::get ( bool  isOutput)

Returns an output direction if isOutput is true, otherwise returns an input direction.

Definition at line 55 of file CalyxOps.cpp.

◆ packAttribute()

IntegerAttr circt::calyx::direction::packAttribute ( MLIRContext *  context,
size_t  nIns,
size_t  nOuts 
)

Returns an IntegerAttr containing the packed representation of the direction counts.

Direction::Input is zero, and Direction::Output is one.

Definition at line 59 of file CalyxOps.cpp.

Referenced by buildComponentLike(), and parseComponentSignature().