[llvm] [GlobalISel][AArch64] Legalize G_INSERT_VECTOR_ELT for SVE (PR #114310)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 16:18:05 PDT 2024


================
@@ -273,6 +273,11 @@ inline LegalityPredicate typeIsNot(unsigned TypeIdx, LLT Type) {
 LegalityPredicate
 typePairInSet(unsigned TypeIdx0, unsigned TypeIdx1,
               std::initializer_list<std::pair<LLT, LLT>> TypesInit);
+/// True iff the given types for the given tuple of type indexes is one of the
+/// specified type tuple.
+LegalityPredicate
+typeTupleInSet(unsigned TypeIdx0, unsigned TypeIdx1, unsigned TypeIdx2,
----------------
arsenm wrote:

In the future could consider being fancy and using variadic templates 

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


More information about the llvm-commits mailing list