This is an archive of the discontinued LLVM Phabricator instance.

[cuda] Ignore "TLS unsupported by target" errors for host variables during device-side CUDA compilation.
ClosedPublic

Authored by tra on Apr 24 2015, 3:46 PM.

Details

Summary

During device-side CUDA compilation clang currently complains about any TLS variable, regardless of whether it's a host or device one.
This patch suppresses "TLS unsupported" errors for host variables during device compilation and for device variables during host compilation.

Diff Detail

Repository
rL LLVM

Event Timeline

tra updated this revision to Diff 24418.Apr 24 2015, 3:46 PM
tra retitled this revision from to [cuda] Ignore "TLS unsupported by target" errors for host variables during device-side CUDA compilation. .
tra updated this object.
tra edited the test plan for this revision. (Show Details)
tra added reviewers: jpienaar, eliben, rnk.
tra added a subscriber: Unknown Object (MLST).
jpienaar accepted this revision.Apr 24 2015, 3:59 PM
jpienaar edited edge metadata.

Looks good to me.

This revision is now accepted and ready to land.Apr 24 2015, 3:59 PM
eliben accepted this revision.Apr 27 2015, 9:47 AM
eliben edited edge metadata.

LGTM

include/clang/Sema/SemaInternal.h
51 ↗(On Diff #24418)

D's attributes

This revision was automatically updated to reflect the committed changes.