================
@@ -115,6 +115,14 @@ static mlir::Type convertTypeForMemory(const 
mlir::TypeConverter &converter,
                                   dataLayout.getTypeSizeInBits(type));
   }
 
+  if (auto vecTy = mlir::dyn_cast<cir::VectorType>(type)) {
+    assert(!cir::MissingFeatures::hlsl());
+    if (mlir::isa<cir::BoolType>(vecTy.getElementType())) {
+      uint64_t bytePadded = std::max<uint64_t>(vecTy.getSize(), 8);
----------------
AmrDeveloper wrote:

Yes, I was thinking to make coverts in convertTypeForMemory conditional, but 
because the case `struct { bool4 v; } `, it makes sense to check this part in 
OG first :D

Thanks

https://github.com/llvm/llvm-project/pull/212146
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to