[llvm] [llubi] Add support for byte types (PR #200672)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 1 05:45:10 PDT 2026
================
@@ -288,4 +312,63 @@ AnyValue AnyValue::getVectorSplat(const AnyValue &Scalar, size_t NumElements) {
return AnyValue(std::vector<AnyValue>(NumElements, Scalar));
}
+ByteValue::ByteValue(const APInt &V, bool IsLittleEndian)
+ : BitWidth(V.getBitWidth()), IsLittleEndian(IsLittleEndian) {
+ Val.resize(divideCeil(BitWidth, 8));
+ MutableBytesView View(Val, IsLittleEndian);
+ for (uint8_t I = 0; I < BitWidth; I += 8)
----------------
antoniofrighetto wrote:
Could this overflow?
https://github.com/llvm/llvm-project/pull/200672
More information about the llvm-commits
mailing list