[LoongArch 3/6] Add target stub for LoongArch
authorLu Weining <luweining@loongson.cn>
Thu, 10 Feb 2022 09:12:09 +0000 (09:12 +0000)
committerRenato Golin <rengolin@systemcall.eu>
Thu, 10 Feb 2022 10:23:34 +0000 (10:23 +0000)
commit444c6d261a913bc4f05ac166357af8afa584da73
treebbabad89ce5338152434b444bf72565319a3dc37
parente53e6ec6ef749c2a9b922a1dc6e14e0538292643
[LoongArch 3/6] Add target stub for LoongArch

This patch registers the 'loongarch32' and 'loongarch64' targets. Also adds a
simple testcase to check the output of llc --vesion containing the targets.

Differential revision: https://reviews.llvm.org/D115860
llvm/lib/Target/LoongArch/CMakeLists.txt [new file with mode: 0644]
llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp [new file with mode: 0644]
llvm/lib/Target/LoongArch/LoongArchTargetMachine.h [new file with mode: 0644]
llvm/lib/Target/LoongArch/MCTargetDesc/CMakeLists.txt [new file with mode: 0644]
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.cpp [new file with mode: 0644]
llvm/lib/Target/LoongArch/TargetInfo/CMakeLists.txt [new file with mode: 0644]
llvm/lib/Target/LoongArch/TargetInfo/LoongArchTargetInfo.cpp [new file with mode: 0644]
llvm/lib/Target/LoongArch/TargetInfo/LoongArchTargetInfo.h [new file with mode: 0644]
llvm/test/CodeGen/LoongArch/lit.local.cfg [new file with mode: 0644]
llvm/test/CodeGen/LoongArch/target_support.ll [new file with mode: 0644]