HomeSort by relevance Sort by last modified time
    Searched refs:gallivm (Results 1 - 25 of 81) sorted by null

1 2 3 4

  /external/mesa3d/src/gallium/auxiliary/gallivm/
lp_bld_format.c 34 lp_build_format_cache_type(struct gallivm_state *gallivm)
40 LLVMArrayType(LLVMInt32TypeInContext(gallivm->context),
43 LLVMArrayType(LLVMInt64TypeInContext(gallivm->context),
47 LLVMInt64TypeInContext(gallivm->context);
49 LLVMInt64TypeInContext(gallivm->context);
52 s = LLVMStructTypeInContext(gallivm->context, elem_types,
lp_bld_printf.h 38 lp_build_printf(struct gallivm_state *gallivm,
42 lp_build_print_value(struct gallivm_state *gallivm,
lp_bld_init.c 109 create_pass_manager(struct gallivm_state *gallivm)
111 assert(!gallivm->passmgr);
112 assert(gallivm->target);
114 gallivm->passmgr = LLVMCreateFunctionPassManagerForModule(gallivm->module);
115 if (!gallivm->passmgr)
125 LLVMAddTargetData(gallivm->target, gallivm->passmgr);
144 td_str = LLVMCopyStringRepOfTargetData(gallivm->target);
145 LLVMSetDataLayout(gallivm->module, td_str)
516 struct gallivm_state *gallivm; local
    [all...]
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_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_init.h 65 gallivm_destroy(struct gallivm_state *gallivm);
68 gallivm_free_ir(struct gallivm_state *gallivm);
71 gallivm_verify_function(struct gallivm_state *gallivm,
75 gallivm_compile_module(struct gallivm_state *gallivm);
78 gallivm_jit_function(struct gallivm_state *gallivm,
lp_bld_conv.h 40 #include "gallivm/lp_bld.h"
46 lp_build_half_to_float(struct gallivm_state *gallivm,
50 lp_build_float_to_half(struct gallivm_state *gallivm,
54 lp_build_clamped_float_to_unsigned_norm(struct gallivm_state *gallivm,
60 lp_build_unsigned_norm_to_float(struct gallivm_state *gallivm,
67 lp_build_conv(struct gallivm_state *gallivm,
75 lp_build_conv_auto(struct gallivm_state *gallivm,
84 lp_build_conv_mask(struct gallivm_state *gallivm,
lp_bld_arit_overflow.h 41 #include "gallivm/lp_bld.h"
46 lp_build_uadd_overflow(struct gallivm_state *gallivm,
52 lp_build_usub_overflow(struct gallivm_state *gallivm,
58 lp_build_umul_overflow(struct gallivm_state *gallivm,
lp_bld_format.h 37 #include "gallivm/lp_bld.h"
38 #include "gallivm/lp_bld_init.h"
83 lp_build_format_cache_type(struct gallivm_state *gallivm);
96 lp_build_pack_rgba_aos(struct gallivm_state *gallivm,
101 lp_build_fetch_rgba_aos(struct gallivm_state *gallivm,
112 lp_build_fetch_rgba_aos_array(struct gallivm_state *gallivm,
130 lp_build_unpack_rgba_soa(struct gallivm_state *gallivm,
137 lp_build_rgba8_to_fi32_soa(struct gallivm_state *gallivm,
143 lp_build_fetch_rgba_soa(struct gallivm_state *gallivm,
159 lp_build_fetch_subsampled_rgba_aos(struct gallivm_state *gallivm,
    [all...]
lp_bld_gather.h 33 #include "gallivm/lp_bld.h"
37 lp_build_gather_elem_ptr(struct gallivm_state *gallivm,
44 lp_build_gather_elem(struct gallivm_state *gallivm,
55 lp_build_gather(struct gallivm_state *gallivm,
65 lp_build_gather_values(struct gallivm_state * gallivm,
lp_bld_format_cached.c 56 update_cache_access(struct gallivm_state *gallivm,
61 LLVMBuilderRef builder = gallivm->builder;
67 member_ptr = lp_build_struct_get_ptr(gallivm, ptr, index, "");
70 LLVMConstInt(LLVMInt64TypeInContext(gallivm->context),
78 store_cached_block(struct gallivm_state *gallivm,
84 LLVMBuilderRef builder = gallivm->builder;
89 type_ptr4x32 = LLVMPointerType(LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4), 0);
90 indices[0] = lp_build_const_int32(gallivm, 0);
91 indices[1] = lp_build_const_int32(gallivm, LP_BUILD_FORMAT_CACHE_MEMBER_TAGS);
96 indices[1] = lp_build_const_int32(gallivm, LP_BUILD_FORMAT_CACHE_MEMBER_DATA)
    [all...]
lp_bld_format_float.c 72 lp_build_float_to_smallfloat(struct gallivm_state *gallivm,
80 LLVMBuilderRef builder = gallivm->builder;
87 LLVMValueRef zero = lp_build_const_vec(gallivm, f32_type, 0.0f);
92 lp_build_context_init(&f32_bld, gallivm, f32_type);
93 lp_build_context_init(&i32_bld, gallivm, i32_type);
95 i32_smallexpmask = lp_build_const_int_vec(gallivm, i32_type,
97 i32_floatexpmask = lp_build_const_int_vec(gallivm, i32_type, 0xff << 23);
118 i32_roundmask = lp_build_const_int_vec(gallivm, i32_type,
130 magic = lp_build_const_int_vec(gallivm, i32_type,
136 small_max = lp_build_const_int_vec(gallivm, i32_type
    [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,
62 lp_build_uninterleave1(struct gallivm_state *gallivm,
68 lp_build_unpack2(struct gallivm_state *gallivm,
77 lp_build_unpack2_native(struct gallivm_state *gallivm,
85 lp_build_unpack(struct gallivm_state *gallivm,
92 lp_build_extract_range(struct gallivm_state *gallivm,
98 lp_build_concat(struct gallivm_state *gallivm,
104 lp_build_concat_n(struct gallivm_state *gallivm,
    [all...]
lp_bld_gather.c 49 lp_build_gather_elem_ptr(struct gallivm_state *gallivm,
58 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0));
64 LLVMValueRef index = lp_build_const_int32(gallivm, i);
65 offset = LLVMBuildExtractElement(gallivm->builder, offsets, index, "");
68 ptr = LLVMBuildGEP(gallivm->builder, base_ptr, &offset, 1, "");
80 lp_build_gather_elem(struct gallivm_state *gallivm,
90 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width);
92 LLVMTypeRef dst_elem_type = LLVMIntTypeInContext(gallivm->context, dst_width);
96 assert(LLVMTypeOf(base_ptr) == LLVMPointerType(LLVMInt8TypeInContext(gallivm->context), 0));
98 ptr = lp_build_gather_elem_ptr(gallivm, length, base_ptr, offsets, i)
    [all...]
lp_bld_format_aos_array.c 53 lp_build_fetch_rgba_aos_array(struct gallivm_state *gallivm,
60 LLVMBuilderRef builder = gallivm->builder;
71 src_vec_type = lp_build_vec_type(gallivm, src_type);
89 src_vec_type = lp_build_vec_type(gallivm, src_type);
96 res = lp_build_pad_vector(gallivm, res, dst_type.length);
108 lp_build_conv(gallivm, src_type, tmp_type, &res, 1, &res, 1);
111 lp_build_context_init(&bld, gallivm, tmp_type);
116 res = LLVMBuildBitCast(builder, res, lp_build_vec_type(gallivm, dst_type), "");
lp_bld_assert.c 60 lp_build_assert(struct gallivm_state *gallivm,
64 LLVMBuilderRef builder = gallivm->builder;
65 LLVMContextRef context = gallivm->context;
72 msg_string = lp_build_const_string(gallivm, msg);
78 function = lp_build_const_func_pointer(gallivm,
lp_bld_format_yuv.c 55 uyvy_to_yuv_soa(struct gallivm_state *gallivm,
63 LLVMBuilderRef builder = gallivm->builder;
97 lp_build_context_init(&bld32, gallivm, type);
99 tmp = LLVMBuildLShr(builder, packed, lp_build_const_int_vec(gallivm, type, 8), "");
100 tmp2 = LLVMBuildLShr(builder, tmp, lp_build_const_int_vec(gallivm, type, 16), "");
101 sel = lp_build_compare(gallivm, type, PIPE_FUNC_EQUAL, i, lp_build_const_int_vec(gallivm, type, 0));
108 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, 16), "");
109 shift = LLVMBuildAdd(builder, shift, lp_build_const_int_vec(gallivm, type, 8), "");
111 shift = LLVMBuildMul(builder, i, lp_build_const_int_vec(gallivm, type, -16), "")
    [all...]
lp_bld_quad.c 91 struct gallivm_state *gallivm = bld->gallivm; local
92 LLVMBuilderRef builder = gallivm->builder;
126 struct gallivm_state *gallivm = bld->gallivm; local
127 LLVMBuilderRef builder = gallivm->builder;
139 shuffles1[4*i + 0] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s1);
140 shuffles1[4*i + 1] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s1);
141 shuffles1[4*i + 2] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s2);
142 shuffles1[4*i + 3] = lp_build_const_int32(gallivm, LP_BLD_QUAD_TOP_LEFT + s2)
    [all...]
lp_bld_arit_overflow.c 59 build_binary_int_overflow(struct gallivm_state *gallivm,
65 LLVMBuilderRef builder = gallivm->builder;
87 oelems[1] = LLVMInt1TypeInContext(gallivm->context);
89 otype = LLVMStructTypeInContext(gallivm->context, oelems, 2, FALSE);
120 lp_build_uadd_overflow(struct gallivm_state *gallivm,
125 return build_binary_int_overflow(gallivm, "llvm.uadd.with.overflow",
144 lp_build_usub_overflow(struct gallivm_state *gallivm,
149 return build_binary_int_overflow(gallivm, "llvm.usub.with.overflow",
168 lp_build_umul_overflow(struct gallivm_state *gallivm,
173 return build_binary_int_overflow(gallivm, "llvm.umul.with.overflow"
    [all...]
lp_bld_flow.h 38 #include "gallivm/lp_bld.h"
53 struct gallivm_state *gallivm; member in struct:lp_build_skip_context
61 struct gallivm_state *gallivm);
83 struct gallivm_state *gallivm,
116 struct gallivm_state *gallivm; member in struct:lp_build_loop_state
122 struct gallivm_state *gallivm,
150 struct gallivm_state *gallivm; member in struct:lp_build_for_loop_state
155 struct gallivm_state *gallivm,
170 struct gallivm_state *gallivm; member in struct:lp_build_if_state
181 struct gallivm_state *gallivm,
    [all...]
lp_bld_format_srgb.c 94 lp_build_srgb_to_linear(struct gallivm_state *gallivm,
112 lp_build_context_init(&f32_bld, gallivm, f32_type);
132 LLVMValueRef rescale_const = lp_build_const_vec(gallivm, f32_type,
136 lin_const = lp_build_const_vec(gallivm, f32_type, 1.0f / (12.6f * 255.0f));
141 lin_thresh = lp_build_const_vec(gallivm, f32_type, 15.0f);
142 is_linear = lp_build_compare(gallivm, f32_type, PIPE_FUNC_LEQUAL, srcf, lin_thresh);
160 lp_build_linear_to_srgb(struct gallivm_state *gallivm,
165 LLVMBuilderRef builder = gallivm->builder;
169 lp_build_context_init(&f32_bld, gallivm, src_type);
192 exponent = lp_build_const_vec(gallivm, src_type, exp_f)
    [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")
93 struct gallivm_state *gallivm; local
    [all...]
lp_jit.c 37 #include "gallivm/lp_bld_init.h"
38 #include "gallivm/lp_bld_debug.h"
39 #include "gallivm/lp_bld_format.h"
47 struct gallivm_state *gallivm = lp->gallivm; local
48 LLVMContextRef lc = gallivm->context;
62 gallivm->target, viewport_type,
65 gallivm->target, viewport_type,
68 gallivm->target, viewport_type);
90 gallivm->target, texture_type
    [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...]

Completed in 158 milliseconds

1 2 3 4