-
Notifications
You must be signed in to change notification settings - Fork 103
[Clang][OpenMP] Deprecate -fopenmp-target-xteam-scan and -fopenmp-target-xteam-no-loop-scan #2704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: amd-staging
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7058,6 +7058,14 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, | |
| else | ||
| CmdArgs.push_back("-fno-openmp-target-multi-device"); | ||
|
|
||
| for (Arg *A : Args.filtered(options::OPT_fopenmp_target_xteam_scan, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't we do that on the arg definitions instead of filtering later? |
||
| options::OPT_fno_openmp_target_xteam_scan, | ||
| options::OPT_fopenmp_target_xteam_no_loop_scan, | ||
| options::OPT_fno_openmp_target_xteam_no_loop_scan)) | ||
| D.Diag(diag::warn_drv_deprecated_custom) | ||
| << A->getAsString(Args) | ||
| << "will be removed once the cross-team reduction rewrite is merged from upstream"; | ||
|
|
||
| if (Args.hasFlag(options::OPT_fopenmp_target_xteam_scan, | ||
| options::OPT_fno_openmp_target_xteam_scan, false)) | ||
| CmdArgs.push_back("-fopenmp-target-xteam-scan"); | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let' s change the deprecation message to something like:
"will be removed in a future revision of the OpenMP implementation."