[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:45 PDT 2023


================
@@ -2826,6 +2877,8 @@ void PPCAIXAsmPrinter::emitInstruction(const MachineInstr *MI) {
 		 MMI->hasDebugInfo());
     break;
   }
+  case PPC::GETtlsMOD32AIX:
+  case PPC::GETtlsMOD64AIX:
   case PPC::GETtlsTpointer32AIX:
   case PPC::GETtlsADDR64AIX:
   case PPC::GETtlsADDR32AIX: {
----------------
orcguru wrote:

Added comments:
    // A reference to .__tls_get_mod is unknown to the assembler so we need to
    // emit an external symbol reference.


https://github.com/llvm/llvm-project/pull/66316


More information about the cfe-commits mailing list