[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)
Felix via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 24 17:54:27 PDT 2023
================
@@ -1622,6 +1629,10 @@ def TLSGDAIX8 :
"#TLSGDAIX8",
[(set i64:$rD,
(PPCTlsgdAIX i64:$offset, i64:$handle))]>;
+// This pseudo is expanded to one copy to put the module handle in R3, then call
+// GETtlsMOD64AIX, and then add variable offset to the output from the call.
+def TLSLDAIX8 : PPCEmitTimePseudo<(outs g8rc:$rD), (ins g8rc:$handle),
----------------
orcguru wrote:
Thank you. I have changed the implementation of the pseudo node: it loads module-handle into R/X3 and then calls .__tls_get_mod. (ADD is implemented by standalone ISD::ADD, so not in the scope of this pseudo node)
Now I changed the comment to:
// This pseudo is expanded to load module-handle in X3, and the call to GETtlsMOD64AIX.
https://github.com/llvm/llvm-project/pull/66316
More information about the cfe-commits
mailing list