Skip to content

Commit bb90b69

Browse files
rampitecyuxuanchen1997
authored andcommitted
Provide access to raw bits in PackedVector. NFC. (#98944)
Summary: Needed for future patch to access vector as an integer mask. Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251582
1 parent a1e7ef6 commit bb90b69

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)