[llvm] 5edb493 - ADT: Add non-const overload of PackedVector::raw_bits() (#101742)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 13:29:12 PDT 2024
Author: Nicolai Hähnle
Date: 2024-08-02T22:29:08+02:00
New Revision: 5edb49355a37b9e4168c4c07fdc0c6623107a735
URL: https://github.com/llvm/llvm-project/commit/5edb49355a37b9e4168c4c07fdc0c6623107a735
DIFF: https://github.com/llvm/llvm-project/commit/5edb49355a37b9e4168c4c07fdc0c6623107a735.diff
LOG: ADT: Add non-const overload of PackedVector::raw_bits() (#101742)
This is convenient when operating on vectors in a bulk, bit-manipulating
fashion. I plan to use this in a future change.
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 4a6986669c936..b6bb6a4738067 100644
--- a/llvm/include/llvm/ADT/PackedVector.h
+++ b/llvm/include/llvm/ADT/PackedVector.h
@@ -143,6 +143,7 @@ class PackedVector : public PackedVectorBase<T, BitNum, BitVectorTy,
}
const BitVectorTy &raw_bits() const { return Bits; }
+ BitVectorTy &raw_bits() { return Bits; }
};
// Leave BitNum=0 undefined.
More information about the llvm-commits
mailing list