workaround for programIndex via preprocessor
This commit is contained in:
@@ -1926,7 +1926,10 @@ Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostre
|
||||
}
|
||||
}
|
||||
if (g->target->getISA() == Target::NVPTX64)
|
||||
{
|
||||
opts.addMacroDef("__NVPTX__");
|
||||
opts.addMacroDef("programIndex=laneIndex()");
|
||||
}
|
||||
|
||||
#if defined(LLVM_3_1)
|
||||
inst.getLangOpts().BCPLComment = 1;
|
||||
|
||||
Reference in New Issue
Block a user