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.
Paths
| Differential D134713
[LoongArch] Add codegen support of GlobalTLSAddress lowering ClosedPublic Authored by wangleiat on Sep 27 2022, 12:57 AM.
Details Summary There are static and dynamic TLS address lowering in DAG stage according TLS address will be lowered to pseudo instruction and then expanded by
Diff Detail
Event TimelineComment Actions I can confirm this patch works locally, but ideally someone else should approve this too. This revision is now accepted and ready to land.Oct 8 2022, 1:02 AM Closed by commit rGd1b526fb95c8: [LoongArch] Add codegen support of GlobalTLSAddress lowering (authored by wangleiat, committed by SixWeining). · Explain WhyOct 11 2022, 3:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 466756 llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
llvm/lib/Target/LoongArch/LoongArchISelLowering.h
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
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
|