[llvm] [VFABI] Create FunctionType for vector functions (PR #75058)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 04:29:10 PST 2023


================
@@ -195,6 +195,12 @@ static constexpr char const *MappingsAttrName = "vector-function-abi-variant";
 /// the presence of the attribute (see InjectTLIMappings).
 void getVectorVariantNames(const CallInst &CI,
                            SmallVectorImpl<std::string> &VariantMappings);
+
+/// Returns a pair of the vectorized FunctionType and the mask's position when
+/// there's one, otherwise -1.
+std::optional<std::pair<FunctionType *, int>>
----------------
paulwalker-arm wrote:

What's the rational for conflating these two properties given `VFInfo` already has a nice interface to query for a mask's presences and position.

https://github.com/llvm/llvm-project/pull/75058


More information about the llvm-commits mailing list