now generates CUDALaunch call. Few tweaks are still necesary

This commit is contained in:
Evghenii
2013-10-31 16:01:34 +01:00
parent e7ddb9e642
commit 63917f8cc2
2 changed files with 85 additions and 35 deletions

View File

@@ -2942,17 +2942,14 @@ FunctionType::LLVMFunctionType(llvm::LLVMContext *ctx, bool removeMask) const {
Assert(m->errorCount > 0);
return NULL;
}
#if 0
if (g->target->isPTX() && g->target->getISA() != Target::NVPTX64 && isTask)
{
#if 0
llvmArgTypes.push_back(
llvm::BitCastInst(llvm::PointerType::getUnqual(t), LLVMTypes::VoidPointerType)
);
#endif
/* we pass struct of pointers to CUDALaunch */
llvmArgTypes.push_back(llvm::PointerType::getUnqual(t));
//llvmArgTypes.push_back(t);
}
else
#endif
llvmArgTypes.push_back(t);
}