[clang] [clang][bytecode] Start implementing __builtin_bit_cast (PR #112126)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 06:32:57 PDT 2024


================
@@ -81,6 +81,14 @@ class Boolean final {
 
   Boolean truncate(unsigned TruncBits) const { return *this; }
 
+  static Boolean bitcastFromMemory(const std::byte *Buff, unsigned BitWidth) {
+    assert(BitWidth == 8);
----------------
erichkeane wrote:

Perhaps a `//FIXME: <why this is limited to 8 bits, and what we have to do to fix this>` here.

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


More information about the cfe-commits mailing list