[llvm] [Scalarizer][DirectX] support structs return types (PR #111569)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 15 13:03:06 PDT 2024


================
@@ -197,6 +197,23 @@ struct VectorLayout {
   uint64_t SplitSize = 0;
 };
 
+static bool isStructAllVectors(Type *Ty) {
+  if (!isa<StructType>(Ty))
+    return false;
----------------
farzonl wrote:

I'd prefer not to do this change. If there was a property, I needed on StructType sure. But as it stands it just looks like creating a new variable for no reason.

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


More information about the llvm-commits mailing list