[PATCH] D45429: [AArch64][AsmParser] Make parse function for VectorLists generic to other vector types.

Renato Golin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 12 04:26:58 PDT 2018


rengolin added inline comments.


================
Comment at: lib/Target/AArch64/AArch64RegisterInfo.td:497
   let PredicateMethod
-      = "isTypedVectorList<" # count # ", " # lanes # ", '" # kind # "'>";
+      = "isTypedVectorList<RegKind::NeonVector, " # count # ", " # lanes # ", " # eltsize # ">";
   let RenderMethod = "addVectorList" # regsize # "Operands<" # count # ">";
----------------
sdesmalen wrote:
> rengolin wrote:
> > I get it, this will *only* work for Neon vectors because `eltsize` is fixed.
> I guess you mean 'vectorKind' (e.g. RegKind::NeonVector)?
> 'eltsize' is different for the different suffixes (b, h, s, d).
Yup


https://reviews.llvm.org/D45429





More information about the llvm-commits mailing list