gallivm: fix lp_build_sample_offset() crash when indexing a 1-D texture
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_init.h
index 6a8ab8e5db9f96bd87811a2ec2698776bca1b45b..a32ced9b4c3a526c73806300e8a37f65f2dda97f 100644 (file)
 #define LP_BLD_INIT_H
 
 
-#include "llvm/Config/config.h"
+#include "lp_bld.h"
+#include <llvm-c/ExecutionEngine.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
 
+extern LLVMModuleRef lp_build_module;
+extern LLVMExecutionEngineRef lp_build_engine;
+extern LLVMModuleProviderRef lp_build_provider;
+extern LLVMTargetDataRef lp_build_target;
+extern LLVMPassManagerRef lp_build_pass;
 
-#ifndef LLVM_NATIVE_ARCH
 
 void
-LLVMLinkInJIT(void);
-
-int
-LLVMInitializeNativeTarget(void);
-
-#endif /* !LLVM_NATIVE_ARCH */
-
-
-#ifdef __cplusplus
-}
-#endif
+lp_build_init(void);
 
 
 #endif /* !LP_BLD_INIT_H */