/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
lp_bld_init.c | 118 * same gallivm state everywhere. 130 create_pass_manager(struct gallivm_state *gallivm) 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->passmgr) 469 struct gallivm_state *gallivm; local [all...] |
lp_bld_printf.h | 38 lp_build_printf(struct gallivm_state *gallivm, 42 lp_build_print_value(struct gallivm_state *gallivm,
|
lp_bld_assert.h | 37 lp_build_assert(struct gallivm_state *gallivm,
|
lp_bld_const.h | 41 #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, [all...] |
lp_bld_gather.c | 43 lp_build_gather_elem_ptr(struct gallivm_state *gallivm, 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, 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, length, base_ptr, offsets, i) [all...] |
lp_bld_conv.h | 40 #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,
|
lp_bld_init.h | 60 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,
|
lp_bld_pack.h | 42 #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...] |
lp_bld_flow.c | 55 lp_build_insert_new_block(struct gallivm_state *gallivm, const char *name) 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->builder, cond, skip->block, new_block) [all...] |
lp_bld_format_yuv.c | 55 uyvy_to_yuv_soa(struct gallivm_state *gallivm, 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, type, 16), "") [all...] |
lp_bld_flow.h | 38 #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/ |
lp_bld_init.c | 118 * same gallivm state everywhere. 130 create_pass_manager(struct gallivm_state *gallivm) 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->passmgr) 469 struct gallivm_state *gallivm; local [all...] |
lp_bld_printf.h | 38 lp_build_printf(struct gallivm_state *gallivm, 42 lp_build_print_value(struct gallivm_state *gallivm,
|
lp_bld_assert.h | 37 lp_build_assert(struct gallivm_state *gallivm,
|
lp_bld_const.h | 41 #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, [all...] |
lp_bld_gather.c | 43 lp_build_gather_elem_ptr(struct gallivm_state *gallivm, 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, 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, length, base_ptr, offsets, i) [all...] |
lp_bld_conv.h | 40 #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,
|
lp_bld_init.h | 60 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,
|
lp_bld_pack.h | 42 #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...] |
lp_bld_flow.c | 55 lp_build_insert_new_block(struct gallivm_state *gallivm, const char *name) 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->builder, cond, skip->block, new_block) [all...] |
lp_bld_format_yuv.c | 55 uyvy_to_yuv_soa(struct gallivm_state *gallivm, 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, type, 16), "") [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_test_printf.c | 33 #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) 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->context, func, "entry") 92 struct gallivm_state *gallivm; local [all...] |
lp_jit.c | 37 #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->target, texture_type [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_test_printf.c | 33 #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) 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->context, func, "entry") 92 struct gallivm_state *gallivm; local [all...] |
lp_jit.c | 37 #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->target, texture_type [all...] |