Merge pull request #1042 from ncos/sg_native_knl

'Native' KNL support (AVX512 target)
This commit is contained in:
Dmitry Babokin
2015-05-21 15:44:06 +03:00
10 changed files with 990 additions and 28 deletions

View File

@@ -1328,6 +1328,21 @@ DefineStdlib(SymbolTable *symbolTable, llvm::LLVMContext *ctx, llvm::Module *mod
}
break;
}
case Target::KNL_AVX512: {
switch (g->target->getVectorWidth()) {
case 16:
if (runtime32) {
EXPORT_MODULE(builtins_bitcode_knl_32bit);
}
else {
EXPORT_MODULE(builtins_bitcode_knl_64bit);
}
break;
default:
FATAL("logic error in DefineStdlib");
}
break;
}
case Target::GENERIC: {
switch (g->target->getVectorWidth()) {
case 4: