This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC][Clang] Remove constraint for initial-exec TLS mode on AIX
ClosedPublic

Authored by qiucf on Jul 23 2023, 10:18 PM.

Details

Summary

We are going to support initial-exec TLS mode on AIX targets. Currently, initial-exec is guarded from both -ftls-model=initial-exec and __attribute__((tls_model("initial-exec"))) in clang.

This patch removes such guards so that we can get expected IR, as the first step to enable support for initial-exec.

Diff Detail

Event Timeline

qiucf created this revision.Jul 23 2023, 10:18 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: nemanjai. · View Herald Transcript
qiucf requested review of this revision.Jul 23 2023, 10:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2023, 10:18 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
nemanjai requested changes to this revision.Jul 23 2023, 11:38 PM

Please provide a description justifying this change. There is no context here for the viewer to determine whether this change makes sense.

This revision now requires changes to proceed.Jul 23 2023, 11:38 PM
qiucf edited the summary of this revision. (Show Details)Jul 24 2023, 12:32 AM

So we don't have code generation for this, but we are enabling it in the front end? What happens if we try to produce code for the IR this produces? It would make more sense to me to implement what is needed in the back end prior to allowing the front end to produce the code.

shchenz accepted this revision as: shchenz.Aug 30 2023, 1:56 AM

LGTM

This revision was not accepted when it landed; it landed in state Needs Revision.Sep 4 2023, 8:01 PM
This revision was automatically updated to reflect the committed changes.