[llvm] 466c1b6 - Provide access to raw bits in PackedVector. NFC. (#98944)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 14:35:00 PDT 2024
Author: Stanislav Mekhanoshin
Date: 2024-07-15T14:34:56-07:00
New Revision: 466c1b65e41dafd8d71da230e44b6460e5c132e1
URL: https://github.com/llvm/llvm-project/commit/466c1b65e41dafd8d71da230e44b6460e5c132e1
DIFF: https://github.com/llvm/llvm-project/commit/466c1b65e41dafd8d71da230e44b6460e5c132e1.diff
LOG: Provide access to raw bits in PackedVector. NFC. (#98944)
Needed for future patch to access vector as an integer mask.
Added:
Modified:
llvm/include/llvm/ADT/PackedVector.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/PackedVector.h b/llvm/include/llvm/ADT/PackedVector.h
index b448685ab6163..4a6986669c936 100644
--- a/llvm/include/llvm/ADT/PackedVector.h
+++ b/llvm/include/llvm/ADT/PackedVector.h
@@ -141,6 +141,8 @@ class PackedVector : public PackedVectorBase<T, BitNum, BitVectorTy,
Bits |= RHS.Bits;
return *this;
}
+
+ const BitVectorTy &raw_bits() const { return Bits; }
};
// Leave BitNum=0 undefined.
More information about the llvm-commits
mailing list