HomePhabricator

[RISCV] Add lowering of global TLS addresses

Authored by lewis-revill on Jun 19 2019, 1:40 AM.

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

llvm-svn: 363771

Details

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