added common_gpu makefile helper

This commit is contained in:
Evghenii
2014-01-05 10:00:44 +01:00
parent 034e6b9a0b
commit fd429e4fda
14 changed files with 114 additions and 1578 deletions

View File

@@ -585,7 +585,8 @@ Function::GenerateIR() {
if (g->mangleFunctionsWithTarget)
functionName += std::string("_") + g->target->GetISAString();
functionName += std::string("___export");
if (g->target->getISA() == Target::NVPTX64)
functionName += std::string("___export");
llvm::Function *appFunction =
llvm::Function::Create(ftype, linkage, functionName.c_str(), m->module);
#if defined(LLVM_3_1)