aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-01-23 21:28:14 +0000
committerJustin Lebar <jlebar@google.com>2016-01-23 21:28:14 +0000
commit3039a593db6f013c374d25b715a56e6098bfe17f (patch)
treeca83ab20af1fc04b6c6cf0c4f62b32ab5f1ef0ad /clang/lib/CodeGen/CodeGenFunction.h
parenta8f0254bc1a4bdb3061d033cb5b9a3997bfc9a98 (diff)
downloadllvm-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.h2
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,