Merge pull request #1091 from ncos/knl-rename

Fixed AVX-512 IR incompatibility issue
This commit is contained in:
Dmitry Babokin
2015-08-17 18:22:23 +03:00
2 changed files with 11 additions and 1 deletions

View File

@@ -1332,6 +1332,7 @@ DefineStdlib(SymbolTable *symbolTable, llvm::LLVMContext *ctx, llvm::Module *mod
}
break;
}
#if ISPC_LLVM_VERSION >= ISPC_LLVM_3_7 // LLVM 3.7+
case Target::KNL_AVX512: {
switch (g->target->getVectorWidth()) {
case 16:
@@ -1347,6 +1348,7 @@ DefineStdlib(SymbolTable *symbolTable, llvm::LLVMContext *ctx, llvm::Module *mod
}
break;
}
#endif
case Target::GENERIC: {
switch (g->target->getVectorWidth()) {
case 4:

View File

@@ -30,5 +30,13 @@
;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
define(`WIDTH',`16')
include(`target-avx512-common.ll')
ifelse(LLVM_VERSION, LLVM_3_7,
`include(`target-avx512-common.ll')',
LLVM_VERSION, LLVM_3_8,
`include(`target-avx512-common.ll')'
)
;;saturation_arithmetic_novec()