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

@@ -336,11 +336,12 @@ Function::emitCode(FunctionEmitContext *ctx, llvm::Function *function,
ctx->StoreInst(argIter, sym->storagePtr);
ctx->EmitFunctionParameterDebugInfo(sym, i);
}
if (argIter == function->arg_end()) {
if (argIter == function->arg_end())
{
Assert(type->isUnmasked || type->isExported);
ctx->SetFunctionMask(LLVMMaskAllOn);
}
else
else /* for NVPTX64 , function must be unmasked */
assert(0);
llvm::NamedMDNode* annotations =