[PATCH] D134713: [LoongArch] Add codegen support of GlobalTLSAddress lowering

Ray Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 00:57:19 PDT 2022


wangleiat created this revision.
wangleiat added reviewers: SixWeining, xen0n, xry111, gonglingqin, MaskRay.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

There are static and dynamic TLS address lowering in DAG stage according
to different TLS models.

TLS address will be lowered to pseudo instruction and then expanded by
the `LoongArch Pre-RA pseudo instruction expansion` pass.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134713

Files:
  llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchISelLowering.h
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchMCInstLower.cpp
  llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.h
  llvm/test/CodeGen/LoongArch/tls-models.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134713.463133.patch
Type: text/x-patch
Size: 18290 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220927/c802658a/attachment.bin>


More information about the llvm-commits mailing list