This is an archive of the discontinued LLVM Phabricator instance.

[ORC] Remove unneeded __orc_rt_elfnix_tls_get_addr assembly file
AbandonedPublic

Authored by MaskRay on Sep 13 2021, 8:41 PM.

Details

Summary

In ELF, __tls_get_addr used by general-dynamic/local-dynamic TLS models is a
regular function with C calling convention. Scratch reginsters don't need to be
saved, because the caller will do the right thing.

Diff Detail

Event Timeline

MaskRay created this revision.Sep 13 2021, 8:41 PM
MaskRay requested review of this revision.Sep 13 2021, 8:41 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 13 2021, 8:41 PM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript

Hi MaskRay -- The assembly files are placeholders until we have a chance to implement the scheme in https://llvm.org/PR51820. I'd prefer to keep them around for now as scaffolding: they serve as proof-of-concept assembly source components of the ORC runtime (exercising the build system), and a convenient jumping-off point for anyone who might get to https://llvm.org/PR51820 before I do.

MaskRay abandoned this revision.Dec 28 2021, 1:49 PM
compiler-rt/lib/orc/elfnix_platform.cpp