Home
last modified time | relevance | path

Searched refs:LLVMConstInt (Results 1 – 23 of 23) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_const.c239 return LLVMConstInt(LLVMIntTypeInContext(gallivm->context, type.width), 0, 0); in lp_build_zero()
260 elems[0] = LLVMConstInt(elem_type, util_float_to_half(1.0f), 0); in lp_build_one()
264 elems[0] = LLVMConstInt(elem_type, 1LL << (type.width/2), 0); in lp_build_one()
266 elems[0] = LLVMConstInt(elem_type, 1, 0); in lp_build_one()
268 elems[0] = LLVMConstInt(elem_type, (1LL << (type.width - 1)) - 1, 0); in lp_build_one()
307 elem = LLVMConstInt(elem_type, util_float_to_half((float)val), 0); in lp_build_const_elem()
314 elem = LLVMConstInt(elem_type, round(val*dscale), 0); in lp_build_const_elem()
352 elems[i] = LLVMConstInt(elem_type, val, type.sign ? 1 : 0); in lp_build_const_int_vec()
408 masks[j + i] = LLVMConstInt(elem_type, in lp_build_const_mask_aos()
Dlp_bld_swizzle.c189 shuffles[j + i] = LLVMConstInt(elem_type, j + channel, 0); in lp_build_swizzle_scalar_aos()
311 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
315 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
322 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
578 shuffles[i] = LLVMConstInt(i32t, i * 4, 0); in lp_build_pack_aos_scalars()
613 shuffles[i*4] = LLVMConstInt(i32t, i, 0); in lp_build_unpack_broadcast_aos_scalars()
614 shuffles[i*4+1] = LLVMConstInt(i32t, i, 0); in lp_build_unpack_broadcast_aos_scalars()
615 shuffles[i*4+2] = LLVMConstInt(i32t, i, 0); in lp_build_unpack_broadcast_aos_scalars()
616 shuffles[i*4+3] = LLVMConstInt(i32t, i, 0); in lp_build_unpack_broadcast_aos_scalars()
Dlp_bld_const.h124 return LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), i, 0); in lp_build_const_int32()
144 v = LLVMConstInt(int_type, (uintptr_t) ptr, 0); in lp_build_const_int_pointer()
Dlp_bld_sample.c198 LLVMValueRef index0 = LLVMConstInt(i32t, 0, 0); in lp_build_rho()
199 LLVMValueRef index1 = LLVMConstInt(i32t, 1, 0); in lp_build_rho()
200 LLVMValueRef index2 = LLVMConstInt(i32t, 2, 0); in lp_build_rho()
852 LLVMConstInt(i32t, 0, 0)); in lp_build_extract_image_sizes()
858 LLVMConstInt(i32t, 1, 0)); in lp_build_extract_image_sizes()
864 LLVMConstInt(i32t, 2, 0)); in lp_build_extract_image_sizes()
Dlp_bld_logic.c161 args[2] = LLVMConstInt(LLVMInt8TypeInContext(gallivm->context), cc, 0); in lp_build_compare()
599 shuffles[j + i] = LLVMConstInt(elem_type, in lp_build_select_aos()
Dlp_bld_flow.c251 step = LLVMConstInt(LLVMTypeOf(end), 1, 0); in lp_build_loop_end_cond()
Dlp_bld_sample_soa.c1314 tex_width, LLVMConstInt(i32t, 0, 0), ""); in lp_build_sample_soa()
1317 tex_height, LLVMConstInt(i32t, 1, 0), ""); in lp_build_sample_soa()
1320 tex_depth, LLVMConstInt(i32t, 2, 0), ""); in lp_build_sample_soa()
Dlp_bld_arit.c1308 LLVMValueRef index0 = LLVMConstInt(i32t, 0, 0); in lp_build_round_sse41()
1328 args[2] = LLVMConstInt(i32t, mode, 0); in lp_build_round_sse41()
1368 LLVMConstInt(i32t, mode, 0)); in lp_build_round_sse41()
1398 LLVMValueRef index0 = LLVMConstInt(i32t, 0, 0); in lp_build_iround_nearest_sse2()
Dlp_bld_sample_aos.c790 index = LLVMConstInt(elem_type, j/2 + subindex, 0); in lp_build_sample_fetch_image_linear()
794 index = LLVMConstInt(elem_type, h16.type.length/2 + j/2 + subindex, 0); in lp_build_sample_fetch_image_linear()
Dlp_bld_tgsi_soa.c87 LLVMConstInt(int_type, LP_MAX_TGSI_LOOP_ITERATIONS, false), in lp_exec_mask_init()
260 LLVMConstInt(int_type, 1, false), in lp_exec_endloop()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_printf.c73 …lp_build_printf(gallivm, "print 5 6: %d %d\n", LLVMConstInt(LLVMInt32TypeInContext(gallivm->contex… in add_printf_test()
74 LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 6, 0)); in add_printf_test()
77 …lp_build_assert(gallivm, LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 1, 0), "assert(1)"… in add_printf_test()
Dlp_test_conv.c130 LLVMValueRef index = LLVMConstInt(LLVMInt32TypeInContext(context), i, 0); in add_conv_test()
138 LLVMValueRef index = LLVMConstInt(LLVMInt32TypeInContext(context), i, 0); in add_conv_test()
Dlp_state_fs.c159 LLVMConstInt(i32t, shift, 0), in generate_quad_mask()
171 bits[4*i + 0] = LLVMConstInt(i32t, 1 << (j + 0), 0); in generate_quad_mask()
172 bits[4*i + 1] = LLVMConstInt(i32t, 1 << (j + 1), 0); in generate_quad_mask()
173 bits[4*i + 2] = LLVMConstInt(i32t, 1 << (j + 4), 0); in generate_quad_mask()
174 bits[4*i + 3] = LLVMConstInt(i32t, 1 << (j + 5), 0); in generate_quad_mask()
943 LLVMValueRef depth_offset = LLVMConstInt(int32_type, in generate_fragment()
Dlp_test_blend.c213 LLVMValueRef index = LLVMConstInt(LLVMInt32TypeInContext(context), i, 0); in add_blend_test()
225 LLVMValueRef index = LLVMConstInt(LLVMInt32TypeInContext(context), i, 0); in add_blend_test()
/external/llvm/tools/llvm-c-test/
Dmetadata.c20 LLVMValueRef values[] = { LLVMConstInt(LLVMInt32Type(), 0, 0) }; in add_named_metadata_operand()
32 LLVMValueRef values[] = { LLVMConstInt(LLVMInt32Type(), 0, 0) }; in set_metadata()
Dcalc.c97 stack[depth++] = LLVMConstInt(LLVMInt64Type(), val, 1); in build_from_tokens()
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITCAPITest.cpp176 LLVMBuildRet(builder, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildSimpleFunction()
202 LLVMConstInt(LLVMInt64Type(), 0, 0), LLVMConstInt(LLVMInt32Type(), 5, 0), in buildFunctionThatUsesStackmap()
203 LLVMConstInt(LLVMInt32Type(), 42, 0) in buildFunctionThatUsesStackmap()
206 LLVMBuildRet(builder, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildFunctionThatUsesStackmap()
221 LLVMSetInitializer(GlobalVar, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildModuleWithCodeAndData()
355 LLVMSetInitializer(GlobalVar, LLVMConstInt(LLVMInt32Type(), 42, 0)); in TEST_F()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_setup_tgsi_llvm.c72 swizzles[0] = LLVMConstInt(i32t, swizzle_x, 0); in emit_swizzle()
73 swizzles[1] = LLVMConstInt(i32t, swizzle_y, 0); in emit_swizzle()
74 swizzles[2] = LLVMConstInt(i32t, swizzle_z, 0); in emit_swizzle()
75 swizzles[3] = LLVMConstInt(i32t, swizzle_w, 0); in emit_swizzle()
876 val = LLVMBuildSelect(builder, cmp, val, LLVMConstInt(bld_base->int_bld.elem_type, -1, true), ""); in emit_ssg()
945 LLVMConstInt(bld_base->uint_bld.elem_type, imm->u[i].Uint, false ); in emit_immediate()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c507 LLVMConstInt(LLVMInt64TypeInContext(gallivm->context), in generate_fetch()
687 LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), in convert_to_aos()
689 LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), in convert_to_aos()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c712 return LLVMConstInt(IntTy, (long long) Long_val(N), 1); in llvm_const_int()
718 return LLVMConstInt(IntTy, Int64_val(N), Bool_val(SExt)); in llvm_const_of_int64()
/external/llvm/include/llvm-c/
DCore.h1405 LLVMValueRef LLVMConstInt(LLVMTypeRef IntTy, unsigned long long N,
/external/llvm/lib/IR/
DCore.cpp833 LLVMValueRef LLVMConstInt(LLVMTypeRef IntTy, unsigned long long N, in LLVMConstInt() function
/external/llvm/bindings/go/llvm/
Dir.go766 v.C = C.LLVMConstInt(t.C,