[PATCH] D64831: [Xtensa 5/10] Add Xtensa MCTargetDescr initial functionality.

Sterling Augustine via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 19 16:32:38 PDT 2022


saugustine requested changes to this revision.
saugustine added a comment.
This revision now requires changes to proceed.

As this is primarily boilerplate, mostly looks good. Just one minor fix.



================
Comment at: llvm/lib/Target/Xtensa/MCTargetDesc/XtensaAsmBackend.cpp:105
+  case 2:
+    OS.write("\0\0", 2);
+    break;
----------------
I would use the nop.n encoding here (0xF03D). Then on density machines, the only situation with an invalid instruction is the single-byte case. Although bonus points for a little bit of math to make every case but the single-byte case work--that would be best.


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

https://reviews.llvm.org/D64831



More information about the llvm-commits mailing list