[PATCH] D62668: [ARM] First MVE instructions: scalar shifts.

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 01:41:01 PDT 2019


SjoerdMeijer added inline comments.


================
Comment at: llvm/lib/Target/ARM/ARMInstrMVE.td:39
+def t2SQSHL : t2MVEShiftSRegImm<"sqshl"> {
+  let Inst{5-4} = 0b11;
+}
----------------
I think it would be better to pass bits {5-4} as an argument. Then the definition would look like:

   def t2SQSHL : t2MVEShiftSRegImm<"sqshl", 0b11>;

which I think is nicer, conciser, and more consistent (with other .td descriptions).

Same for other instructions further below.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62668/new/

https://reviews.llvm.org/D62668





More information about the llvm-commits mailing list