From 013ff2fae13da41c2f5619c4698b0a7b5aa6a06d Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 22 Oct 2014 13:09:59 +0100 Subject: gallivm,llvmpipe,clover: Bump required LLVM version to 3.3. We'll need to update gallivm for the interface changes in LLVM 3.6, and the fewer the number of older LLVM versions we support the less hairy that will be. As consequence HAVE_AVX define can disappear. (Note HAVE_AVX meant whether LLVM version supports AVX or not. Runtime support for AVX is always checked and enforced independently.) Verified llvmpipe builds and runs with with LLVM 3.3, 3.4, and 3.5. Reviewed-by: Roland Scheidegger --- .../state_trackers/clover/llvm/invocation.cpp | 36 +--------------------- 1 file changed, 1 insertion(+), 35 deletions(-) (limited to 'src/gallium/state_trackers/clover') diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 7c31008f52e..e9538224bf6 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -36,17 +36,11 @@ #include #include #endif -#if HAVE_LLVM < 0x0303 -#include -#include -#include -#else #include #include #include #include #include -#endif #if HAVE_LLVM < 0x0305 #include #endif @@ -54,9 +48,6 @@ #include #include #include -#if HAVE_LLVM < 0x0303 -#include -#endif #include #include #include @@ -64,13 +55,7 @@ #include -#if HAVE_LLVM < 0x0302 -#include -#elif HAVE_LLVM < 0x0303 -#include -#else #include -#endif #include #include #include @@ -203,9 +188,6 @@ namespace { c.getHeaderSearchOpts().AddPath(LIBCLC_INCLUDEDIR, clang::frontend::Angled, false, false -#if HAVE_LLVM < 0x0303 - , false -#endif ); // Add libclc include @@ -223,23 +205,12 @@ namespace { // of warnings and errors to be printed to stderr. // http://www.llvm.org/bugs/show_bug.cgi?id=19735 c.getDiagnosticOpts().ShowCarets = false; -#if HAVE_LLVM <= 0x0301 - c.getInvocation().setLangDefaults(clang::IK_OpenCL); -#else c.getInvocation().setLangDefaults(c.getLangOpts(), clang::IK_OpenCL, clang::LangStandard::lang_opencl11); -#endif c.createDiagnostics( -#if HAVE_LLVM < 0x0303 - 0, NULL, -#endif new clang::TextDiagnosticPrinter( s_log, -#if HAVE_LLVM <= 0x0301 - c.getDiagnosticOpts())); -#else &c.getDiagnosticOpts())); -#endif #if HAVE_LLVM >= 0x0306 c.getPreprocessorOpts().addRemappedFile(name, @@ -255,9 +226,6 @@ namespace { c.getHeaderSearchOpts().AddPath(tmp_header_path, clang::frontend::Angled, false, false -#if HAVE_LLVM < 0x0303 - , false -#endif ); for (header_map::const_iterator it = headers.begin(); @@ -368,9 +336,7 @@ namespace { compat::vector args; llvm::Function *kernel_func = mod->getFunction(kernel_name); -#if HAVE_LLVM < 0x0302 - llvm::TargetData TD(kernel_func->getParent()); -#elif HAVE_LLVM < 0x0305 +#if HAVE_LLVM < 0x0305 llvm::DataLayout TD(kernel_func->getParent()->getDataLayout()); #else llvm::DataLayout TD(mod); -- cgit v1.2.3