[PATCH] D42921: [CUDA] Add option to generate relocatable device code

2018-02-12 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324878: [CUDA] Add option to generate relocatable device code (authored by Hahnfeld, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D42921: [CUDA] Add option to generate relocatable device code

2018-02-12 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: include/clang/Driver/Options.td:572 + HelpText<"Generate relocatable device code, also known as separate compilation mode.">; +def fno_cuda_rdc : Flag<["-"], "fno-cuda-rdc">; def dA : Flag<["-"], "dA">, Group; tra

[PATCH] D42921: [CUDA] Add option to generate relocatable device code

2018-02-12 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld updated this revision to Diff 133817. Hahnfeld marked an inline comment as done. Hahnfeld added a comment. Hide help for `-fcuda-rdc` until support is ready. https://reviews.llvm.org/D42921 Files: include/clang/Basic/LangOptions.def include/clang/Driver/Options.td

[PATCH] D42921: [CUDA] Add option to generate relocatable device code

2018-02-09 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added inline comments. This revision is now accepted and ready to land. Comment at: include/clang/Driver/Options.td:572 + HelpText<"Generate relocatable device code, also known as separate compilation mode.">; +def fno_cuda_rdc : Flag<["-"],

[PATCH] D42921: [CUDA] Add option to generate relocatable device code

2018-02-05 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: jlebar, tra. Herald added a subscriber: cfe-commits. Hahnfeld added a dependency: D42920: [CUDA] Fix test cuda-external-tools.cu. Hahnfeld added a reviewer: hfinkel. As a first step, pass '-c/--compile-only' to ptxas so that it doesn't