[clang] [AArch64] Implement reinterpret builtins for SVE vector tuples (PR #69598)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 24 05:09:24 PDT 2023


================
@@ -263,17 +267,11 @@ class SVEEmitter {
   // which is inconvenient to specify in the arm_sve.td file or
   // generate in CGBuiltin.cpp.
   struct ReinterpretTypeInfo {
+    SVEType BaseType;
     const char *Suffix;
-    const char *Type;
-    const char *BuiltinType;
   };
-  SmallVector<ReinterpretTypeInfo, 12> Reinterprets = {
----------------
CarolineConcatto wrote:

Why you cannot do as you did before and only create an array for each size _x2, _x3 and _x4?

I  believe you've changed  the class SVEType, so you could use SVEType ToV(To.BaseType, N); and SVEType FromV(From.BaseType, N);.  I am not sure we should do that. 

But I am not sure if the changes are worth.

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


More information about the cfe-commits mailing list