[PATCH] D19346: [CUDA] Copy host builtin types to NVPTXTargetInfo.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 20 18:02:02 PDT 2016


jlebar created this revision.
jlebar added a reviewer: rsmith.
jlebar added subscribers: tra, jhen, cfe-commits.

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.

http://reviews.llvm.org/D19346

Files:
  include/clang/Basic/TargetOptions.h
  lib/Basic/Targets.cpp
  lib/Frontend/CompilerInstance.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/SemaCUDA/wint_t.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19346.54446.patch
Type: text/x-patch
Size: 6327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160421/15c3cf47/attachment-0001.bin>


More information about the cfe-commits mailing list