CIRCT
20.0.0git
|
#include <SVOps.h>
Public Member Functions | |
size_t | getWidth () const |
CasePatternBit | getBit (size_t bitNumber) const |
Return the specified bit, bit 0 is the least significant bit. More... | |
bool | hasX () const override |
Return true if this pattern has an X. More... | |
bool | hasZ () const override |
Return true if this pattern has an Z. More... | |
Attribute | attr () const override |
CaseBitPattern (ArrayRef< CasePatternBit > bits, MLIRContext *context) | |
Get a CasePattern from a specified list of CasePatternBit. More... | |
CaseBitPattern (const APInt &value, MLIRContext *context) | |
Get a CasePattern for the specified constant value. More... | |
CaseBitPattern (IntegerAttr attr) | |
Get a CasePattern with a correctly encoded attribute. More... | |
Public Member Functions inherited from circt::sv::CasePattern | |
CasePattern (CasePatternKind kind) | |
virtual | ~CasePattern () |
CasePatternKind | getKind () const |
Static Public Member Functions | |
static bool | classof (const CasePattern *S) |
Private Attributes | |
IntegerAttr | intAttr |
Additional Inherited Members | |
Public Types inherited from circt::sv::CasePattern | |
enum | CasePatternKind { CPK_bit , CPK_enum , CPK_default } |
CaseBitPattern::CaseBitPattern | ( | ArrayRef< CasePatternBit > | bits, |
MLIRContext * | context | ||
) |
Get a CasePattern from a specified list of CasePatternBit.
Bits are specified in most least significant order - element zero is the least significant bit.
Definition at line 788 of file SVOps.cpp.
References circt::calyx::direction::get(), intAttr, and pattern.
CaseBitPattern::CaseBitPattern | ( | const APInt & | value, |
MLIRContext * | context | ||
) |
Get a CasePattern for the specified constant value.
|
inline |
Get a CasePattern with a correctly encoded attribute.
|
inlineoverridevirtual |
|
inlinestatic |
Definition at line 119 of file SVOps.h.
References circt::sv::CasePattern::CPK_bit, and circt::sv::CasePattern::getKind().
auto CaseBitPattern::getBit | ( | size_t | bitNumber | ) | const |
|
inline |
|
overridevirtual |
Return true if this pattern has an X.
Reimplemented from circt::sv::CasePattern.
Definition at line 757 of file SVOps.cpp.
References circt::sv::AnyX, getBit(), and getWidth().
|
overridevirtual |
Return true if this pattern has an Z.
Reimplemented from circt::sv::CasePattern.
Definition at line 764 of file SVOps.cpp.
References circt::sv::AnyZ, getBit(), and getWidth().
|
private |
Definition at line 122 of file SVOps.h.
Referenced by attr(), CaseBitPattern(), and getWidth().