From d5a48d9a1efa55c33ac98a7a50ebe245634bd3c5 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 3 Oct 2011 08:29:19 -0700 Subject: [PATCH] Fix incorrect LLVM_3_0svn #ifdefs --- ispc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ispc.cpp b/ispc.cpp index c854e53c..7a2b6abc 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -85,7 +85,7 @@ Target::GetTarget(const char *arch, const char *cpu, const char *isa, if (isa == NULL) { if (!strcasecmp(cpu, "atom")) 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") || !strcasecmp(cpu, "corei7-avx")) isa = "avx"; @@ -174,7 +174,7 @@ Target::GetTarget(const char *arch, const char *cpu, const char *isa, const char * Target::SupportedTargetCPUs() { 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, " #endif "istanbul, nocona, penryn, " @@ -194,7 +194,7 @@ Target::SupportedTargetArchs() { const char * Target::SupportedTargetISAs() { 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" #endif ;