Skip to content

Commit 466c1b6

Browse files
authored
Provide access to raw bits in PackedVector. NFC. (#98944)
Needed for future patch to access vector as an integer mask.
1 parent da286c8 commit 466c1b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/include/llvm/ADT/PackedVector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ class PackedVector : public PackedVectorBase<T, BitNum, BitVectorTy,
141141
Bits |= RHS.Bits;
142142
return *this;
143143
}
144+
145+
const BitVectorTy &raw_bits() const { return Bits; }
144146
};
145147

146148
// Leave BitNum=0 undefined.

0 commit comments

Comments
 (0)