Searched refs:gallivm (Results 1 - 25 of 140) sorted by relevance

123456

/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
H A Dlp_bld_init.c118 * same gallivm state everywhere.
130 create_pass_manager(struct gallivm_state *gallivm) argument
132 assert(!gallivm->passmgr);
133 assert(gallivm->target);
135 gallivm->passmgr = LLVMCreateFunctionPassManager(gallivm->provider);
136 if (!gallivm->passmgr)
139 LLVMAddTargetData(gallivm->target, gallivm->passmgr);
146 LLVMAddCFGSimplificationPass(gallivm
185 free_gallivm_state(struct gallivm_state *gallivm) argument
243 init_gallivm_engine(struct gallivm_state *gallivm) argument
332 init_gallivm_state(struct gallivm_state *gallivm) argument
469 struct gallivm_state *gallivm; local
497 gallivm_destroy(struct gallivm_state *gallivm) argument
513 gallivm_optimize_function(struct gallivm_state *gallivm, LLVMValueRef func) argument
539 gallivm_verify_function(struct gallivm_state *gallivm, LLVMValueRef func) argument
562 gallivm_compile_module(struct gallivm_state *gallivm) argument
588 gallivm_jit_function(struct gallivm_state *gallivm, LLVMValueRef func) argument
616 gallivm_free_function(struct gallivm_state *gallivm, LLVMValueRef func, const void *code) argument
[all...]
H A Dlp_bld_printf.h38 lp_build_printf(struct gallivm_state *gallivm,
42 lp_build_print_value(struct gallivm_state *gallivm,
H A Dlp_bld_assert.h37 lp_build_assert(struct gallivm_state *gallivm,
H A Dlp_bld_const.h41 #include "gallivm/lp_bld.h"
42 #include "gallivm/lp_bld_init.h"
77 lp_build_undef(struct gallivm_state *gallivm, struct lp_type type);
81 lp_build_zero(struct gallivm_state *gallivm, struct lp_type type);
85 lp_build_one(struct gallivm_state *gallivm, struct lp_type type);
89 lp_build_const_elem(struct gallivm_state *gallivm, struct lp_type type,
93 lp_build_const_vec(struct gallivm_state *gallivm, struct lp_type type,
98 lp_build_const_int_vec(struct gallivm_state *gallivm,
103 lp_build_const_aos(struct gallivm_state *gallivm, struct lp_type type,
109 lp_build_const_mask_aos(struct gallivm_state *gallivm,
122 lp_build_const_int32(struct gallivm_state *gallivm, int i) argument
129 lp_build_const_float(struct gallivm_state *gallivm, float x) argument
137 lp_build_const_int_pointer(struct gallivm_state *gallivm, const void *ptr) argument
[all...]
H A Dlp_bld_gather.c43 lp_build_gather_elem_ptr(struct gallivm_state *gallivm, argument
52 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0));
58 LLVMValueRef index = lp_build_const_int32(gallivm, i);
59 offset = LLVMBuildExtractElement(gallivm->builder, offsets, index, "");
62 ptr = LLVMBuildGEP(gallivm->builder, base_ptr, &offset, 1, "");
74 lp_build_gather_elem(struct gallivm_state *gallivm, argument
82 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width);
84 LLVMTypeRef dst_elem_type = LLVMIntTypeInContext(gallivm->context, dst_width);
88 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0));
90 ptr = lp_build_gather_elem_ptr(gallivm, lengt
116 lp_build_gather(struct gallivm_state *gallivm, unsigned length, unsigned src_width, unsigned dst_width, LLVMValueRef base_ptr, LLVMValueRef offsets) argument
152 lp_build_gather_values(struct gallivm_state * gallivm, LLVMValueRef * values, unsigned value_count) argument
[all...]
H A Dlp_bld_conv.h40 #include "gallivm/lp_bld.h"
46 lp_build_half_to_float(struct gallivm_state *gallivm,
51 lp_build_clamped_float_to_unsigned_norm(struct gallivm_state *gallivm,
57 lp_build_unsigned_norm_to_float(struct gallivm_state *gallivm,
64 lp_build_conv(struct gallivm_state *gallivm,
71 lp_build_conv_mask(struct gallivm_state *gallivm,
H A Dlp_bld_init.h60 gallivm_destroy(struct gallivm_state *gallivm);
64 gallivm_verify_function(struct gallivm_state *gallivm,
68 gallivm_compile_module(struct gallivm_state *gallivm);
71 gallivm_jit_function(struct gallivm_state *gallivm,
75 gallivm_free_function(struct gallivm_state *gallivm,
H A Dlp_bld_pack.h42 #include "gallivm/lp_bld.h"
48 lp_build_interleave2_half(struct gallivm_state *gallivm,
55 lp_build_interleave2(struct gallivm_state *gallivm,
63 lp_build_unpack2(struct gallivm_state *gallivm,
72 lp_build_unpack(struct gallivm_state *gallivm,
79 lp_build_extract_range(struct gallivm_state *gallivm,
85 lp_build_concat(struct gallivm_state *gallivm,
91 lp_build_packs2(struct gallivm_state *gallivm,
99 lp_build_pack2(struct gallivm_state *gallivm,
107 lp_build_pack(struct gallivm_state *gallivm,
[all...]
H A Dlp_bld_flow.c55 lp_build_insert_new_block(struct gallivm_state *gallivm, const char *name) argument
62 current_block = LLVMGetInsertBlock(gallivm->builder);
68 new_block = LLVMInsertBasicBlockInContext(gallivm->context, next_block, name);
73 new_block = LLVMAppendBasicBlockInContext(gallivm->context, function, name);
86 struct gallivm_state *gallivm)
88 skip->gallivm = gallivm;
90 skip->block = lp_build_insert_new_block(gallivm, "skip");
104 new_block = lp_build_insert_new_block(skip->gallivm, "");
107 LLVMBuildCondBr(skip->gallivm
85 lp_build_flow_skip_begin(struct lp_build_skip_context *skip, struct gallivm_state *gallivm) argument
163 lp_build_mask_begin(struct lp_build_mask_context *mask, struct gallivm_state *gallivm, struct lp_type type, LLVMValueRef value) argument
217 lp_build_loop_begin(struct lp_build_loop_state *state, struct gallivm_state *gallivm, LLVMValueRef start) argument
289 lp_build_for_loop_begin(struct lp_build_for_loop_state *state, struct gallivm_state *gallivm, LLVMValueRef start, LLVMIntPredicate cmp_op, LLVMValueRef end, LLVMValueRef step) argument
377 lp_build_if(struct lp_build_if_state *ifthen, struct gallivm_state *gallivm, LLVMValueRef condition) argument
473 lp_build_alloca(struct gallivm_state *gallivm, LLVMTypeRef type, const char *name) argument
515 lp_build_array_alloca(struct gallivm_state *gallivm, LLVMTypeRef type, LLVMValueRef count, const char *name) argument
[all...]
H A Dlp_bld_format_yuv.c55 uyvy_to_yuv_soa(struct gallivm_state *gallivm, argument
63 LLVMBuilderRef builder = gallivm->builder;
91 lp_build_context_init(&bld32, gallivm, type);
93 tmp = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, type, 8), "");
94 tmp2 = LLVMBuildLShr(builder, tmp, lp_build_const_int_vec(gallivm, type, 16), "");
95 sel = lp_build_compare(gallivm, type, PIPE_FUNC_EQUAL, i, lp_build_const_int_vec(gallivm, type, 0));
101 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, 16), "");
102 shift = LLVMBuildAdd(builder, shift, lp_build_const_int_vec(gallivm, type, 8), "");
107 *v = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, typ
123 yuyv_to_yuv_soa(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i, LLVMValueRef *y, LLVMValueRef *u, LLVMValueRef *v) argument
184 yuv_to_rgb_soa(struct gallivm_state *gallivm, unsigned n, LLVMValueRef y, LLVMValueRef u, LLVMValueRef v, LLVMValueRef *r, LLVMValueRef *g, LLVMValueRef *b) argument
283 rgb_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef r, LLVMValueRef g, LLVMValueRef b) argument
326 uyvy_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
347 yuyv_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
368 rgbg_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
387 grgb_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
405 grbr_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
424 rgrb_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
445 lp_build_fetch_subsampled_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *format_desc, unsigned n, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j) argument
[all...]
H A Dlp_bld_flow.h38 #include "gallivm/lp_bld.h"
50 struct gallivm_state *gallivm; member in struct:lp_build_skip_context
58 struct gallivm_state *gallivm);
80 struct gallivm_state *gallivm,
113 struct gallivm_state *gallivm; member in struct:lp_build_loop_state
119 struct gallivm_state *gallivm,
147 struct gallivm_state *gallivm; member in struct:lp_build_for_loop_state
152 struct gallivm_state *gallivm,
167 struct gallivm_state *gallivm; member in struct:lp_build_if_state
178 struct gallivm_state *gallivm,
[all...]
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_init.c118 * same gallivm state everywhere.
130 create_pass_manager(struct gallivm_state *gallivm) argument
132 assert(!gallivm->passmgr);
133 assert(gallivm->target);
135 gallivm->passmgr = LLVMCreateFunctionPassManager(gallivm->provider);
136 if (!gallivm->passmgr)
139 LLVMAddTargetData(gallivm->target, gallivm->passmgr);
146 LLVMAddCFGSimplificationPass(gallivm
185 free_gallivm_state(struct gallivm_state *gallivm) argument
243 init_gallivm_engine(struct gallivm_state *gallivm) argument
332 init_gallivm_state(struct gallivm_state *gallivm) argument
469 struct gallivm_state *gallivm; local
497 gallivm_destroy(struct gallivm_state *gallivm) argument
513 gallivm_optimize_function(struct gallivm_state *gallivm, LLVMValueRef func) argument
539 gallivm_verify_function(struct gallivm_state *gallivm, LLVMValueRef func) argument
562 gallivm_compile_module(struct gallivm_state *gallivm) argument
588 gallivm_jit_function(struct gallivm_state *gallivm, LLVMValueRef func) argument
616 gallivm_free_function(struct gallivm_state *gallivm, LLVMValueRef func, const void *code) argument
[all...]
H A Dlp_bld_printf.h38 lp_build_printf(struct gallivm_state *gallivm,
42 lp_build_print_value(struct gallivm_state *gallivm,
H A Dlp_bld_assert.h37 lp_build_assert(struct gallivm_state *gallivm,
H A Dlp_bld_const.h41 #include "gallivm/lp_bld.h"
42 #include "gallivm/lp_bld_init.h"
77 lp_build_undef(struct gallivm_state *gallivm, struct lp_type type);
81 lp_build_zero(struct gallivm_state *gallivm, struct lp_type type);
85 lp_build_one(struct gallivm_state *gallivm, struct lp_type type);
89 lp_build_const_elem(struct gallivm_state *gallivm, struct lp_type type,
93 lp_build_const_vec(struct gallivm_state *gallivm, struct lp_type type,
98 lp_build_const_int_vec(struct gallivm_state *gallivm,
103 lp_build_const_aos(struct gallivm_state *gallivm, struct lp_type type,
109 lp_build_const_mask_aos(struct gallivm_state *gallivm,
122 lp_build_const_int32(struct gallivm_state *gallivm, int i) argument
129 lp_build_const_float(struct gallivm_state *gallivm, float x) argument
137 lp_build_const_int_pointer(struct gallivm_state *gallivm, const void *ptr) argument
[all...]
H A Dlp_bld_gather.c43 lp_build_gather_elem_ptr(struct gallivm_state *gallivm, argument
52 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0));
58 LLVMValueRef index = lp_build_const_int32(gallivm, i);
59 offset = LLVMBuildExtractElement(gallivm->builder, offsets, index, "");
62 ptr = LLVMBuildGEP(gallivm->builder, base_ptr, &offset, 1, "");
74 lp_build_gather_elem(struct gallivm_state *gallivm, argument
82 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width);
84 LLVMTypeRef dst_elem_type = LLVMIntTypeInContext(gallivm->context, dst_width);
88 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0));
90 ptr = lp_build_gather_elem_ptr(gallivm, lengt
116 lp_build_gather(struct gallivm_state *gallivm, unsigned length, unsigned src_width, unsigned dst_width, LLVMValueRef base_ptr, LLVMValueRef offsets) argument
152 lp_build_gather_values(struct gallivm_state * gallivm, LLVMValueRef * values, unsigned value_count) argument
[all...]
H A Dlp_bld_conv.h40 #include "gallivm/lp_bld.h"
46 lp_build_half_to_float(struct gallivm_state *gallivm,
51 lp_build_clamped_float_to_unsigned_norm(struct gallivm_state *gallivm,
57 lp_build_unsigned_norm_to_float(struct gallivm_state *gallivm,
64 lp_build_conv(struct gallivm_state *gallivm,
71 lp_build_conv_mask(struct gallivm_state *gallivm,
H A Dlp_bld_init.h60 gallivm_destroy(struct gallivm_state *gallivm);
64 gallivm_verify_function(struct gallivm_state *gallivm,
68 gallivm_compile_module(struct gallivm_state *gallivm);
71 gallivm_jit_function(struct gallivm_state *gallivm,
75 gallivm_free_function(struct gallivm_state *gallivm,
H A Dlp_bld_pack.h42 #include "gallivm/lp_bld.h"
48 lp_build_interleave2_half(struct gallivm_state *gallivm,
55 lp_build_interleave2(struct gallivm_state *gallivm,
63 lp_build_unpack2(struct gallivm_state *gallivm,
72 lp_build_unpack(struct gallivm_state *gallivm,
79 lp_build_extract_range(struct gallivm_state *gallivm,
85 lp_build_concat(struct gallivm_state *gallivm,
91 lp_build_packs2(struct gallivm_state *gallivm,
99 lp_build_pack2(struct gallivm_state *gallivm,
107 lp_build_pack(struct gallivm_state *gallivm,
[all...]
H A Dlp_bld_flow.c55 lp_build_insert_new_block(struct gallivm_state *gallivm, const char *name) argument
62 current_block = LLVMGetInsertBlock(gallivm->builder);
68 new_block = LLVMInsertBasicBlockInContext(gallivm->context, next_block, name);
73 new_block = LLVMAppendBasicBlockInContext(gallivm->context, function, name);
86 struct gallivm_state *gallivm)
88 skip->gallivm = gallivm;
90 skip->block = lp_build_insert_new_block(gallivm, "skip");
104 new_block = lp_build_insert_new_block(skip->gallivm, "");
107 LLVMBuildCondBr(skip->gallivm
85 lp_build_flow_skip_begin(struct lp_build_skip_context *skip, struct gallivm_state *gallivm) argument
163 lp_build_mask_begin(struct lp_build_mask_context *mask, struct gallivm_state *gallivm, struct lp_type type, LLVMValueRef value) argument
217 lp_build_loop_begin(struct lp_build_loop_state *state, struct gallivm_state *gallivm, LLVMValueRef start) argument
289 lp_build_for_loop_begin(struct lp_build_for_loop_state *state, struct gallivm_state *gallivm, LLVMValueRef start, LLVMIntPredicate cmp_op, LLVMValueRef end, LLVMValueRef step) argument
377 lp_build_if(struct lp_build_if_state *ifthen, struct gallivm_state *gallivm, LLVMValueRef condition) argument
473 lp_build_alloca(struct gallivm_state *gallivm, LLVMTypeRef type, const char *name) argument
515 lp_build_array_alloca(struct gallivm_state *gallivm, LLVMTypeRef type, LLVMValueRef count, const char *name) argument
[all...]
H A Dlp_bld_format_yuv.c55 uyvy_to_yuv_soa(struct gallivm_state *gallivm, argument
63 LLVMBuilderRef builder = gallivm->builder;
91 lp_build_context_init(&bld32, gallivm, type);
93 tmp = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, type, 8), "");
94 tmp2 = LLVMBuildLShr(builder, tmp, lp_build_const_int_vec(gallivm, type, 16), "");
95 sel = lp_build_compare(gallivm, type, PIPE_FUNC_EQUAL, i, lp_build_const_int_vec(gallivm, type, 0));
101 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, 16), "");
102 shift = LLVMBuildAdd(builder, shift, lp_build_const_int_vec(gallivm, type, 8), "");
107 *v = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, typ
123 yuyv_to_yuv_soa(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i, LLVMValueRef *y, LLVMValueRef *u, LLVMValueRef *v) argument
184 yuv_to_rgb_soa(struct gallivm_state *gallivm, unsigned n, LLVMValueRef y, LLVMValueRef u, LLVMValueRef v, LLVMValueRef *r, LLVMValueRef *g, LLVMValueRef *b) argument
283 rgb_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef r, LLVMValueRef g, LLVMValueRef b) argument
326 uyvy_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
347 yuyv_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
368 rgbg_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
387 grgb_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
405 grbr_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
424 rgrb_to_rgba_aos(struct gallivm_state *gallivm, unsigned n, LLVMValueRef packed, LLVMValueRef i) argument
445 lp_build_fetch_subsampled_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *format_desc, unsigned n, LLVMValueRef base_ptr, LLVMValueRef offset, LLVMValueRef i, LLVMValueRef j) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A Dlp_test_printf.c33 #include "gallivm/lp_bld.h"
34 #include "gallivm/lp_bld_init.h"
35 #include "gallivm/lp_bld_assert.h"
36 #include "gallivm/lp_bld_printf.h"
61 add_printf_test(struct gallivm_state *gallivm) argument
63 LLVMModuleRef module = gallivm->module;
64 LLVMTypeRef args[1] = { LLVMIntTypeInContext(gallivm->context, 32) };
65 LLVMValueRef func = LLVMAddFunction(module, "test_printf", LLVMFunctionType(LLVMVoidTypeInContext(gallivm->context), args, 1, 0));
66 LLVMBuilderRef builder = gallivm->builder;
67 LLVMBasicBlockRef block = LLVMAppendBasicBlockInContext(gallivm
92 struct gallivm_state *gallivm; local
[all...]
H A Dlp_jit.c37 #include "gallivm/lp_bld_init.h"
38 #include "gallivm/lp_bld_debug.h"
46 struct gallivm_state *gallivm = lp->gallivm; local
47 LLVMContextRef lc = gallivm->context;
74 LLVMAddTypeName(gallivm->module, "texture", texture_type);
76 LLVMInvalidateStructLayout(gallivm->target, texture_type);
80 gallivm->target, texture_type,
83 gallivm->target, texture_type,
86 gallivm
[all...]
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_test_printf.c33 #include "gallivm/lp_bld.h"
34 #include "gallivm/lp_bld_init.h"
35 #include "gallivm/lp_bld_assert.h"
36 #include "gallivm/lp_bld_printf.h"
61 add_printf_test(struct gallivm_state *gallivm) argument
63 LLVMModuleRef module = gallivm->module;
64 LLVMTypeRef args[1] = { LLVMIntTypeInContext(gallivm->context, 32) };
65 LLVMValueRef func = LLVMAddFunction(module, "test_printf", LLVMFunctionType(LLVMVoidTypeInContext(gallivm->context), args, 1, 0));
66 LLVMBuilderRef builder = gallivm->builder;
67 LLVMBasicBlockRef block = LLVMAppendBasicBlockInContext(gallivm
92 struct gallivm_state *gallivm; local
[all...]
H A Dlp_jit.c37 #include "gallivm/lp_bld_init.h"
38 #include "gallivm/lp_bld_debug.h"
46 struct gallivm_state *gallivm = lp->gallivm; local
47 LLVMContextRef lc = gallivm->context;
74 LLVMAddTypeName(gallivm->module, "texture", texture_type);
76 LLVMInvalidateStructLayout(gallivm->target, texture_type);
80 gallivm->target, texture_type,
83 gallivm->target, texture_type,
86 gallivm
[all...]

Completed in 332 milliseconds

123456