[llvm] [llubi] Add support for byte types (PR #200672)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 23 08:47:39 PDT 2026
================
@@ -495,8 +521,21 @@ AnyValue Context::fromBytes(ConstBytesView Bytes, Type *Ty,
}
}
}
+
OffsetInBits = NewOffsetInBits;
+ if (IsByteType) {
+ assert(!CheckPaddingBits &&
+ "Non-vector-element cases should be handled by the fast path.");
+ if (NumBits & 7) {
+ uint8_t Mask = static_cast<uint8_t>((~0U) << (NumBits & 7));
+ LogicalBytes.back().zeroBits(Mask);
+ }
+ if (DL.isBigEndian())
+ std::reverse(LogicalBytes.begin(), LogicalBytes.end());
----------------
dtcxzyw wrote:
Added a comment here.
https://github.com/llvm/llvm-project/pull/200672
More information about the llvm-commits
mailing list