[llvm] Fix mechanism propagating mangled names for TLI function mappings (PR #66656)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 09:37:53 PDT 2023
================
@@ -171,11 +200,17 @@ class TargetLibraryInfoImpl {
/// vectorization factor.
bool isFunctionVectorizable(StringRef F) const;
- /// Return the name of the equivalent of F, vectorized with factor VF. If no
- /// such mapping exists, return the empty string.
+ /// Return the name of the equivalent of F, vectorized with factor VF.
+ /// If no such mapping exists, return empty strings.
StringRef getVectorizedFunction(StringRef F, const ElementCount &VF,
bool Masked) const;
+ /// Return a pointer to a VecDesc object holding all info for scalar to vector
+ /// mappings in TLI for the equivalent of F, vectorized with factor VF.
+ /// If no such mapping exists, return nullpointer.
+ const VecDesc *getMangledTLIVectorName(StringRef F, const ElementCount &VF,
----------------
paulwalker-arm wrote:
Something like `getVectorMappingInfo` seems more representative of what the functions does?
https://github.com/llvm/llvm-project/pull/66656
More information about the llvm-commits
mailing list