[all-commits] [llvm/llvm-project] bed762: [PowerPC][AIX] Make PIC the default relocation mod...

Steven Wan via All-commits all-commits at lists.llvm.org
Thu Jan 16 10:07:40 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bed7626f04f7442bed3674126ba6b658b4dfa505
      https://github.com/llvm/llvm-project/commit/bed7626f04f7442bed3674126ba6b658b4dfa505
  Author: stevewan <wan.yu at ibm.com>
  Date:   2020-01-16 (Thu, 16 Jan 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
    A llvm/test/tools/llc/aix-pic-setting.ll
    M llvm/tools/llc/llc.cpp
    A llvm/unittests/Target/PowerPC/AIXRelocModelTest.cpp
    A llvm/unittests/Target/PowerPC/CMakeLists.txt

  Log Message:
  -----------
  [PowerPC][AIX] Make PIC the default relocation model for AIX

Summary:
The `llc` tool currently defaults to Static relocation model and generates non-relocatable code for 32-bit Power.
This is not desirable on AIX where we always generate Position Independent Code (PIC). This patch makes PIC the default relocation model for AIX.

Reviewers: daltenty, hubert.reinterpretcast, DiggerLin, Xiangling_L, sfertile

Reviewed By: hubert.reinterpretcast

Subscribers: mgorny, wuzish, nemanjai, hiraditya, kbarton, jsji, shchenz, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list