Home
last modified time | relevance | path

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

12

/external/mesa3d/src/amd/common/
Dac_nir_to_llvm.c267 offset = LLVMConstInt(ctx->i32, idx * 16, false); in get_shared_memory_ptr()
313 LLVMConstInt(ctx->i32, rshift, false), ""); in unpack_param()
318 LLVMConstInt(ctx->i32, mask, false), ""); in unpack_param()
565 ctx->i32zero = LLVMConstInt(ctx->i32, 0, false); in setup_types()
566 ctx->i32one = LLVMConstInt(ctx->i32, 1, false); in setup_types()
607 LLVMConstInt(ctx->i32, index, false), ""); in llvm_extract_elem()
618 LLVMConstInt(ctx->i32, 0, false), LLVMConstInt(ctx->i32, 1, false), in trim_vector()
619 LLVMConstInt(ctx->i32, 2, false), LLVMConstInt(ctx->i32, 3, false)}; in trim_vector()
646 LLVMValueRef index = LLVMConstInt(ctx->i32, i, false); in build_store_values_extended()
698 LLVMConstInt(ctx->i32, src.swizzle[0], false), in get_alu_src()
[all …]
Dac_llvm_util.c289 LLVMValueRef index = LLVMConstInt(ctx->i32, i, false); in ac_build_gather_values_extended()
358 LLVMConstInt(ctx->i32, 0, 0), ""); in build_cube_intrinsic()
360 LLVMConstInt(ctx->i32, 1, 0), ""); in build_cube_intrinsic()
362 LLVMConstInt(ctx->i32, 2, 0), ""); in build_cube_intrinsic()
364 LLVMConstInt(ctx->i32, 3, 0), ""); in build_cube_intrinsic()
/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, (long long) 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.c183 shuffles[j + i] = LLVMConstInt(elem_type, j + channel, 0); in lp_build_swizzle_scalar_aos()
416 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
420 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
427 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos()
749 shuffles[i] = LLVMConstInt(i32t, i * 4 + channel, 0); in lp_build_pack_aos_scalars()
784 shuffles[i*4] = LLVMConstInt(i32t, i, 0); in lp_build_unpack_broadcast_aos_scalars()
785 shuffles[i*4+1] = LLVMConstInt(i32t, i, 0); in lp_build_unpack_broadcast_aos_scalars()
786 shuffles[i*4+2] = LLVMConstInt(i32t, i, 0); in lp_build_unpack_broadcast_aos_scalars()
787 shuffles[i*4+3] = LLVMConstInt(i32t, i, 0); in lp_build_unpack_broadcast_aos_scalars()
Dlp_bld_gather.c146 LLVMConstInt(dst_elem_type, dst_width - src_width, 0), ""); in lp_build_gather_elem()
240 LLVMConstInt(dst_elem_type, in lp_build_gather_elem_vec()
296 LLVMValueRef scale = LLVMConstInt(i32_type, src_width/8, 0); in lp_build_gather_avx2()
306 LLVMValueRef alignment = LLVMConstInt(i32_type, src_width/8, 0); in lp_build_gather_avx2()
347 LLVMValueRef scale = LLVMConstInt(i8_type, 1, 0); in lp_build_gather_avx2()
Dlp_bld_const.h126 return LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), i, 0); in lp_build_const_int32()
146 v = LLVMConstInt(int_type, (uintptr_t) ptr, 0); in lp_build_const_int_pointer()
Dlp_bld_format_cached.c70 LLVMConstInt(LLVMInt64TypeInContext(gallivm->context), in update_cache_access()
218 args[2] = LLVMConstInt(i32t, i, 0); in update_cached_block()
219 args[3] = LLVMConstInt(i32t, j, 0); in update_cached_block()
Dlp_bld_logic.c341 LLVMValueRef shift = LLVMConstInt(bld->int_elem_type, bld->type.width - 1, 0); in lp_build_select()
468 shuffles[j + i] = LLVMConstInt(elem_type, in lp_build_select_aos()
Dlp_bld_sample.c227 LLVMValueRef index0 = LLVMConstInt(i32t, 0, 0); in lp_build_rho()
228 LLVMValueRef index1 = LLVMConstInt(i32t, 1, 0); in lp_build_rho()
229 LLVMValueRef index2 = LLVMConstInt(i32t, 2, 0); in lp_build_rho()
1353 LLVMConstInt(i32t, 0, 0)); in lp_build_extract_image_sizes()
1359 LLVMConstInt(i32t, 1, 0)); in lp_build_extract_image_sizes()
1365 LLVMConstInt(i32t, 2, 0)); in lp_build_extract_image_sizes()
Dlp_bld_flow.c251 step = LLVMConstInt(LLVMTypeOf(end), 1, 0); in lp_build_loop_end_cond()
Dlp_bld_conv.c170 src, LLVMConstInt(i32t, mode, 0)); in lp_build_float_to_half()
197 LLVMValueRef index = LLVMConstInt(i32t, i, 0); in lp_build_float_to_half()
Dlp_bld_sample_soa.c2744 LLVMConstInt(i32t, 0, 0), ""); in lp_build_sample_soa_code()
2751 LLVMConstInt(i32t, 1, 0), ""); in lp_build_sample_soa_code()
2758 LLVMConstInt(i32t, 2, 0), ""); in lp_build_sample_soa_code()
Dlp_bld_arit.c1999 LLVMValueRef index0 = LLVMConstInt(i32t, 0, 0); in lp_build_iround_nearest_sse2()
3787 LLVMConstInt(LLVMTypeOf(mxcsr), daz_ftz, 0), ""); in lp_build_fpstate_set_denorms_zero()
3790 LLVMConstInt(LLVMTypeOf(mxcsr), ~daz_ftz, 0), ""); in lp_build_fpstate_set_denorms_zero()
/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.c165 LLVMConstInt(i32t, shift, 0), in generate_quad_mask()
177 bits[4*i + 0] = LLVMConstInt(i32t, 1ULL << (j + 0), 0); in generate_quad_mask()
178 bits[4*i + 1] = LLVMConstInt(i32t, 1ULL << (j + 1), 0); in generate_quad_mask()
179 bits[4*i + 2] = LLVMConstInt(i32t, 1ULL << (j + 4), 0); in generate_quad_mask()
180 bits[4*i + 3] = LLVMConstInt(i32t, 1ULL << (j + 5), 0); in generate_quad_mask()
/external/llvm/tools/llvm-c-test/
Dmetadata.c19 LLVMValueRef values[] = { LLVMConstInt(LLVMInt32Type(), 0, 0) }; in llvm_add_named_metadata_operand()
31 LLVMValueRef values[] = { LLVMConstInt(LLVMInt32Type(), 0, 0) }; in llvm_set_metadata()
Dcalc.c96 stack[depth++] = LLVMConstInt(LLVMInt64Type(), val, 1); in build_from_tokens()
Decho.cpp261 return LLVMConstInt(TypeCloner(M).Clone(Cst), in clone_constant_impl()
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITCAPITest.cpp177 LLVMBuildRet(builder, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildSimpleFunction()
203 LLVMConstInt(LLVMInt64Type(), 0, 0), LLVMConstInt(LLVMInt32Type(), 5, 0), in buildFunctionThatUsesStackmap()
204 LLVMConstInt(LLVMInt32Type(), 42, 0) in buildFunctionThatUsesStackmap()
207 LLVMBuildRet(builder, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildFunctionThatUsesStackmap()
222 LLVMSetInitializer(GlobalVar, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildModuleWithCodeAndData()
353 LLVMSetInitializer(GlobalVar, LLVMConstInt(LLVMInt32Type(), 42, 0)); in TEST_F()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader.c314 LLVMConstInt(ctx->i32, 0, 0), in build_gep0()
446 LLVMValueRef c30 = LLVMConstInt(ctx->i32, 30, 0); in declare_input_vs()
462 LLVMConstInt(ctx->i32, 7, 0) : c30, ""); in declare_input_vs()
833 LLVMConstInt(ctx->i32, num_channels, 0), in build_tbuffer_store()
836 LLVMConstInt(ctx->i32, inst_offset, 0), in build_tbuffer_store()
837 LLVMConstInt(ctx->i32, dfmt, 0), in build_tbuffer_store()
838 LLVMConstInt(ctx->i32, nfmt, 0), in build_tbuffer_store()
839 LLVMConstInt(ctx->i32, offen, 0), in build_tbuffer_store()
840 LLVMConstInt(ctx->i32, idxen, 0), in build_tbuffer_store()
841 LLVMConstInt(ctx->i32, glc, 0), in build_tbuffer_store()
[all …]
Dsi_shader_tgsi_setup.c375 swizzles[0] = LLVMConstInt(i32t, swizzle_x, 0); in emit_swizzle()
376 swizzles[1] = LLVMConstInt(i32t, swizzle_y, 0); in emit_swizzle()
377 swizzles[2] = LLVMConstInt(i32t, swizzle_z, 0); in emit_swizzle()
378 swizzles[3] = LLVMConstInt(i32t, swizzle_w, 0); in emit_swizzle()
1251 LLVMConstInt(bld_base->uint_bld.elem_type, imm->u[i].Uint, false ); in emit_immediate()
Dsi_shader_tgsi_alu.c350 …val = LLVMBuildSelect(builder, cmp, val, LLVMConstInt(bld_base->int64_bld.elem_type, -1, true), ""… in emit_ssg()
355 val = LLVMBuildSelect(builder, cmp, val, LLVMConstInt(bld_base->int_bld.elem_type, -1, true), ""); in emit_ssg()
536 LLVMConstInt(LLVMInt1TypeInContext(gallivm->context), 1, 0) in emit_lsb()
563 LLVMConstInt(LLVMInt1TypeInContext(gallivm->context), 1, 0) in emit_umsb()
/external/swiftshader/third_party/LLVM/bindings/ocaml/llvm/
Dllvm_ocaml.c606 return LLVMConstInt(IntTy, (long long) Int_val(N), 1); in llvm_const_int()
612 return LLVMConstInt(IntTy, Int64_val(N), Bool_val(SExt)); in llvm_const_of_int64()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c768 return LLVMConstInt(IntTy, (long long) Long_val(N), 1); in llvm_const_int()
774 return LLVMConstInt(IntTy, Int64_val(N), Bool_val(SExt)); in llvm_const_of_int64()

12