[PATCH] D16664: [CUDA] Generate CUDA's printf alloca in its function's entry block.
Eric Christopher via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 27 18:41:52 PST 2016
echristo added inline comments.
================
Comment at: lib/CodeGen/CGCUDABuiltin.cpp:109
@@ -106,1 +108,3 @@
+ // stacksave/stackrestore intrinsics, which cause ptxas to choke.
+ auto *Alloca = new llvm::AllocaInst(
llvm::Type::getInt8Ty(Ctx), llvm::ConstantInt::get(Int32Ty, BufSize),
----------------
Not quite, you'll want to use AllocaInsertPt for this or even CreateTempAlloca.
http://reviews.llvm.org/D16664
More information about the cfe-commits
mailing list