This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix passing of -m arguments to device toolchain
ClosedPublic

Authored by Hahnfeld on Sep 25 2017, 2:09 PM.

Details

Summary

AuxTriple is not set if host and device share a toolchain. Also,
removing an argument modifies the DAL which needs to be returned
for future use.
(Move tests back to offload-openmp.c as they are not related to GPUs.)

Diff Detail

Event Timeline

gtbercea added inline comments.Sep 27 2017, 7:40 AM
test/Driver/openmp-offload.c
89

Shouldn't these tests be in the gpu test file?

Hahnfeld added inline comments.Sep 27 2017, 7:45 AM
test/Driver/openmp-offload.c
89

There is nothing specific to GPUs here IMO, that is why I moved the test back to this file

gtbercea accepted this revision.Sep 27 2017, 7:46 AM

LGTM

test/Driver/openmp-offload.c
89

Actually no, you're right! :)

This revision is now accepted and ready to land.Sep 27 2017, 7:46 AM
This revision was automatically updated to reflect the committed changes.