================
@@ -6895,6 +6893,43 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned 
BuiltinID,
     return EmitNeonCall(CGM.getIntrinsic(Intrinsic::aarch64_neon_st4lane, Tys),
                         Ops, "");
   }
+  case NEON::BI__builtin_neon_vstnq_s8_x2:
+  case NEON::BI__builtin_neon_vstnq_s16_x2:
+  case NEON::BI__builtin_neon_vstnq_s32_x2:
+  case NEON::BI__builtin_neon_vstnq_s64_x2:
+  case NEON::BI__builtin_neon_vstnq_u8_x2:
+  case NEON::BI__builtin_neon_vstnq_u16_x2:
+  case NEON::BI__builtin_neon_vstnq_u32_x2:
+  case NEON::BI__builtin_neon_vstnq_u64_x2:
+  case NEON::BI__builtin_neon_vstnq_mf8_x2:
+  case NEON::BI__builtin_neon_vstnq_f16_x2:
+  case NEON::BI__builtin_neon_vstnq_bf16_x2:
+  case NEON::BI__builtin_neon_vstnq_f32_x2:
+  case NEON::BI__builtin_neon_vstnq_f64_x2: {
+    std::rotate(Ops.begin(), Ops.begin() + 1, Ops.end());
----------------
kieroxide wrote:

I have added code that sets the memory operand to be Non temporal in 
`aarch64ISelLowering.cpp` 

In DAG, we now have 
```
llvm.aarch64.neon.vldnq.x2<(non-temporal load (s256) from %ir.0)> t0, 
TargetConstant:i64<746>, t2
llvm.aarch64.neon.vstnq.x2<(non-temporal store (s256) into %ir.0)> t0, 
TargetConstant:i64<755>, t4, t6, t2
```

This is the similar route to what is taken for the SVE non_temporal_loads. I 
don't think we need a non-temporal load PatFrag however as we just directly 
match our intrinsic.

I am going to look into if it is better to convert it to a generic load/store 
but with the nontemporal attribute as maybe this will allow existing 
combines/transforms and such. 
  

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