This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Add XL Compat fetch builtins
ClosedPublic

Authored by jsji on Jun 27 2021, 8:40 AM.

Details

Reviewers
w2yehia
lkail
shchenz
Whitney
Group Reviewers
Restricted Project
Commits
rGeb237ffca821: [PowerPC] Add XL Compat fetch builtins
Summary

Prototype

unsigned int __fetch_and_add (volatile unsigned int* addr, unsigned int
val);
unsigned long __fetch_and_addlp (volatile unsigned long* addr, unsigned
long val);

Ref:
https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.1?topic=functions-fetch

Diff Detail

Event Timeline

jsji created this revision.Jun 27 2021, 8:40 AM
jsji requested review of this revision.Jun 27 2021, 8:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2021, 8:40 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jsji edited the summary of this revision. (Show Details)Jun 27 2021, 8:41 AM
w2yehia accepted this revision.Jun 27 2021, 1:25 PM
This revision is now accepted and ready to land.Jun 27 2021, 1:25 PM
lkail accepted this revision.Jun 27 2021, 6:50 PM

LGTM, thanks.

This revision was automatically updated to reflect the committed changes.