Fix incorrect LLVM_3_0svn #ifdefs
This commit is contained in:
6
ispc.cpp
6
ispc.cpp
@@ -85,7 +85,7 @@ Target::GetTarget(const char *arch, const char *cpu, const char *isa,
|
|||||||
if (isa == NULL) {
|
if (isa == NULL) {
|
||||||
if (!strcasecmp(cpu, "atom"))
|
if (!strcasecmp(cpu, "atom"))
|
||||||
isa = "sse2";
|
isa = "sse2";
|
||||||
#if defined(LLVM_3_0) || defined(LLVM_3_0_svn)
|
#if defined(LLVM_3_0) || defined(LLVM_3_0svn)
|
||||||
else if (!strcasecmp(cpu, "sandybridge") ||
|
else if (!strcasecmp(cpu, "sandybridge") ||
|
||||||
!strcasecmp(cpu, "corei7-avx"))
|
!strcasecmp(cpu, "corei7-avx"))
|
||||||
isa = "avx";
|
isa = "avx";
|
||||||
@@ -174,7 +174,7 @@ Target::GetTarget(const char *arch, const char *cpu, const char *isa,
|
|||||||
const char *
|
const char *
|
||||||
Target::SupportedTargetCPUs() {
|
Target::SupportedTargetCPUs() {
|
||||||
return "atom, barcelona, core2, corei7, "
|
return "atom, barcelona, core2, corei7, "
|
||||||
#if defined(LLVM_3_0) || defined(LLVM_3_0_svn)
|
#if defined(LLVM_3_0) || defined(LLVM_3_0svn)
|
||||||
"corei7-avx, "
|
"corei7-avx, "
|
||||||
#endif
|
#endif
|
||||||
"istanbul, nocona, penryn, "
|
"istanbul, nocona, penryn, "
|
||||||
@@ -194,7 +194,7 @@ Target::SupportedTargetArchs() {
|
|||||||
const char *
|
const char *
|
||||||
Target::SupportedTargetISAs() {
|
Target::SupportedTargetISAs() {
|
||||||
return "sse2, sse4, sse4x2"
|
return "sse2, sse4, sse4x2"
|
||||||
#if defined(LLVM_3_0) || defined(LLVM_3_0_svn)
|
#if defined(LLVM_3_0) || defined(LLVM_3_0svn)
|
||||||
", avx, avx-x2"
|
", avx, avx-x2"
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user