llvm-project/clang/lib
Artem Belevich c29db84419 [CUDA] Added a wrapper header for inclusion of stock CUDA headers.
Header files that come with CUDA are assuming split host/device
compilation and are not usable by clang out of the box.
With a bit of preprocessor magic it's possible to twist them
into something clang can use.

This wrapper always includes CUDA headers exactly the same way during
host and device compilation passes and produces identical preprocessed
content during host and device side compilation for sm_35 GPUs. Device
compilation passes for older GPUs will see a smaller subset of device
functions supported by particular GPU.

The wrapper assumes specific contents of CUDA header files and works
only with CUDA 7.0 and 7.5.

Differential Revision: http://reviews.llvm.org/D13171

llvm-svn: 253388
2015-11-17 22:28:52 +00:00
..
ARCMigrate Refactor: Simplify boolean conditional return statements in lib/ARCMigrate 2015-11-06 01:26:37 +00:00
AST [modules] Allow "redefinition" of typedef of anon tag from unimported submodule 2015-11-14 03:26:14 +00:00
ASTMatchers [AST] Re-add TypeLocs and NestedNameSpecifierLocs to the ParentMap. 2015-10-23 09:04:55 +00:00
Analysis [analyzer] Handle calling ObjC super method from inside C++ lambda. 2015-11-15 17:48:22 +00:00
Basic [ARM] Pass in the architecture to TargetParser to cope with API change 2015-11-16 11:16:36 +00:00
CodeGen Correctly handle type mismatches in the __weak copy/move-initialization 2015-11-16 22:11:41 +00:00
Driver [CUDA] Detect and link with CUDA's libdevice bitcode library. 2015-11-17 22:28:50 +00:00
Edit Replace double negation of !FileID.isInvalid() with FileID.isValid(). 2015-10-03 10:46:20 +00:00
Format clang-format: Enable #include sorting by default. 2015-11-16 12:38:56 +00:00
Frontend Revert "Make FP_CONTRACT ON the default." 2015-11-17 15:40:10 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers [CUDA] Added a wrapper header for inclusion of stock CUDA headers. 2015-11-17 22:28:52 +00:00
Index Roll-back r250822. 2015-10-20 13:23:58 +00:00
Lex Use %select to merge similar diagnostics. NFC 2015-11-14 02:09:55 +00:00
Parse Fix a layering oddity by passing Sema to DeclSpec::Finish instead of DiagnosticsEngine and Preprocessor. Everything the preprocessor was being used for can be acquired from Sema. 2015-11-15 03:32:11 +00:00
Rewrite Roll-back r250822. 2015-10-20 13:23:58 +00:00
Sema [Sema] Remove unnecessary typecast of bool to int when passing arguments to diagnostics. NFC 2015-11-17 05:40:12 +00:00
Serialization Add support for GCC's '__auto_type' extension, per the GCC manual: 2015-11-11 02:02:15 +00:00
StaticAnalyzer [analyzer] Refer to capture field to determine if capture is reference. 2015-11-15 03:07:17 +00:00
Tooling Make ArgumentAdjuster aware of the current file being processed. 2015-11-05 02:19:53 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00