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.
Paths
| Differential D19346
[CUDA] Copy host builtin types to NVPTXTargetInfo. ClosedPublic Authored by jlebar on Apr 20 2016, 6:02 PM.
Details Summary Host and device types must match, otherwise when we pass values back and This patch makes NVPTXTargetInfo inherit most of its type information
Diff Detail Event Timelinejlebar updated this object.
This revision is now accepted and ready to land.Apr 29 2016, 3:24 PM Closed by commit rL268131: [CUDA] Copy host builtin types to NVPTXTargetInfo. (authored by jlebar). · Explain WhyApr 29 2016, 4:11 PM This revision was automatically updated to reflect the committed changes. jlebar marked 2 inline comments as done.
Revision Contents
Diff 54446 include/clang/Basic/TargetOptions.h
lib/Basic/Targets.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/CompilerInvocation.cpp
test/SemaCUDA/wint_t.cu
|
You may want to make sure we don't recurse here if someone specifies host triple to be one of NVPTX variants.