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;
|
break;
|
||||||
}
|
}
|
||||||
|
#if ISPC_LLVM_VERSION >= ISPC_LLVM_3_7 // LLVM 3.7+
|
||||||
case Target::KNL_AVX512: {
|
case Target::KNL_AVX512: {
|
||||||
switch (g->target->getVectorWidth()) {
|
switch (g->target->getVectorWidth()) {
|
||||||
case 16:
|
case 16:
|
||||||
@@ -1347,6 +1348,7 @@ DefineStdlib(SymbolTable *symbolTable, llvm::LLVMContext *ctx, llvm::Module *mod
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
case Target::GENERIC: {
|
case Target::GENERIC: {
|
||||||
switch (g->target->getVectorWidth()) {
|
switch (g->target->getVectorWidth()) {
|
||||||
case 4:
|
case 4:
|
||||||
|
|||||||
@@ -30,5 +30,13 @@
|
|||||||
;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
define(`WIDTH',`16')
|
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()
|
;;saturation_arithmetic_novec()
|
||||||
|
|||||||
Reference in New Issue
Block a user