gallivm/llvmpipe: include os_llvm.h instead of llvm-c/Core.h
This commit is contained in:
parent
4833b0f199
commit
489af2a3ba
|
@ -35,7 +35,7 @@
|
||||||
#define LP_BLD_ALPHA_H
|
#define LP_BLD_ALPHA_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
struct pipe_alpha_state;
|
struct pipe_alpha_state;
|
||||||
struct lp_type;
|
struct lp_type;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_ARIT_H
|
#define LP_BLD_ARIT_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
struct lp_type;
|
struct lp_type;
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
* for a standalone example.
|
* for a standalone example.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
#include "pipe/p_format.h"
|
#include "pipe/p_format.h"
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_CONST_H
|
#define LP_BLD_CONST_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
#include <pipe/p_compiler.h>
|
#include <pipe/p_compiler.h>
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_CONV_H
|
#define LP_BLD_CONV_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
struct lp_type;
|
struct lp_type;
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#define LP_BLD_DEBUG_H
|
#define LP_BLD_DEBUG_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
#include "pipe/p_compiler.h"
|
#include "pipe/p_compiler.h"
|
||||||
#include "util/u_string.h"
|
#include "util/u_string.h"
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#define LP_BLD_DEPTH_H
|
#define LP_BLD_DEPTH_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
struct pipe_depth_state;
|
struct pipe_depth_state;
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#define LP_BLD_FLOW_H
|
#define LP_BLD_FLOW_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
struct lp_type;
|
struct lp_type;
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
* Pixel format helpers.
|
* Pixel format helpers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
#include "pipe/p_format.h"
|
#include "pipe/p_format.h"
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
#define LP_BLD_INTERP_H
|
#define LP_BLD_INTERP_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
#include "tgsi/tgsi_exec.h"
|
#include "tgsi/tgsi_exec.h"
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_INTR_H
|
#define LP_BLD_INTR_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -92,7 +92,7 @@ lp_build_compare(LLVMBuilderRef builder,
|
||||||
|
|
||||||
/* XXX: It is not clear if we should use the ordered or unordered operators */
|
/* 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 defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
|
||||||
if(type.width * type.length == 128) {
|
if(type.width * type.length == 128) {
|
||||||
if(type.floating && util_cpu_caps.has_sse) {
|
if(type.floating && util_cpu_caps.has_sse) {
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_LOGIC_H
|
#define LP_BLD_LOGIC_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
#include "pipe/p_defines.h" /* For PIPE_FUNC_xxx */
|
#include "pipe/p_defines.h" /* For PIPE_FUNC_xxx */
|
||||||
|
|
||||||
|
|
|
@ -256,7 +256,7 @@ lp_build_pack2(LLVMBuilderRef builder,
|
||||||
LLVMValueRef lo,
|
LLVMValueRef lo,
|
||||||
LLVMValueRef hi)
|
LLVMValueRef hi)
|
||||||
{
|
{
|
||||||
#if !(HAVE_LLVM >= 0x0207)
|
#if HAVE_LLVM < 0x0207
|
||||||
LLVMTypeRef src_vec_type = lp_build_vec_type(src_type);
|
LLVMTypeRef src_vec_type = lp_build_vec_type(src_type);
|
||||||
#endif
|
#endif
|
||||||
LLVMTypeRef dst_vec_type = lp_build_vec_type(dst_type);
|
LLVMTypeRef dst_vec_type = lp_build_vec_type(dst_type);
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_PACK_H
|
#define LP_BLD_PACK_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
struct lp_type;
|
struct lp_type;
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#define LP_BLD_SAMPLE_H
|
#define LP_BLD_SAMPLE_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
struct pipe_texture;
|
struct pipe_texture;
|
||||||
struct pipe_sampler_state;
|
struct pipe_sampler_state;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_STRUCT_H
|
#define LP_BLD_STRUCT_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
#include <llvm-c/Target.h>
|
#include <llvm-c/Target.h>
|
||||||
|
|
||||||
#include "util/u_debug.h"
|
#include "util/u_debug.h"
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_SWIZZLE_H
|
#define LP_BLD_SWIZZLE_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
struct lp_type;
|
struct lp_type;
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#ifndef LP_BLD_TGSI_H
|
#ifndef LP_BLD_TGSI_H
|
||||||
#define LP_BLD_TGSI_H
|
#define LP_BLD_TGSI_H
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
struct tgsi_token;
|
struct tgsi_token;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define LP_BLD_TYPE_H
|
#define LP_BLD_TYPE_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
#include <pipe/p_compiler.h>
|
#include <pipe/p_compiler.h>
|
||||||
|
|
||||||
|
|
|
@ -34,9 +34,7 @@
|
||||||
#ifndef LP_SCREEN_H
|
#ifndef LP_SCREEN_H
|
||||||
#define LP_SCREEN_H
|
#define LP_SCREEN_H
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
#include <llvm-c/Analysis.h>
|
|
||||||
#include <llvm-c/Target.h>
|
|
||||||
#include <llvm-c/ExecutionEngine.h>
|
#include <llvm-c/ExecutionEngine.h>
|
||||||
|
|
||||||
#include "pipe/p_screen.h"
|
#include "pipe/p_screen.h"
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#ifndef LP_STATE_H
|
#ifndef LP_STATE_H
|
||||||
#define LP_STATE_H
|
#define LP_STATE_H
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
#include "pipe/p_state.h"
|
#include "pipe/p_state.h"
|
||||||
#include "tgsi/tgsi_scan.h"
|
#include "tgsi/tgsi_scan.h"
|
||||||
|
|
|
@ -95,6 +95,9 @@
|
||||||
#include "lp_tex_sample.h"
|
#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_x[4] = {0, 1, 0, 1};
|
||||||
static const unsigned char quad_offset_y[4] = {0, 0, 1, 1};
|
static const unsigned char quad_offset_y[4] = {0, 0, 1, 1};
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
#include <llvm-c/Analysis.h>
|
#include <llvm-c/Analysis.h>
|
||||||
#include <llvm-c/ExecutionEngine.h>
|
#include <llvm-c/ExecutionEngine.h>
|
||||||
#include <llvm-c/Target.h>
|
#include <llvm-c/Target.h>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
#include <llvm-c/Analysis.h>
|
#include <llvm-c/Analysis.h>
|
||||||
#include <llvm-c/ExecutionEngine.h>
|
#include <llvm-c/ExecutionEngine.h>
|
||||||
#include <llvm-c/Target.h>
|
#include <llvm-c/Target.h>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define LP_TEX_SAMPLE_H
|
#define LP_TEX_SAMPLE_H
|
||||||
|
|
||||||
|
|
||||||
#include <llvm-c/Core.h>
|
#include "os/os_llvm.h"
|
||||||
|
|
||||||
|
|
||||||
struct lp_sampler_static_state;
|
struct lp_sampler_static_state;
|
||||||
|
|
Loading…
Reference in New Issue