[PATCH] D91362: [SelectionDAG] Add llvm.vector.{extract,insert} intrinsics

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 12 09:04:07 PST 2020


sdesmalen added a comment.

I would expect the intrinsic to canonicalize to `shufflevector` with the appropriate shuffle mask for the case where both the vectors are fixed-width?



================
Comment at: llvm/docs/LangRef.rst:15995
+      declare <4 x float> @llvm.vector.insert.v4f32(<4 x float> %subvec, <4 x float> %vec, i64 %idx)
+      declare <2 x double> @llvm.vector.insert.v2f64(<2 x double> %subvec, <2 x double> %vec, i64 %idx)
+
----------------
Can you add/change the example for inserting a fixed-width vector into a scalable vector. That is one of the main reasons for adding this intrinsic.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91362/new/

https://reviews.llvm.org/D91362



More information about the llvm-commits mailing list