r274433 - [CUDA] Move argument type lists to the stack. NFC.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 2 05:03:57 PDT 2016
Author: d0k
Date: Sat Jul 2 07:03:57 2016
New Revision: 274433
URL: http://llvm.org/viewvc/llvm-project?rev=274433&view=rev
Log:
[CUDA] Move argument type lists to the stack. NFC.
Modified:
cfe/trunk/lib/CodeGen/CGCUDANV.cpp
Modified: cfe/trunk/lib/CodeGen/CGCUDANV.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCUDANV.cpp?rev=274433&r1=274432&r2=274433&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCUDANV.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCUDANV.cpp Sat Jul 2 07:03:57 2016
@@ -189,7 +189,7 @@ llvm::Function *CGNVCUDARuntime::makeReg
// void __cudaRegisterFunction(void **, const char *, char *, const char *,
// int, uint3*, uint3*, dim3*, dim3*, int*)
- std::vector<llvm::Type *> RegisterFuncParams = {
+ llvm::Type *RegisterFuncParams[] = {
VoidPtrPtrTy, CharPtrTy, CharPtrTy, CharPtrTy, IntTy,
VoidPtrTy, VoidPtrTy, VoidPtrTy, VoidPtrTy, IntTy->getPointerTo()};
llvm::Constant *RegisterFunc = CGM.CreateRuntimeFunction(
@@ -213,9 +213,9 @@ llvm::Function *CGNVCUDARuntime::makeReg
// void __cudaRegisterVar(void **, char *, char *, const char *,
// int, int, int, int)
- std::vector<llvm::Type *> RegisterVarParams = {
- VoidPtrPtrTy, CharPtrTy, CharPtrTy, CharPtrTy,
- IntTy, IntTy, IntTy, IntTy};
+ llvm::Type *RegisterVarParams[] = {VoidPtrPtrTy, CharPtrTy, CharPtrTy,
+ CharPtrTy, IntTy, IntTy,
+ IntTy, IntTy};
llvm::Constant *RegisterVar = CGM.CreateRuntimeFunction(
llvm::FunctionType::get(IntTy, RegisterVarParams, false),
"__cudaRegisterVar");
More information about the cfe-commits
mailing list