[all-commits] [llvm/llvm-project] 4f9929: [AIX][CodeGen] Storage Locations for Constant Poin...

Qiongsi Wu via All-commits all-commits at lists.llvm.org
Thu Mar 23 06:46:24 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f9929add5369490c9607fc9203761483d2bc916
  Author: Qiongsi Wu <qwu at ibm.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M llvm/docs/ReleaseNotes.rst
    M llvm/include/llvm/CodeGen/CommandFlags.h
    M llvm/include/llvm/Target/TargetOptions.h
    M llvm/lib/CodeGen/CommandFlags.cpp
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    A llvm/test/CodeGen/PowerPC/aix-xcoff-roptr.ll
    A llvm/test/CodeGen/PowerPC/aix64-xcoff-roptr.ll
    M llvm/tools/llc/llc.cpp

  Log Message:
  [AIX][CodeGen] Storage Locations for Constant Pointers

This patch adds an `llc` option `-mroptr` to specify storage locations for constant pointers on AIX.

When the `-mroptr` option is specified, constant pointers, virtual function tables, and virtual type tables are placed in read-only storage. Otherwise, by default, pointers, virtual function tables, and virtual type tables are placed are placed in read/write storage.

https://reviews.llvm.org/D144190 enables the `-mroptr` option for `clang`.

Reviewed By: hubert.reinterpretcast, stephenpeckham, myhsu, MaskRay, serge-sans-paille

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

More information about the All-commits mailing list