HomePhabricator

[RISCV] Add lowering of global TLS addresses

Description

[RISCV] Add lowering of global TLS addresses

This patch adds lowering for global TLS addresses for the TLS models of
InitialExec, GlobalDynamic, LocalExec and LocalDynamic.

LocalExec support required using a 4-operand add instruction, which uses
the fourth operand to express a relocation on the symbol. The necessary
fixup is emitted when the instruction is emitted.

Differential Revision: https://reviews.llvm.org/D55305

Details

Committed
lewis-revillJun 19 2019, 1:40 AM
Differential Revision
D55305: [RISCV] Add lowering of global TLS addresses
Parents
rL363770: Fix a dangling StringRef in FileCollector
Branches
Unknown
Tags
Unknown