[PATCH] D28320: [Driver] Driver changes to support CUDA compilation on Windows.

2017-01-04 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. For the most part this is straightforward: Just add a CudaInstallation object to the MSVC and MinGW toolchains. CudaToolChain has to override computeMSVCVersion so that Clang::constructJob passes

[PATCH] D28322: [CUDA] More correctly inherit primitive types from the host during device compilation.

2017-01-04 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. CUDA lets users share structs between the host and device, so for that and other reasons, primitive types such as ptrdiff_t should be the same on both sides of the compilation. Our code to do this

[PATCH] D28321: [CUDA] Add __declspec spellings for CUDA attributes.

2017-01-04 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added subscribers: rnk, cfe-commits. CUDA attributes are spelled __declspec(__foo__) on Windows. https://reviews.llvm.org/D28321 Files: clang/include/clang/Basic/Attr.td clang/test/SemaCUDA/attr-declspec.cu Index:

[PATCH] D28323: [CUDA] Let NVPTX inherit the host's calling conventions.

2017-01-04 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. When compiling device code, we may still see host code with explicit calling conventions. NVPTX needs to claim that it supports these CCs, so that (a) we don't raise noisy warnings, and (b) we

[PATCH] D28326: [Docs] Update docs to indicate that CUDA compilation is supported on Windows.

2017-01-04 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. jlebar added subscribers: llvm-commits, cfe-commits. https://reviews.llvm.org/D28326 Files: llvm/docs/CompileCudaWithLLVM.rst Index: llvm/docs/CompileCudaWithLLVM.rst === ---

[PATCH] D28321: [CUDA] Add __declspec spellings for CUDA attributes.

2017-01-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added inline comments. Comment at: clang/include/clang/Basic/Attr.td:604 +// CUDA attributes are spelled __attribute__((attr)) or __declspec(__attr__). + For my own edification, do you have a link to

r291014 - Fix failure to treat overloaded function in braced-init-list as a non-deduced context.

2017-01-04 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Jan 4 16:03:59 2017 New Revision: 291014 URL: http://llvm.org/viewvc/llvm-project?rev=291014=rev Log: Fix failure to treat overloaded function in braced-init-list as a non-deduced context. Previously, if an overloaded function in a braced-init-list was encountered in

[PATCH] D28315: Update tools to use new getStyle API

2017-01-04 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added subscribers: cfe-commits, malcolm.parsons. malcolm.parsons added a comment. A mailing list cannot review. https://reviews.llvm.org/D28315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D28321: [CUDA] Add __declspec spellings for CUDA attributes.

2017-01-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/include/clang/Basic/Attr.td:604 +// CUDA attributes are spelled __attribute__((attr)) or __declspec(__attr__). + jlebar wrote: > aaron.ballman wrote: > > For my own edification, do you have a link to some

<    1   2   3