Support of *-generic-16 target
This commit is contained in:
10
func.cpp
10
func.cpp
@@ -515,8 +515,14 @@ Function::GenerateIR() {
|
||||
llvm::FunctionType *ftype = type->LLVMFunctionType(g->ctx, true);
|
||||
llvm::GlobalValue::LinkageTypes linkage = llvm::GlobalValue::ExternalLinkage;
|
||||
std::string functionName = sym->name;
|
||||
if (g->mangleFunctionsWithTarget)
|
||||
functionName += std::string("_") + g->target->GetISAString();
|
||||
if (g->mangleFunctionsWithTarget) {
|
||||
// If we treat generic as smth, we should have appropriate mangling
|
||||
if (g->target->getISA() == Target::GENERIC &&
|
||||
!g->target->getTreatGenericAsSmth().empty())
|
||||
functionName += std::string("_") + g->target->getTreatGenericAsSmth();
|
||||
else
|
||||
functionName += std::string("_") + g->target->GetISAString();
|
||||
}
|
||||
#ifdef ISPC_NVPTX_ENABLED
|
||||
if (g->target->getISA() == Target::NVPTX)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user