This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Accept shortened triples for -Xopenmp-target=
ClosedPublic

Authored by jhuber6 on Jan 28 2022, 10:30 AM.

Details

Summary

This patch builds on the change in D117634 that expanded the short
triples when passed in by the user. This patch adds the same
functionality for the -Xopenmp-target= flag. Previously it was
unintuitive that passing `-fopenmp-targets=nvptx64
-Xopenmp-target=nvptx64 <arg>` would not forward the arg because the
triples did not match on account of nvptx64 being expanded to
nvptx64-nvidia-cuda.

Diff Detail

Event Timeline

jhuber6 created this revision.Jan 28 2022, 10:30 AM
jhuber6 requested review of this revision.Jan 28 2022, 10:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 28 2022, 10:30 AM

Do we have this same expansion logic in two places now? If so, probably want to factor it out to a function

jhuber6 updated this revision to Diff 404136.Jan 28 2022, 12:34 PM

Adding test and shared function.

This revision is now accepted and ready to land.Jan 28 2022, 2:14 PM
This revision was landed with ongoing or failed builds.Jan 28 2022, 3:22 PM
This revision was automatically updated to reflect the committed changes.