[PATCH] D100956: [AIX][TLS] Add ASM portion changes to support TLSGD relocations to XCOFF objects

Victor Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 21 06:52:49 PDT 2021


NeHuang created this revision.
NeHuang added reviewers: nemanjai, sfertile, PowerPC.
NeHuang added a project: LLVM.
Herald added subscribers: kbarton, hiraditya.
NeHuang requested review of this revision.
Herald added a subscriber: llvm-commits.

This patch adds ASM portion changes to support TLSGD relocations to XCOFF objects:

- Add new variantKinds for the symbol's variable offset and region handle
- Print the proper relocation specifier @gd in the asm streamer when emitting the TC Entry for the variable offset for the symbol
- Fix the switch section failure between the TC Entry of variable offset and region handle
- Put .__tls_get_addr symbol in the ProgramCodeSects with XTY_ER property


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100956

Files:
  llvm/include/llvm/MC/MCExpr.h
  llvm/lib/MC/MCExpr.cpp
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
  llvm/lib/Target/PowerPC/PPC.h
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
  llvm/test/CodeGen/PowerPC/aix-tls-gd-double.ll
  llvm/test/CodeGen/PowerPC/aix-tls-gd-int.ll
  llvm/test/CodeGen/PowerPC/aix-tls-gd-longlong.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100956.339215.patch
Type: text/x-patch
Size: 19799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210421/a26f94eb/attachment.bin>


More information about the llvm-commits mailing list