[all-commits] [llvm/llvm-project] 25e226: [XRay] Change ARM/AArch64/powerpc64le to use versi...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Apr 24 08:40:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 25e22613dfdb4083056e8a951aeb246bea4019f3
      https://github.com/llvm/llvm-project/commit/25e22613dfdb4083056e8a951aeb246bea4019f3
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-24 (Fri, 24 Apr 2020)

  Changed paths:
    M compiler-rt/lib/xray/xray_AArch64.cpp
    M compiler-rt/lib/xray/xray_arm.cpp
    M compiler-rt/lib/xray/xray_interface_internal.h
    M compiler-rt/lib/xray/xray_powerpc64.cpp
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
    M llvm/lib/Target/ARM/ARMMCInstLower.cpp
    M llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
    M llvm/test/CodeGen/AArch64/xray-tail-call-sled.ll
    M llvm/test/CodeGen/ARM/xray-tail-call-sled.ll
    M llvm/test/CodeGen/PowerPC/xray-attribute-instrumentation.ll
    M llvm/test/CodeGen/PowerPC/xray-tail-call-sled.ll

  Log Message:
  -----------
  [XRay] Change ARM/AArch64/powerpc64le to use version 2 sled (PC-relative address)

Follow-up of D78082 (x86-64).

This change avoids dynamic relocations in `xray_instr_map` for ARM/AArch64/powerpc64le.

MIPS64 cannot use 64-bit PC-relative addresses because R_MIPS_PC64 is not defined.
Because MIPS32 shares the same code, for simplicity, we don't use PC-relative addresses for MIPS32 as well.

Tested on AArch64 Linux and ppc64le Linux.

Reviewed By: ianlevesque

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




More information about the All-commits mailing list