This is an archive of the discontinued LLVM Phabricator instance.

[Clang][OpenMP] Return error ahead of time if there are multiple mutex clauses in atomic directive
AbandonedPublic

Authored by tianshilei1992 on Dec 10 2021, 8:06 PM.

Details

Reviewers
jdoerfert
ABataev
Summary

Currently if there are multiple mutex clauses used in atomic directive,
it emits an error but proceeds execution. This patch simply makes it return ahead
of time.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Dec 10 2021, 8:06 PM
tianshilei1992 requested review of this revision.Dec 10 2021, 8:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2021, 8:06 PM

add another error return for memory order clauses

Okay, I reached the same point as D115561, that the compiler stops at the first position it encounters error, so all those mixed uses cannot be in the same test case.

tianshilei1992 abandoned this revision.Dec 22 2021, 8:23 AM

Abandon the change because of the trade off between the amount of changes and benefit.