[llvm] [LLVM][TableGen][DecoderEmitter] Add wrapper class for `bit_value_t` (PR #146248)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 10:49:13 PDT 2025
================
@@ -1453,18 +1424,18 @@ void FilterChooser::emitSoftFailTableEntry(DecoderTableInfo &TableInfo,
APInt PositiveMask(BitWidth, 0ULL);
APInt NegativeMask(BitWidth, 0ULL);
for (unsigned i = 0; i < BitWidth; ++i) {
- bit_value_t B = bitFromBits(*SFBits, i);
- bit_value_t IB = bitFromBits(*InstBits, i);
+ BitValue B(*SFBits, i);
+ BitValue IB(*InstBits, i);
- if (B != BIT_TRUE)
+ if (B != BitValue::BIT_TRUE)
continue;
- switch (IB) {
- case BIT_FALSE:
+ switch (IB.getRawValue()) {
----------------
topperc wrote:
I think this is the only use of getRawValue? Can we rewrite this so we don't need a getRawValue?
https://github.com/llvm/llvm-project/pull/146248
More information about the llvm-commits
mailing list