This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Parsing and sema support for thread_limit clause
ClosedPublic

Authored by kkwli0 on Nov 26 2015, 1:12 PM.

Details

Summary

This patch is to add parsing and sema support for thread_limit clause.

Diff Detail

Event Timeline

kkwli0 updated this revision to Diff 41269.Nov 26 2015, 1:12 PM
kkwli0 retitled this revision from to [OpenMP] Parsing and sema support for thread_limit clause.
kkwli0 updated this object.
kkwli0 added a subscriber: cfe-commits.
ABataev added inline comments.Nov 26 2015, 8:13 PM
lib/Sema/SemaOpenMP.cpp
5220–5242

Use Sema::VerifyPositiveIntegerConstantInClause() instead.

kkwli0 added inline comments.Nov 26 2015, 9:26 PM
lib/Sema/SemaOpenMP.cpp
5220–5242

num_teams/thread_limit/num_threads is not required to be a constant. Using Sema::VerifyPositiveIntegerConstantInClause() will impose a stricter constraint.

ABataev accepted this revision.Nov 26 2015, 9:30 PM
ABataev edited edge metadata.
This revision is now accepted and ready to land.Nov 26 2015, 9:30 PM
kkwli0 closed this revision.Nov 27 2015, 10:50 AM

Committed revision 254207.