[llvm] [AArch64] Add @llvm.experimental.vector.match (PR #101974)
Ricardo Jesus via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 07:33:17 PDT 2024
================
@@ -1771,6 +1771,11 @@ class TargetTransformInfo {
/// This should also apply to lowering for vector funnel shifts (rotates).
bool isVectorShiftByScalarCheap(Type *Ty) const;
+ /// \returns True if the target has hardware support for vector match
+ /// operations between vectors of type `VT` and search vectors of `SearchSize`
+ /// elements, and false otherwise.
+ bool hasVectorMatch(VectorType *VT, unsigned SearchSize) const;
----------------
rj-jesus wrote:
Thanks, that makes sense. As for the need for the intrinsic, just let me know if you'd like to check anything else.
https://github.com/llvm/llvm-project/pull/101974
More information about the llvm-commits
mailing list