[llvm] Provide access to raw bits in PackedVector. NFC. (PR #98944)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 11:47:57 PDT 2024
https://github.com/rampitec created https://github.com/llvm/llvm-project/pull/98944
Needed for future patch to access vector as an integer mask.
>From 7a76708745747917fb92202112e9ada24e269e20 Mon Sep 17 00:00:00 2001
From: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: Mon, 15 Jul 2024 11:45:47 -0700
Subject: [PATCH] Provide access to raw bits in PackedVector. NFC.
Needed for future patch to access vector as an integer mask.
---
llvm/include/llvm/ADT/PackedVector.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/include/llvm/ADT/PackedVector.h b/llvm/include/llvm/ADT/PackedVector.h
index b448685ab6163..e837e140c03fc 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;
}
+
+ operator BitVectorTy() const { return Bits; }
};
// Leave BitNum=0 undefined.
More information about the llvm-commits
mailing list