diff options
author | Justin Lebar <jlebar@google.com> | 2016-01-23 21:28:14 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-01-23 21:28:14 +0000 |
commit | 3039a593db6f013c374d25b715a56e6098bfe17f (patch) | |
tree | ca83ab20af1fc04b6c6cf0c4f62b32ab5f1ef0ad /clang/lib/CodeGen/CodeGenFunction.h | |
parent | a8f0254bc1a4bdb3061d033cb5b9a3997bfc9a98 (diff) | |
download | llvm-3039a593db6f013c374d25b715a56e6098bfe17f.zip llvm-3039a593db6f013c374d25b715a56e6098bfe17f.tar.gz llvm-3039a593db6f013c374d25b715a56e6098bfe17f.tar.bz2 |
[CUDA] Make printf work.
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index af9ab53..4352f6e2 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2711,6 +2711,8 @@ public: RValue EmitCUDAKernelCallExpr(const CUDAKernelCallExpr *E, ReturnValueSlot ReturnValue); + RValue EmitCUDADevicePrintfCallExpr(const CallExpr *E, + ReturnValueSlot ReturnValue); RValue EmitBuiltinExpr(const FunctionDecl *FD, unsigned BuiltinID, const CallExpr *E, |