[all-commits] [llvm/llvm-project] 789858: [LoongArch] Add basic support to Disassembler

Lu Weining via All-commits all-commits at lists.llvm.org
Thu Mar 10 01:14:20 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7898587e948cc24af6e22f86c921949169f4f87b
      https://github.com/llvm/llvm-project/commit/7898587e948cc24af6e22f86c921949169f4f87b
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2022-03-10 (Thu, 10 Mar 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/CMakeLists.txt
    A llvm/lib/Target/LoongArch/Disassembler/CMakeLists.txt
    A llvm/lib/Target/LoongArch/Disassembler/LoongArchDisassembler.cpp
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/test/MC/LoongArch/Basic/Integer/arith.s
    M llvm/test/MC/LoongArch/Basic/Integer/atomic.s
    M llvm/test/MC/LoongArch/Basic/Integer/barrier.s
    M llvm/test/MC/LoongArch/Basic/Integer/bit-manipu.s
    M llvm/test/MC/LoongArch/Basic/Integer/bit-shift.s
    M llvm/test/MC/LoongArch/Basic/Integer/bound-check.s
    M llvm/test/MC/LoongArch/Basic/Integer/branch.s
    M llvm/test/MC/LoongArch/Basic/Integer/crc.s
    A llvm/test/MC/LoongArch/Basic/Integer/invalid-dis.s
    M llvm/test/MC/LoongArch/Basic/Integer/memory.s
    M llvm/test/MC/LoongArch/Basic/Integer/misc.s
    M llvm/test/MC/LoongArch/Basic/Integer/pseudos.s
    A llvm/test/MC/LoongArch/Misc/aligned-nops.s
    A llvm/test/MC/LoongArch/Misc/unaligned-nops.s

  Log Message:
  -----------
  [LoongArch] Add basic support to Disassembler

With the addition of disassembler now we can do instructions 'round-trip' test
that assembles `.s` to obj with `llvm-mc` and disassembles it with `llvm-objdump`
to check instruction mnemonics.

Reviewed By: xen0n, MaskRay

Differential Revision: https://reviews.llvm.org/D120477




More information about the All-commits mailing list