[PATCH] D153645: [PowerPC][TLS] Add additional TLS X-Form loads/store instructions

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 09:42:31 PDT 2023


amyk created this revision.
amyk added reviewers: power-llvm-team, stefanp, lei, nemanjai, kamaub, PowerPC.
amyk added a project: LLVM.
Herald added subscribers: shchenz, hiraditya.
Herald added a project: All.
amyk requested review of this revision.
Herald added a subscriber: llvm-commits.

This patch is a follow up to D43315 <https://reviews.llvm.org/D43315>, and adds the following new load/store
TLS specific instructions for integer and floating point scalar types:

  LHAXTLS
  LWAXTLS
  LHAXTLS_32
  LWAXTLS_32
  LFSXTLS
  LFDXTLS
  STFSXTLS
  STFDXTLS

These instructions can be used to optimized TLS sequences when D-Form
loads/stores follow an `ADD_TLS` instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153645

Files:
  llvm/lib/Target/PowerPC/P10InstrResources.td
  llvm/lib/Target/PowerPC/P9InstrResources.td
  llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  llvm/lib/Target/PowerPC/PPCInstr64Bit.td
  llvm/test/CodeGen/PowerPC/aix-vec_insert_elt.ll
  llvm/test/CodeGen/PowerPC/tls-pie-xform.ll
  llvm/test/MC/PowerPC/ppc64-tls-relocs-01.s
  llvm/test/MC/PowerPC/ppc64-tls-relocs-double-01.s
  llvm/test/MC/PowerPC/ppc64-tls-relocs-float-01.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153645.533987.patch
Type: text/x-patch
Size: 18264 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230623/303a1a9a/attachment.bin>


More information about the llvm-commits mailing list