|
CIRCT 24.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. | |
| bool | hasX () const override |
| Return true if this pattern has an X. | |
| bool | hasZ () const override |
| Return true if this pattern has an Z. | |
| Attribute | attr () const override |
| CaseBitPattern (ArrayRef< CasePatternBit > bits, MLIRContext *context) | |
| Get a CasePattern from a specified list of CasePatternBit. | |
| CaseBitPattern (const APInt &value, MLIRContext *context) | |
| Get a CasePattern for the specified constant value. | |
| CaseBitPattern (IntegerAttr attr) | |
| Get a CasePattern with a correctly encoded attribute. | |
| 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_expr , 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 998 of file SVOps.cpp.
References circt::sv::CasePattern::CasePattern(), context, circt::sv::CasePattern::CPK_bit, and intAttr.
Referenced by CaseBitPattern().
| CaseBitPattern::CaseBitPattern | ( | const APInt & | value, |
| MLIRContext * | context ) |
Get a CasePattern for the specified constant value.
Definition at line 992 of file SVOps.cpp.
References CaseBitPattern(), context, and getPatternBitsForValue().
|
inline |
Get a CasePattern with a correctly encoded attribute.
Definition at line 119 of file SVOps.h.
References attr(), circt::sv::CasePattern::CasePattern(), circt::sv::CasePattern::CPK_bit, and intAttr.
|
inlineoverridevirtual |
Implements circt::sv::CasePattern.
Definition at line 108 of file SVOps.h.
References intAttr.
Referenced by CaseBitPattern().
|
inlinestatic |
Definition at line 121 of file SVOps.h.
References circt::sv::CasePattern::CasePattern(), 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 967 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 974 of file SVOps.cpp.
References circt::sv::AnyZ, getBit(), and getWidth().
|
private |
Definition at line 124 of file SVOps.h.
Referenced by attr(), CaseBitPattern(), CaseBitPattern(), getBit(), and getWidth().