[PATCH] D98540: WIP: [M68k] Implement Disassembler

Ricky Taylor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 17 16:49:19 PDT 2021


ricky26 created this revision.
ricky26 added a reviewer: myhsu.
Herald added subscribers: hiraditya, mgorny.
ricky26 published this revision for review.
ricky26 added a comment.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

I've marked this 'Ready for Review' since otherwise notifications don't happen. To be clear though, **this is not ready to merge**.


This is a work-in-progress implementation of a disassembler for M68k. There are not yet any
new tests for the disassembler. I've left them until there's a general consensus that the structure
of this change is acceptable.

Questions I'm aware of:

- Should this use Motorola or gas syntax? (At the moment it uses Motorola syntax.)
- The disassembler produces a table at runtime for disassembly generated from the code beads. Is this okay? (This is less than ideal but as I mentioned in my llvm-dev post, it's quite complicated to write a table-gen parser for code beads.)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98540

Files:
  llvm/lib/Target/M68k/CMakeLists.txt
  llvm/lib/Target/M68k/Disassembler/CMakeLists.txt
  llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
  llvm/lib/Target/M68k/M68kAsmPrinter.cpp
  llvm/lib/Target/M68k/MCTargetDesc/M68kInstPrinter.cpp
  llvm/lib/Target/M68k/MCTargetDesc/M68kInstPrinter.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98540.330308.patch
Type: text/x-patch
Size: 23070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210317/f50029ae/attachment-0001.bin>


More information about the llvm-commits mailing list