================
@@ -3975,6 +3975,19 @@ defm LDNPD : LoadPairNoAlloc<0b01, 1, FPR64Op, simm7s8, 
"ldnp">;
 defm LDNPQ : LoadPairNoAlloc<0b10, 1, FPR128Op, simm7s16, "ldnp">;
 }
 
+multiclass LDNPQLoadIntrinsic<ValueType VecTy> {
+    def : Pat<([VecTy, VecTy] (int_aarch64_neon_vldnq_x2 GPR64sp:$Rn)),
----------------
MartinWehking wrote:

I agree, the vldtn and vsttn intrinsics will have a very similar shape, so it 
would be good to generalize this.

Also, I'm not sure if it is better to change the `multiclass` to just a single 
`class`, because your just instantiating one pattern. 
I've seen other single patterns though that are wrapped into a multiclass, so 
the backend is not consistent here and it's up to you if you want to change it.

At the moment, you could even just replace the class completely and use a 
foreach loop for the types, but since we'll add more similar intrinsics keeping 
a `class` or `multiclass` with parameters makes sense.

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

Reply via email to