This will ensure that the emulated TLS code should be generated when
useEmulatedTLS() is true.
Details
Details
- Reviewers
SixWeining xen0n xry111 MaskRay
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Emulated TLS is legacy code that we should not support. If ELF TLS works well, stick with ELF TLS.
Comment Actions
Thank you for your comments.
For this support, the main purposes are:
- Make the emulated-tls option work properly.
- Make lli handle TLV correctly under LoongArch.
For the second point, it may be necessary at present. I try to remove EmulatedTLS support from the targets(x86_64/aarch64) that supports jit, and jit will not be able to handle TLV correctly.
Comment Actions
Disagree. Nearly two years ago I objected to RISC-V adding emulated TLS as well.
Cutting corners is easy for porters but is not good for the long-term maintanance of the project.
I am unfamiliar with lib/ExecutionEngine/ but it appears to support ELF TLS for some other ports.