gallivm/llvmpipe: include os_llvm.h instead of llvm-c/Core.h
authorBrian Paul <brianp@vmware.com>
Thu, 11 Mar 2010 20:57:52 +0000 (13:57 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 11 Mar 2010 21:49:00 +0000 (14:49 -0700)
26 files changed:
src/gallium/auxiliary/gallivm/lp_bld_alpha.h
src/gallium/auxiliary/gallivm/lp_bld_arit.h
src/gallium/auxiliary/gallivm/lp_bld_blend.h
src/gallium/auxiliary/gallivm/lp_bld_const.h
src/gallium/auxiliary/gallivm/lp_bld_conv.h
src/gallium/auxiliary/gallivm/lp_bld_debug.h
src/gallium/auxiliary/gallivm/lp_bld_depth.h
src/gallium/auxiliary/gallivm/lp_bld_flow.h
src/gallium/auxiliary/gallivm/lp_bld_format.h
src/gallium/auxiliary/gallivm/lp_bld_interp.h
src/gallium/auxiliary/gallivm/lp_bld_intr.h
src/gallium/auxiliary/gallivm/lp_bld_logic.c
src/gallium/auxiliary/gallivm/lp_bld_logic.h
src/gallium/auxiliary/gallivm/lp_bld_pack.c
src/gallium/auxiliary/gallivm/lp_bld_pack.h
src/gallium/auxiliary/gallivm/lp_bld_sample.h
src/gallium/auxiliary/gallivm/lp_bld_struct.h
src/gallium/auxiliary/gallivm/lp_bld_swizzle.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/gallivm/lp_bld_type.h
src/gallium/drivers/llvmpipe/lp_screen.h
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_test.h
src/gallium/drivers/llvmpipe/lp_test_format.c
src/gallium/drivers/llvmpipe/lp_tex_sample.h

index 634575670db6778a0d0aeeecbd9150800e6d6be6..fe3cedcc48c759f1d979ff95ffbfaff381479179 100644 (file)
@@ -35,7 +35,7 @@
 #define LP_BLD_ALPHA_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 struct pipe_alpha_state;
 struct lp_type;
index 55385e3a66ad34c3aee0d0b6a600dafed535d3fe..f14b01e05fa4b26d6423deb75b7d63ac852cf42e 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_ARIT_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 
 struct lp_type;
index da272e549f351cf10ad7ed81e8dcd747ed14a62f..5a9e1c1fb2fccc53c96eba905ec53151cf167d6b 100644 (file)
@@ -40,7 +40,7 @@
  * for a standalone example.
  */
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
  
 #include "pipe/p_format.h"
 
index cb8e1c7b006da3ce9e887b10b391dc1f7504ddba..40786361031e5e15863bf337e4662923d189166f 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_CONST_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 #include <pipe/p_compiler.h>
 
index 948e68fae4fc3f7bf6998f82484d95bffd06011b..78e8155ff73a4c5e186eb5430fb291c663a57060 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_CONV_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 
 struct lp_type;
index 583e6132b4b3b505b24efea072682e3aeab4bf74..441ad94786f96e91a23461d4666e97143a3d4528 100644 (file)
@@ -30,7 +30,7 @@
 #define LP_BLD_DEBUG_H
 
 
-#include <llvm-c/Core.h>
+#include "os/os_llvm.h"
 
 #include "pipe/p_compiler.h"
 #include "util/u_string.h"
index 79d6981bb51f114e24d872df3dd2460f69778900..8be80024ae8154a7f972427fb569adaa8616b033 100644 (file)
@@ -36,7 +36,7 @@
 #define LP_BLD_DEPTH_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
  
 struct pipe_depth_state;
index 8bb22543ee67ca1fc93776ce01be2439e532329a..e15883654919bff1e8882685970c99c5c07eace4 100644 (file)
@@ -35,7 +35,7 @@
 #define LP_BLD_FLOW_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 
 struct lp_type;
index 970bee379f554e20906a28241272d14c6a4b633d..8972c0dc1784c5b810be64ebbc1874e729c1cb8a 100644 (file)
@@ -34,7 +34,7 @@
  * Pixel format helpers.
  */
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 #include "pipe/p_format.h"
 
index ca958cdf343cac72e0d509adedb8dd1708ef6194..177b5e943ee9552886b8184da72fce34fe03ed6f 100644 (file)
@@ -41,7 +41,7 @@
 #define LP_BLD_INTERP_H
 
 
-#include <llvm-c/Core.h>
+#include "os/os_llvm.h"
 
 #include "tgsi/tgsi_exec.h"
 
index f813f27074b922f8a2dd2c27b1a030b12920f125..7d5506c73381e098f74528f85d543dbcd71d039b 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_INTR_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 
 /**
index 1308076b3e92cc636cb8006bd713d27575fea9ac..f3df3dd138804ea4a0b82cc2b382b1308c686ad1 100644 (file)
@@ -92,7 +92,7 @@ lp_build_compare(LLVMBuilderRef builder,
 
    /* XXX: It is not clear if we should use the ordered or unordered operators */
 
-#if !defined(HAVE_LLVM) || HAVE_LLVM < 0x0207
+#if HAVE_LLVM < 0x0207
 #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
    if(type.width * type.length == 128) {
       if(type.floating && util_cpu_caps.has_sse) {
index a399ebf39ef4076d84dbf8cfc9efd137a86a4779..b54ec13b7018fd8600655722bd8daf56a2e6ff1d 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_LOGIC_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 #include "pipe/p_defines.h" /* For PIPE_FUNC_xxx */
 
index 4c61d1074948a2a40114a6ad63947f2cf7ac3d41..23398f41f9945ecde045a0c6203311d0cf283713 100644 (file)
@@ -256,7 +256,7 @@ lp_build_pack2(LLVMBuilderRef builder,
                LLVMValueRef lo,
                LLVMValueRef hi)
 {
-#if !(HAVE_LLVM >= 0x0207)
+#if HAVE_LLVM < 0x0207
    LLVMTypeRef src_vec_type = lp_build_vec_type(src_type);
 #endif
    LLVMTypeRef dst_vec_type = lp_build_vec_type(dst_type);
index fb2a34984a41e96bd15d16d09154a413f95d7105..346a17d5803a4d442b787601f1dae22fed8a4cec 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_PACK_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 
 struct lp_type;
index 5b8da5dbf210174f5a2fda5bac92b60835a52375..9e88ea54d70909c35c9ddc1a106746014ab23068 100644 (file)
@@ -36,7 +36,7 @@
 #define LP_BLD_SAMPLE_H
 
 
-#include <llvm-c/Core.h>
+#include "os/os_llvm.h"
 
 struct pipe_texture;
 struct pipe_sampler_state;
index 740392f561198dbb872201cea8734a09bfc8a398..34478c10f514c85fae48832aa35c354ea1fc994a 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_STRUCT_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 #include <llvm-c/Target.h>
 
 #include "util/u_debug.h"
index b9472127a6322e2485aea8e8fd2fc38bae17d4c6..57b5cc079f24dc6bc2671df92eee37d3c52de1f0 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_SWIZZLE_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 
 struct lp_type;
index eddb7a83fa29232930d4649ea8079d18447a5c8c..0f2f8a65b1049fe3c56e55e6a43df879c66949a1 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef LP_BLD_TGSI_H
 #define LP_BLD_TGSI_H
 
-#include <llvm-c/Core.h>
+#include "os/os_llvm.h"
 
 
 struct tgsi_token;
index 4daa904e633c8e73457236e190c48c1964c5a6e9..5b351476ac2062197f73376a85b1b2be289eba24 100644 (file)
@@ -37,7 +37,7 @@
 #define LP_BLD_TYPE_H
 
 
-#include <llvm-c/Core.h>  
+#include "os/os_llvm.h"
 
 #include <pipe/p_compiler.h>
 
index f4e62cbf08eb796a287528c7f0d5f78dcda13ade..d977f98cfaa658e11e2f2e390f6b2cca021a0eb1 100644 (file)
@@ -34,9 +34,7 @@
 #ifndef LP_SCREEN_H
 #define LP_SCREEN_H
 
-#include <llvm-c/Core.h>
-#include <llvm-c/Analysis.h>
-#include <llvm-c/Target.h>
+#include "os/os_llvm.h"
 #include <llvm-c/ExecutionEngine.h>
 
 #include "pipe/p_screen.h"
index 6dbdc195bfc3065f10ba3f95c94b6181d25c4fe5..a5a1a72074258b71cb86cd4661a3257ff9b227c9 100644 (file)
@@ -31,7 +31,7 @@
 #ifndef LP_STATE_H
 #define LP_STATE_H
 
-#include <llvm-c/Core.h>
+#include "os/os_llvm.h"
 
 #include "pipe/p_state.h"
 #include "tgsi/tgsi_scan.h"
index c4b79dd415613dd22613542c999f5a7959c853da..ea6f056bb07c6567d86dfa0230cf768dc60d1b56 100644 (file)
@@ -95,6 +95,9 @@
 #include "lp_tex_sample.h"
 
 
+#include <llvm-c/Analysis.h>
+
+
 static const unsigned char quad_offset_x[4] = {0, 1, 0, 1};
 static const unsigned char quad_offset_y[4] = {0, 0, 1, 1};
 
index a9b99945f9277759e94d496eb657fb9ded445338..1df9897898806d1b6b00c520e9093ab2c5d6f1ca 100644 (file)
@@ -41,7 +41,7 @@
 #include <stdio.h>
 #include <float.h>
 
-#include <llvm-c/Core.h>
+#include "os/os_llvm.h"
 #include <llvm-c/Analysis.h>
 #include <llvm-c/ExecutionEngine.h>
 #include <llvm-c/Target.h>
index d05157991bbc2e296494dc602b52536ba6eeb1f7..2c4d7fb6e1456239bdac55e3854f2f727713abe8 100644 (file)
@@ -29,7 +29,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 
-#include <llvm-c/Core.h>
+#include "os/os_llvm.h"
 #include <llvm-c/Analysis.h>
 #include <llvm-c/ExecutionEngine.h>
 #include <llvm-c/Target.h>
index cb59a94464a2604655642e5f9692e4879e1509a4..799df182b6a0552be0e1bc849ad0289e184303b7 100644 (file)
@@ -29,7 +29,7 @@
 #define LP_TEX_SAMPLE_H
 
 
-#include <llvm-c/Core.h>
+#include "os/os_llvm.h"
 
 
 struct lp_sampler_static_state;