================
@@ -7095,6 +7157,22 @@ class APValueToBufferConverter {
     return true;
   }
 
+  bool visitVector(const APValue &Val, QualType Ty, CharUnits Offset) {
+    const VectorType *VTy = Ty->castAs<VectorType>();
+
+    APInt Bits;
+    if (!BitcastVectorToAPInt(Info, VTy, Val, Bits))
+      return false;
+
+    assert(Bits.getBitWidth() == Info.Ctx.getTypeSize(Ty));
+
+    unsigned Width = Bits.getBitWidth();
+    SmallVector<uint8_t, 8> Bytes(Width / 8);
+    llvm::StoreIntToMemory(Bits, &*Bytes.begin(), Width / 8);
+    Buffer.writeObject(Offset, Bytes);
----------------
zygoloid wrote:

Are the padding bits of an x86 fp80 vector defined? If not, we'll need to avoid 
marking them as initialized here...

https://github.com/llvm/llvm-project/pull/66894
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to