Fixed AVX-512 IR incompatibility issue
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user