nvptx64 generates 2 targets: task and normal function for nvptx64 and export for avx only
This commit is contained in:
2
func.cpp
2
func.cpp
@@ -527,6 +527,8 @@ Function::GenerateIR() {
|
||||
const FunctionType *type= CastType<FunctionType>(sym->type);
|
||||
if (g->target->getISA() == Target::NVPTX64 && type->isExported)
|
||||
return;
|
||||
if (g->target->getISA() != Target::NVPTX64 && g->target->isPTX() && !type->isExported)
|
||||
return;
|
||||
}
|
||||
{
|
||||
FunctionEmitContext ec(this, sym, function, firstStmtPos);
|
||||
|
||||
Reference in New Issue
Block a user