[all-commits] [llvm/llvm-project] 70c433: [XCOFF][AIX] Add Global Variables Directly to TOC ...
Sidharth Baveja via All-commits
all-commits at lists.llvm.org
Fri Apr 30 07:49:32 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 70c433a184a54819835e54c62c3e6891e7069861
https://github.com/llvm/llvm-project/commit/70c433a184a54819835e54c62c3e6891e7069861
Author: Sidharth Baveja <sidharth.baveja at ibm.com>
Date: 2021-04-30 (Fri, 30 Apr 2021)
Changed paths:
M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
M llvm/lib/MC/MCSectionXCOFF.cpp
M llvm/lib/MC/XCOFFObjectWriter.cpp
M llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
M llvm/lib/Target/PowerPC/PPCInstrInfo.td
A llvm/test/CodeGen/PowerPC/basic-toc-data-def.ll
A llvm/test/CodeGen/PowerPC/basic-toc-data-extern.ll
A llvm/test/CodeGen/PowerPC/basic-toc-data-local-linkage.ll
A llvm/test/CodeGen/PowerPC/toc-data.ll
Log Message:
-----------
[XCOFF][AIX] Add Global Variables Directly to TOC for 32 bit AIX
Summary:
This patch implements the backend implementation of adding global variables
directly to the table of contents (TOC), rather than adding the address of the
variable to the TOC.
Currently, this patch will look for the "toc-data" attribute on symbols in the
IR, and then add those symbols to the TOC.
ATM, this is implemented for 32 bit AIX.
Reviewers: sfertile
Differential Revision: https://reviews.llvm.org/D101178
More information about the All-commits
mailing list