This is an archive of the discontinued LLVM Phabricator instance.

[AIX] Update fetch_and_add type
ClosedPublic

Authored by jsji on Jul 27 2021, 2:59 PM.

Details

Reviewers
hubert.reinterpretcast
Whitney
Group Reviewers
Restricted Project
Commits
rGedbdf8e5b5aa: [AIX] Update fetch_and_add type
Summary

It turns out that the AIX kernel is defining int instead of unsigned int for fetch_and_add.

Legacy XL also defines this to be signed.

https://www.ibm.com/docs/en/aix/7.2?topic=f-fetch-add-kernel-services

So update the type for compat.

Diff Detail

Event Timeline

jsji created this revision.Jul 27 2021, 2:59 PM
jsji requested review of this revision.Jul 27 2021, 2:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2021, 2:59 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jsji edited the summary of this revision. (Show Details)Jul 27 2021, 3:00 PM
jsji added a reviewer: Restricted Project.Jul 27 2021, 3:00 PM
jsji edited the summary of this revision. (Show Details)
hubert.reinterpretcast edited the summary of this revision. (Show Details)Jul 27 2021, 3:02 PM

Thanks. LGTM with minor nits.

clang/test/CodeGen/builtins-ppc-xlcompat-fetch.c
19
34
This revision is now accepted and ready to land.Jul 27 2021, 3:08 PM
jsji updated this revision to Diff 362197.Jul 27 2021, 3:10 PM
jsji edited the summary of this revision. (Show Details)

Update tests.

This revision was landed with ongoing or failed builds.Jul 27 2021, 3:13 PM
This revision was automatically updated to reflect the committed changes.