[all-commits] [llvm/llvm-project] 3347f7: [LoongArch] Add basic support to AsmParser

Lu Weining via All-commits all-commits at lists.llvm.org
Wed Mar 9 00:26:37 PST 2022


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

  Changed paths:
    A llvm/lib/Target/LoongArch/AsmParser/CMakeLists.txt
    A llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
    M llvm/lib/Target/LoongArch/CMakeLists.txt
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCAsmInfo.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.cpp
    A llvm/test/MC/LoongArch/Basic/Integer/arith.s
    A llvm/test/MC/LoongArch/Basic/Integer/atomic.s
    A llvm/test/MC/LoongArch/Basic/Integer/barrier.s
    A llvm/test/MC/LoongArch/Basic/Integer/bit-manipu.s
    A llvm/test/MC/LoongArch/Basic/Integer/bit-shift.s
    A llvm/test/MC/LoongArch/Basic/Integer/bound-check.s
    A llvm/test/MC/LoongArch/Basic/Integer/branch.s
    A llvm/test/MC/LoongArch/Basic/Integer/crc.s
    A llvm/test/MC/LoongArch/Basic/Integer/invalid.s
    A llvm/test/MC/LoongArch/Basic/Integer/invalid64.s
    A llvm/test/MC/LoongArch/Basic/Integer/memory.s
    A llvm/test/MC/LoongArch/Basic/Integer/misc.s
    A llvm/test/MC/LoongArch/Basic/Integer/pseudos.s
    A llvm/test/MC/LoongArch/Directives/cfi.s
    A llvm/test/MC/LoongArch/Directives/data.s
    A llvm/test/MC/LoongArch/lit.local.cfg

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

This patch adds basic support to AsmParser which can handle basic
instructions with register or immediate operands. With the addition of
the parser, now it's possible to test instructions encoding with `llvm-mc`.

Disassembler will be added later and then we can do `round-trip` test.

Reviewed By: xen0n, MaskRay, myhsu

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




More information about the All-commits mailing list