[PATCH] D115504: [LoongArch 1/n] Add triples loongarch{32, 64} for the upcoming LoongArch target

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 10 02:58:50 PST 2021


SixWeining created this revision.
Herald added subscribers: dexonsmith, rupprecht, hiraditya, emaste.
Herald added a reviewer: jhenderson.
SixWeining requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

This is the first patch to incrementally add an MC layer for LoongArch to LLVM.
This patch also adds unit testcases for these new triples.

[LoongArch 2/n] Add ELF machine flag and relocs for upcoming LoongArch target

This patch adds necessary definitions for LoongArch ELF files, including
relocation types. Also adds initial support to ELFYaml, llvm-objdump,
and llvm-readobj in order to work with LoongArch ELFs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115504

Files:
  llvm/include/llvm/ADT/Triple.h
  llvm/include/llvm/BinaryFormat/ELF.h
  llvm/include/llvm/BinaryFormat/ELFRelocs/LoongArch.def
  llvm/include/llvm/Object/ELFObjectFile.h
  llvm/lib/Object/ELF.cpp
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/lib/Support/Triple.cpp
  llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-loongarch64.test
  llvm/tools/llvm-readobj/ELFDumper.cpp
  llvm/unittests/ADT/TripleTest.cpp
  llvm/unittests/Object/ELFObjectFileTest.cpp
  llvm/unittests/Object/ELFTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115504.393421.patch
Type: text/x-patch
Size: 26322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211210/7bb08875/attachment.bin>


More information about the llvm-commits mailing list