[llvm] [ADT] Bitset: add shift operators, word accessors, and etc (PR #193400)

Jiachen Yuan via llvm-commits llvm-commits at lists.llvm.org
Sun May 3 22:47:00 PDT 2026


================
@@ -194,6 +194,95 @@ template <unsigned NumBits> class Bitset {
     }
     return false;
   }
+
+  constexpr Bitset &operator<<=(unsigned N) {
+    if (N == 0)
+      return *this;
+    if (N >= NumBits) {
----------------
JiachenYuan wrote:

Thank you, addressed!

https://github.com/llvm/llvm-project/pull/193400


More information about the llvm-commits mailing list