added now NVPTX64 automatically emits unmasked extern "C" for task function with kernel attributes

This commit is contained in:
Evghenii
2013-10-28 13:58:01 +01:00
parent a7aa1ac1cf
commit 1bd5360d3b
4 changed files with 13 additions and 8 deletions

View File

@@ -2925,10 +2925,8 @@ FunctionType::GetReturnTypeString() const {
llvm::FunctionType *
FunctionType::LLVMFunctionType(llvm::LLVMContext *ctx, bool removeMask) const {
#if 0 /* NVPTX64::task_and_externC */
if (isTask == true)
if (isTask == true && g->target->getISA() != Target::NVPTX64)
Assert(removeMask == false);
#endif
// Get the LLVM Type *s for the function arguments
std::vector<llvm::Type *> llvmArgTypes;