================
@@ -6848,6 +6848,42 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned 
BuiltinID,
     Ops[1] = Builder.CreateCall(F, ArrayRef(Ops).slice(1), "vld4_lane");
     return Builder.CreateDefaultAlignedStore(Ops[1], Ops[0]);
   }
+  case NEON::BI__builtin_neon_vldtnq_s8_x2:
+  case NEON::BI__builtin_neon_vldtnq_s16_x2:
+  case NEON::BI__builtin_neon_vldtnq_s32_x2:
+  case NEON::BI__builtin_neon_vldtnq_s64_x2:
+  case NEON::BI__builtin_neon_vldtnq_u8_x2:
+  case NEON::BI__builtin_neon_vldtnq_u16_x2:
+  case NEON::BI__builtin_neon_vldtnq_u32_x2:
+  case NEON::BI__builtin_neon_vldtnq_u64_x2:
+  case NEON::BI__builtin_neon_vldtnq_f16_x2:
+  case NEON::BI__builtin_neon_vldtnq_bf16_x2:
+  case NEON::BI__builtin_neon_vldtnq_f32_x2:
+  case NEON::BI__builtin_neon_vldtnq_f64_x2:
+  case NEON::BI__builtin_neon_vldtnq_mf8_x2: {
+    llvm::Type *Tys[2] = {VTy, Ops[1]->getType()};
+    Function *F = CGM.getIntrinsic(Intrinsic::aarch64_neon_vldtn_x2, Tys);
----------------
pvimal816a wrote:

I think, based on the surrounding code in this function, we should instead 
update the AArch64SIMDIntrinsicMap to add mapping from the newly added neon 
builtins to the corresponding LVM intrinsics and use `LLVMIntrinsic` instead of 
hardcoding `Intrinsic::aarch64_neon_vldtn_x2` here.

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

Reply via email to