added mask for tasking function

This commit is contained in:
Evghenii
2014-01-06 16:18:28 +01:00
parent 7fbe2eba59
commit 3972d740a6
4 changed files with 15 additions and 9 deletions

View File

@@ -795,6 +795,7 @@ Module::AddFunctionDeclaration(const std::string &name,
#else // LLVM 3.1 and 3.3+
function->addFnAttr(llvm::Attribute::AlwaysInline);
#endif
/* evghenii: fails function verification when "if" executed in nvptx target */
if (functionType->isTask && g->target->getISA() != Target::NVPTX)
// This also applies transitively to members I think?
#if defined(LLVM_3_1)