hanchenye-llvm-project/clang/lib
Artem Belevich fa11ab53c0 [CUDA] added include paths for both sides of CUDA compilation.
In order to compile a CUDA file clang must be able to find
include files for both both host and device.

This patch passes AuxToolchain to AddPreprocessingOptions and
uses it to add include paths for the opposite side of compilation.

We also must be able to find CUDA include files. If the driver
found CUDA installation, it adds appropriate include path
to CUDA headers. This can be disabled with '-nocudainc'.

- Added include paths for the opposite side of compilation.
- Added include paths to detected CUDA installation.
- Added -nocudainc to prevent adding CUDA include path.
- Added test cases to verify new functionality.

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

llvm-svn: 253386
2015-11-17 22:28:46 +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] added include paths for both sides of CUDA compilation. 2015-11-17 22:28:46 +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
Headers bmiintrin.h: Allow using the tzcnt intrinsics for non-BMI targets 2015-11-17 18:46:48 +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
Makefile