/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...] |
lp_state_setup.c | 33 #include "gallivm/lp_bld_arit.h" 34 #include "gallivm/lp_bld_const.h" 35 #include "gallivm/lp_bld_debug.h" 36 #include "gallivm/lp_bld_init.h" 37 #include "gallivm/lp_bld_logic.h" 38 #include "gallivm/lp_bld_intr.h" 39 #include "gallivm/lp_bld_flow.h" 40 #include "gallivm/lp_bld_type.h" 84 type4f(struct gallivm_state *gallivm) 86 return LLVMVectorType(LLVMFloatTypeInContext(gallivm->context), 4) 671 struct gallivm_state *gallivm; local [all...] |
lp_bld_alpha.c | 37 #include "gallivm/lp_bld_type.h" 38 #include "gallivm/lp_bld_const.h" 39 #include "gallivm/lp_bld_arit.h" 40 #include "gallivm/lp_bld_conv.h" 41 #include "gallivm/lp_bld_logic.h" 42 #include "gallivm/lp_bld_flow.h" 43 #include "gallivm/lp_bld_debug.h" 49 lp_build_alpha_test(struct gallivm_state *gallivm, 61 lp_build_context_init(&bld, gallivm, type); 80 alpha = lp_build_clamped_float_to_unsigned_norm(gallivm, type, dst_width, alpha) [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...] |
lp_state_setup.c | 33 #include "gallivm/lp_bld_arit.h" 34 #include "gallivm/lp_bld_const.h" 35 #include "gallivm/lp_bld_debug.h" 36 #include "gallivm/lp_bld_init.h" 37 #include "gallivm/lp_bld_logic.h" 38 #include "gallivm/lp_bld_intr.h" 39 #include "gallivm/lp_bld_flow.h" 40 #include "gallivm/lp_bld_type.h" 84 type4f(struct gallivm_state *gallivm) 86 return LLVMVectorType(LLVMFloatTypeInContext(gallivm->context), 4) 671 struct gallivm_state *gallivm; local [all...] |
lp_bld_alpha.c | 37 #include "gallivm/lp_bld_type.h" 38 #include "gallivm/lp_bld_const.h" 39 #include "gallivm/lp_bld_arit.h" 40 #include "gallivm/lp_bld_conv.h" 41 #include "gallivm/lp_bld_logic.h" 42 #include "gallivm/lp_bld_flow.h" 43 #include "gallivm/lp_bld_debug.h" 49 lp_build_alpha_test(struct gallivm_state *gallivm, 61 lp_build_context_init(&bld, gallivm, type); 80 alpha = lp_build_clamped_float_to_unsigned_norm(gallivm, type, dst_width, alpha) [all...] |
/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_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_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_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_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_format_aos.c | 149 lp_build_unpack_arith_rgba_aos(struct gallivm_state *gallivm, 153 LLVMBuilderRef builder = gallivm->builder; 172 assert (LLVMTypeOf(packed) == LLVMInt32TypeInContext(gallivm->context)); 179 LLVMGetUndef(LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4)), 181 LLVMConstNull(LLVMInt32TypeInContext(gallivm->context)), 185 LLVMGetUndef(LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4)), 186 LLVMConstNull(LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4)), 199 shifts[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context)); 200 masks[i] = LLVMConstNull(LLVMInt32TypeInContext(gallivm->context)); 201 scales[i] = LLVMConstNull(LLVMFloatTypeInContext(gallivm->context)) [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...] |
/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_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_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_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_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_format_aos.c | 149 lp_build_unpack_arith_rgba_aos(struct gallivm_state *gallivm, 153 LLVMBuilderRef builder = gallivm->builder; 172 assert (LLVMTypeOf(packed) == LLVMInt32TypeInContext(gallivm->context)); 179 LLVMGetUndef(LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4)), 181 LLVMConstNull(LLVMInt32TypeInContext(gallivm->context)), 185 LLVMGetUndef(LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4)), 186 LLVMConstNull(LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4)), 199 shifts[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context)); 200 masks[i] = LLVMConstNull(LLVMInt32TypeInContext(gallivm->context)); 201 scales[i] = LLVMConstNull(LLVMFloatTypeInContext(gallivm->context)) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
draw_llvm.c | 33 #include "gallivm/lp_bld_arit.h" 34 #include "gallivm/lp_bld_logic.h" 35 #include "gallivm/lp_bld_const.h" 36 #include "gallivm/lp_bld_swizzle.h" 37 #include "gallivm/lp_bld_struct.h" 38 #include "gallivm/lp_bld_type.h" 39 #include "gallivm/lp_bld_flow.h" 40 #include "gallivm/lp_bld_debug.h" 41 #include "gallivm/lp_bld_tgsi.h" 42 #include "gallivm/lp_bld_printf.h 289 struct gallivm_state *gallivm = variant->gallivm; local 802 struct gallivm_state *gallivm = variant->gallivm; local 1062 struct gallivm_state *gallivm = variant->gallivm; local [all...] |
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_llvm.c | 33 #include "gallivm/lp_bld_arit.h" 34 #include "gallivm/lp_bld_logic.h" 35 #include "gallivm/lp_bld_const.h" 36 #include "gallivm/lp_bld_swizzle.h" 37 #include "gallivm/lp_bld_struct.h" 38 #include "gallivm/lp_bld_type.h" 39 #include "gallivm/lp_bld_flow.h" 40 #include "gallivm/lp_bld_debug.h" 41 #include "gallivm/lp_bld_tgsi.h" 42 #include "gallivm/lp_bld_printf.h 289 struct gallivm_state *gallivm = variant->gallivm; local 802 struct gallivm_state *gallivm = variant->gallivm; local 1062 struct gallivm_state *gallivm = variant->gallivm; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/ |
Makefile.sources | 161 gallivm/lp_bld_arit.c \ 162 gallivm/lp_bld_assert.c \ 163 gallivm/lp_bld_bitarit.c \ 164 gallivm/lp_bld_const.c \ 165 gallivm/lp_bld_conv.c \ 166 gallivm/lp_bld_flow.c \ 167 gallivm/lp_bld_format_aos.c \ 168 gallivm/lp_bld_format_aos_array.c \ 169 gallivm/lp_bld_format_soa.c \ 170 gallivm/lp_bld_format_yuv.c [all...] |
/external/mesa3d/src/gallium/auxiliary/ |
Makefile.sources | 161 gallivm/lp_bld_arit.c \ 162 gallivm/lp_bld_assert.c \ 163 gallivm/lp_bld_bitarit.c \ 164 gallivm/lp_bld_const.c \ 165 gallivm/lp_bld_conv.c \ 166 gallivm/lp_bld_flow.c \ 167 gallivm/lp_bld_format_aos.c \ 168 gallivm/lp_bld_format_aos_array.c \ 169 gallivm/lp_bld_format_soa.c \ 170 gallivm/lp_bld_format_yuv.c [all...] |