[PATCH] D120476: [LoongArch] Add basic support to AsmParser
Lu Weining via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 24 05:34:09 PST 2022
SixWeining created this revision.
SixWeining added reviewers: rengolin, xen0n, MaskRay, myhsu.
Herald added subscribers: hiraditya, mgorny.
SixWeining requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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`.
So we remove those `.mir` testcases in CodeGen. See D115862 <https://reviews.llvm.org/D115862> for more
details.
Disassembler will be added later and then we can do `round-trip` test.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120476
Files:
llvm/lib/Target/LoongArch/AsmParser/CMakeLists.txt
llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
llvm/lib/Target/LoongArch/CMakeLists.txt
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCAsmInfo.cpp
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.cpp
llvm/test/CodeGen/LoongArch/1ri.mir
llvm/test/CodeGen/LoongArch/2r.mir
llvm/test/CodeGen/LoongArch/2ri.mir
llvm/test/CodeGen/LoongArch/3r.mir
llvm/test/CodeGen/LoongArch/3ri.mir
llvm/test/CodeGen/LoongArch/misc.mir
llvm/test/MC/LoongArch/Directives/cfi-invalid.s
llvm/test/MC/LoongArch/Directives/cfi-valid.s
llvm/test/MC/LoongArch/Directives/data-invalid.s
llvm/test/MC/LoongArch/Directives/data-valid.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/arith.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/atomic.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/barrier.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/bit-manipu.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/bit-shift.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/bound-check.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/branch.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/crc.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/invalid.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/invalid64.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/memory.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/misc.s
llvm/test/MC/LoongArch/ISA/Basic/Integer/pseudos.s
llvm/test/MC/LoongArch/lit.local.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120476.411096.patch
Type: text/x-patch
Size: 130596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220224/adb1933c/attachment.bin>
More information about the llvm-commits
mailing list