[PATCH] D105575: [AArch64][SME] Add zero instruction
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 06:01:21 PDT 2021
david-arm added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp:3806
+
+ unsigned RegNum = matchMatrixTileRegName(Name);
+ if (!RegNum)
----------------
Is 'RegNum' guaranteed to always be > 0 for a valid register?
================
Comment at: llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp:3811
+ StringRef Tail = Name.drop_front(DotPosition);
+ const auto &KindRes = parseVectorKind(Tail, RegKind::Matrix);
+ ElementWidth = KindRes->second;
----------------
To be honest it's quite hard to review this because I don't know what parseVectorKind returns. Can we specify the type instead of 'auto'?
================
Comment at: llvm/lib/Target/AArch64/SMEInstrFormats.td:688
+ def : InstAlias<"zero\t\\{za1.s,za2.s\\}", (!cast<Instruction>(NAME) 0b01100110), 1>;
+ def : InstAlias<"zero\t\\{za2.s,za3.s\\}", (!cast<Instruction>(NAME) 0b11001100), 1>;
+ def : InstAlias<"zero\t\\{za0.s,za1.s,za2.s\\}", (!cast<Instruction>(NAME) 0b01110111), 1>;
----------------
Are we missing ones for {za1.s,za3.s} and {z0.s,za2.s}?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105575/new/
https://reviews.llvm.org/D105575
More information about the llvm-commits
mailing list