summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCUDABuiltin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [CUDA] Don't crash when trying to printf a non-scalar object.Justin Lebar2016-02-111-0/+7
| | | | | | | | | | | | | | Summary: We can't do the right thing, since there's no right thing to do, but at least we can not crash the compiler. Reviewers: majnemer, rnk Subscribers: cfe-commits, jhen, tra Differential Revision: http://reviews.llvm.org/D17103 llvm-svn: 260479
* [CUDA] Generate CUDA's printf alloca in its function's entry block.Justin Lebar2016-01-281-39/+18
| | | | | | | | | | | | | | | Summary: This is necessary to prevent llvm from generating stacksave intrinsics around this alloca. NVVM doesn't have a stack, and we don't handle said intrinsics. Reviewers: rnk, echristo Subscribers: cfe-commits, jhen, tra Differential Revision: http://reviews.llvm.org/D16664 llvm-svn: 259122
* [CUDA] Make printf work.Justin Lebar2016-01-231-0/+131
Summary: The code in CGCUDACall is largely based on a patch written by Eli Bendersky: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20140324/210218.html That patch implemented an LLVM pass lowering printf to vprintf; this one does something similar, but in Clang codegen. Reviewers: echristo Subscribers: cfe-commits, jhen, tra, majnemer Differential Revision: http://reviews.llvm.org/D16372 llvm-svn: 258642
OpenPOWER on IntegriCloud