Fix for Windows build and making NEON target optional
This commit is contained in:
@@ -640,7 +640,7 @@ AddBitcodeToModule(const unsigned char *bitcode, int length,
|
||||
llvm::Triple bcTriple(bcModule->getTargetTriple());
|
||||
Debug(SourcePos(), "module triple: %s\nbitcode triple: %s\n",
|
||||
mTriple.str().c_str(), bcTriple.str().c_str());
|
||||
#ifndef __arm__
|
||||
#if defined(ISPC_ARM_ENABLED) && !defined(__arm__)
|
||||
// FIXME: More ugly and dangerous stuff. We really haven't set up
|
||||
// proper build and runtime infrastructure for ispc to do
|
||||
// cross-compilation, yet it's at minimum useful to be able to emit
|
||||
@@ -819,6 +819,7 @@ DefineStdlib(SymbolTable *symbolTable, llvm::LLVMContext *ctx, llvm::Module *mod
|
||||
// Next, add the target's custom implementations of the various needed
|
||||
// builtin functions (e.g. __masked_store_32(), etc).
|
||||
switch (g->target->getISA()) {
|
||||
#ifdef ISPC_ARM_ENABLED
|
||||
case Target::NEON: {
|
||||
if (runtime32) {
|
||||
EXPORT_MODULE(builtins_bitcode_neon_32bit);
|
||||
@@ -828,6 +829,7 @@ DefineStdlib(SymbolTable *symbolTable, llvm::LLVMContext *ctx, llvm::Module *mod
|
||||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
case Target::SSE2: {
|
||||
switch (g->target->getVectorWidth()) {
|
||||
case 4:
|
||||
|
||||
Reference in New Issue
Block a user