diff options
author | Amy Kwan <amy.kwan1@ibm.com> | 2023-06-17 00:33:38 -0500 |
---|---|---|
committer | Amy Kwan <amy.kwan1@ibm.com> | 2023-06-19 12:17:30 -0500 |
commit | d5659808b2fabadd2fff4f19d7aed2e2ff3435f5 (patch) | |
tree | 49cfb083efe64af7096376b1b611786eccb8d620 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | 706b5472d897ca75ebd210e4109637793288bcf2 (diff) | |
download | llvm-d5659808b2fabadd2fff4f19d7aed2e2ff3435f5.zip llvm-d5659808b2fabadd2fff4f19d7aed2e2ff3435f5.tar.gz llvm-d5659808b2fabadd2fff4f19d7aed2e2ff3435f5.tar.bz2 |
[AIX][TLS] Generate 64-bit local-exec access code sequence
This patch adds support for the TLS local-exec access model on AIX to allow
for the ability to generate the 64-bit (specifically, non-optimized) code sequence.
For this patch in particular, the sequence that is generated involves a load of the
variable offset, followed by an add of the loaded variable offset to r13 (which is
thread pointer, respectively). This code sequence looks like the following:
```
ld reg1,var[TC](2)
add reg2, reg1, r13 // r13 contains the thread pointer
```
The TOC (.tc pseudo-op) entries generated in the assembly files are also
changed where we add the @le relocation for the variable offset.
Differential Revision: https://reviews.llvm.org/D149722
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions