Fixing problem with autodispatch when compiled with NVPTX target

This commit is contained in:
Dmitry Babokin
2014-12-31 12:34:12 +03:00
parent da83196996
commit aeaef1bedf

18
ispc.h
View File

@@ -176,14 +176,20 @@ public:
also that __best_available_isa() needs to be updated if ISAs are also that __best_available_isa() needs to be updated if ISAs are
added or the enumerant values are reordered. */ added or the enumerant values are reordered. */
enum ISA { enum ISA {
SSE2 = 0,
SSE4 = 1,
AVX = 2,
AVX11 = 3,
AVX2 = 4,
GENERIC = 5,
#ifdef ISPC_NVPTX_ENABLED #ifdef ISPC_NVPTX_ENABLED
NVPTX, NVPTX,
#endif
#ifdef ISPC_ARM_ENABLED
NEON32, NEON16, NEON8,
#endif #endif
SSE2, SSE4, AVX, AVX11, AVX2, GENERIC, #ifdef ISPC_ARM_ENABLED
NUM_ISAS }; NEON32, NEON16, NEON8,
#endif
NUM_ISAS
};
/** Initializes the given Target pointer for a target of the given /** Initializes the given Target pointer for a target of the given
name, if the name is a known target. Returns true if the name, if the name is a known target. Returns true if the