[CUDA] Copy host builtin types to NVPTXTargetInfo.
Summary: Host and device types must match, otherwise when we pass values back and forth between the host and device, we will get the wrong result. This patch makes NVPTXTargetInfo inherit most of its type information from the host's target info. Reviewers: rsmith Subscribers: cfe-commits, jhen, tra Differential Revision: http://reviews.llvm.org/D19346 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268131 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/TargetOptions.h 4 additions, 0 deletionsinclude/clang/Basic/TargetOptions.h
- lib/Basic/Targets.cpp 63 additions, 1 deletionlib/Basic/Targets.cpp
- lib/Frontend/CompilerInstance.cpp 2 additions, 1 deletionlib/Frontend/CompilerInstance.cpp
- lib/Frontend/CompilerInvocation.cpp 6 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- test/Preprocessor/cuda-types.cu 27 additions, 0 deletionstest/Preprocessor/cuda-types.cu
Loading
Please register or sign in to comment