This is an archive of the discontinued LLVM Phabricator instance.

Augmented CudaHostAction to carry device-side triple.
ClosedPublic

Authored by tra on Sep 15 2015, 5:10 PM.

Details

Summary

Paves the way for the upcoming patch where host-side compilation will need to know device-side triple in order to allow simultaneous parsing of host and device code in the same cuda TU. The triple from the opposite side of compilation will be used to pull in info about target-specific builtins and preprocessor macros.

Diff Detail

Repository
rL LLVM

Event Timeline

tra updated this revision to Diff 34857.Sep 15 2015, 5:10 PM
tra retitled this revision from to Augmented CudaHostAction to carry device-side triple..
tra updated this object.
tra added a reviewer: echristo.
tra added a subscriber: cfe-commits.
echristo accepted this revision.Sep 15 2015, 5:12 PM
echristo edited edge metadata.

Commit message could use some more elaborating on why you'll need to know this information. Just a bit as the main commit will have a lot of that information.

Thanks!

-eric

This revision is now accepted and ready to land.Sep 15 2015, 5:12 PM
tra updated this object.Sep 15 2015, 5:25 PM
tra edited edge metadata.

Sounds good. Thanks!

This revision was automatically updated to reflect the committed changes.