Skip to content

Commit

Permalink
[LoongArch] Add basic support to AsmParser
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SixWeining committed Mar 9, 2022
1 parent 9286a82 commit 3347f77
Show file tree
Hide file tree
Showing 22 changed files with 1,914 additions and 12 deletions.
13 changes: 13 additions & 0 deletions llvm/lib/Target/LoongArch/AsmParser/CMakeLists.txt
@@ -0,0 +1,13 @@
add_llvm_component_library(LLVMLoongArchAsmParser
LoongArchAsmParser.cpp

LINK_COMPONENTS
LoongArchDesc
LoongArchInfo
MC
MCParser
Support

ADD_TO_COMPONENT
LoongArch
)

0 comments on commit 3347f77

Please sign in to comment.