[all-commits] [llvm/llvm-project] 831350: [JITLink][ELF][ppc64] Add skeleton ppc64 support a...

lhames via All-commits all-commits at lists.llvm.org
Mon May 22 13:10:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8313507a7c3fd0603cd4cab1dc220235bd668ae1
      https://github.com/llvm/llvm-project/commit/8313507a7c3fd0603cd4cab1dc220235bd668ae1
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-05-22 (Mon, 22 May 2023)

  Changed paths:
    A llvm/include/llvm/ExecutionEngine/JITLink/ELF_ppc64.h
    A llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
    M llvm/lib/ExecutionEngine/JITLink/CMakeLists.txt
    M llvm/lib/ExecutionEngine/JITLink/ELF.cpp
    A llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp
    A llvm/lib/ExecutionEngine/JITLink/ppc64.cpp
    A llvm/test/ExecutionEngine/JITLink/ppc64/lit.local.cfg
    A llvm/test/ExecutionEngine/JITLink/ppc64/ppc64le-no-relocs.s

  Log Message:
  -----------
  [JITLink][ELF][ppc64] Add skeleton ppc64 support and ELF/ppc64 JITLink backend.

This patch introduces a skeleton JITLink ppc64 support header and ELF/ppc64
backend. No relocations are supported in this initial version, but given a
program requiring no relocations (e.g. one that just returns a constant value
from main) the new backend is able to construct a LinkGraph from a ppc64 ELF
relocatable object, and the llvm-jitlink tool is able to execute it.

This commit should also serve as a good example of how to introduce a JITLink
backend for a new architecture.

Reviewed By: sgraenitz, v.g.vassilev, vchuravy, nemanjai, jain98, MaskRay

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




More information about the All-commits mailing list