[PATCH] D144189: [AIX][CodeGen] Storage Locations for Constant Pointers
Qiongsi Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 16 07:25:33 PST 2023
qiongsiwu1 created this revision.
qiongsiwu1 added a project: LLVM.
Herald added subscribers: hiraditya, nemanjai.
Herald added a project: All.
qiongsiwu1 requested review of this revision.
Herald added a subscriber: llvm-commits.
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.
There will be a follow-up patch that enables the `mroptr` option for `clang`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144189
Files:
llvm/docs/ReleaseNotes.rst
llvm/include/llvm/CodeGen/CommandFlags.h
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/CodeGen/CommandFlags.cpp
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/CodeGen/PowerPC/aix-xcoff-roptr.ll
llvm/test/CodeGen/PowerPC/aix64-xcoff-roptr.ll
llvm/tools/llc/llc.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144189.498011.patch
Type: text/x-patch
Size: 18653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230216/19c8ffcb/attachment-0001.bin>
More information about the llvm-commits
mailing list