This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][5.1] Support `thread_limit` on `omp target`
ClosedPublic

Authored by jdoerfert on Jan 11 2023, 12:24 PM.

Details

Summary

It is unclear to me what happens if we have two thread_limit clauses to
choose from. I will recommend to the standards committee to disallow
that. For now, we pick the teams one.

Fixes https://github.com/llvm/llvm-project/issues/59940

Diff Detail

Event Timeline

jdoerfert created this revision.Jan 11 2023, 12:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 11 2023, 12:24 PM
jdoerfert requested review of this revision.Jan 11 2023, 12:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 11 2023, 12:24 PM
ABataev accepted this revision.Jan 11 2023, 1:44 PM

LG with a nit

clang/lib/CodeGen/CGOpenMPRuntime.cpp
6578

const auto *

This revision is now accepted and ready to land.Jan 11 2023, 1:44 PM
This revision was landed with ongoing or failed builds.Jan 11 2023, 10:38 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 11 2023, 10:38 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript