Home
last modified time | relevance | path

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

12

/external/mesa3d/src/amd/common/
Dac_llvm_build.c87 ctx->i32_0 = LLVMConstInt(ctx->i32, 0, false); in ac_llvm_context_init()
88 ctx->i32_1 = LLVMConstInt(ctx->i32, 1, false); in ac_llvm_context_init()
89 ctx->i64_0 = LLVMConstInt(ctx->i64, 0, false); in ac_llvm_context_init()
90 ctx->i64_1 = LLVMConstInt(ctx->i64, 1, false); in ac_llvm_context_init()
96 ctx->i1false = LLVMConstInt(ctx->i1, 0, false); in ac_llvm_context_init()
97 ctx->i1true = LLVMConstInt(ctx->i1, 1, false); in ac_llvm_context_init()
145 LLVMConstInt(ac->i32, index, false), ""); in ac_llvm_extract_elem()
371 LLVMConstInt(ctx->i32, LLVMIntNE, 0) in ac_build_ballot()
403 LLVMConstInt(ctx->i64, 0, 0), ""); in ac_build_vote_any()
416 LLVMConstInt(ctx->i64, 0, 0), ""); in ac_build_vote_eq()
[all …]
Dac_nir_to_llvm.c393 LLVMConstInt(ctx->i32, rshift, false), ""); in unpack_param()
398 LLVMConstInt(ctx->i32, mask, false), ""); in unpack_param()
460 LLVMConstInt(ctx->ac.i32, 4, false), ""); in get_tcs_out_patch0_offset()
468 LLVMConstInt(ctx->ac.i32, 4, false), ""); in get_tcs_out_patch0_patch_data_offset()
755 LLVMConstInt(ctx->ac.i32, i, false)); in set_global_input_locs()
1173 LLVMConstInt(ctx->i32, 0, false), LLVMConstInt(ctx->i32, 1, false), in trim_vector()
1174 LLVMConstInt(ctx->i32, 2, false), LLVMConstInt(ctx->i32, 3, false)}; in trim_vector()
1196 LLVMValueRef index = LLVMConstInt(ac->i32, i, false); in build_store_values_extended()
1248 LLVMConstInt(ctx->ac.i32, src.swizzle[0], false), in get_alu_src()
1249 LLVMConstInt(ctx->ac.i32, src.swizzle[1], false), in get_alu_src()
[all …]
Dac_shader_util.c146 LLVMConstInt(ctx->i32, 16, 0), ""); in ac_export_mrt_z()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_tgsi_mem.c52 LLVMConstInt(ctx->i32, 2, 0), ""); in get_buffer_size()
63 LLVMConstInt(ctx->i32, 16, 0), ""); in get_buffer_size()
65 LLVMConstInt(ctx->i32, 0x3FFF, 0), ""); in get_buffer_size()
81 index = LLVMConstInt(ctx->i32, reg->Register.Index, false); in shader_buffer_fetch_rsrc()
120 LLVMValueRef i32_6 = LLVMConstInt(ctx->i32, 6, 0); in force_dcc_off()
121 LLVMValueRef i32_C = LLVMConstInt(ctx->i32, C_008F28_COMPRESSION_EN, 0); in force_dcc_off()
139 LLVMConstInt(ctx->i32, 2, 0), ""); in si_load_image_desc()
175 index = LLVMConstInt(ctx->i32, in image_fetch_rsrc()
194 LLVMConstInt(ctx->i32, SI_NUM_IMAGES - 1, 0), in image_fetch_rsrc()
211 LLVMConstInt(ctx->i32, 2, 0), ""); in image_fetch_rsrc()
[all …]
Dsi_shader.c253 LLVMConstInt(ctx->i32, rshift, 0), ""); in unpack_llvm_param()
258 LLVMConstInt(ctx->i32, mask, 0), ""); in unpack_llvm_param()
330 return LLVMConstInt(ctx->i32, stride, 0); in get_tcs_out_vertex_dw_stride()
344 return LLVMConstInt(ctx->i32, patch_dw_stride, 0); in get_tcs_out_patch_stride()
411 return LLVMConstInt(ctx->i32, tcs_out_vertices, 0); in get_num_tcs_out_vertices()
423 return LLVMConstInt(ctx->i32, stride * 4, 0); in get_tcs_in_vertex_dw_stride()
429 return LLVMConstInt(ctx->i32, stride * 4, 0); in get_tcs_in_vertex_dw_stride()
463 LLVMValueRef index = LLVMConstInt(ctx->i32, double_index, 0); in extract_double_to_float()
475 LLVMConstInt(ctx->i32, 16, 0), ""); in unpack_sint16()
573 t_offset = LLVMConstInt(ctx->i32, input_index, 0); in si_llvm_load_input_vs()
[all …]
Dsi_shader_tgsi_setup.c200 LLVMValueRef c_max = LLVMConstInt(ctx->i32, num - 1, 0); in si_llvm_bound_index()
229 swizzles[0] = LLVMConstInt(ctx->i32, swizzle_x, 0); in emit_swizzle()
230 swizzles[1] = LLVMConstInt(ctx->i32, swizzle_y, 0); in emit_swizzle()
231 swizzles[2] = LLVMConstInt(ctx->i32, swizzle_z, 0); in emit_swizzle()
232 swizzles[3] = LLVMConstInt(ctx->i32, swizzle_w, 0); in emit_swizzle()
341 LLVMConstInt(ctx->i32, util_bitcount(array->writemask), 0), in get_pointer_into_array()
345 LLVMConstInt(ctx->i32, in get_pointer_into_array()
393 LLVMConstInt(ctx->i32, i, 0), "array_vector"); in emit_array_fetch()
475 LLVMConstInt(ctx->i32, i, 0), ""); in store_value_to_array()
618 builder, cval, LLVMConstInt(ctx->i32, swizzle, 0), ""); in fetch_system_value()
[all …]
Dsi_shader_tgsi_alu.c68 visible = LLVMConstInt(ctx->i1, false, 0); in kil_emit()
359 val = LLVMBuildSelect(builder, cmp, val, LLVMConstInt(ctx->i64, -1, true), ""); in emit_ssg()
364 val = LLVMBuildSelect(builder, cmp, val, LLVMConstInt(ctx->i32, -1, true), ""); in emit_ssg()
508 LLVMConstInt(ctx->i32, 32, 0), ""); in emit_bfi()
527 LLVMConstInt(ctx->i32, 32, 0), ""); in emit_bfe()
653 const16 = LLVMConstInt(ctx->i32, 16, 0); in emit_up2h()
Dsi_shader_nir.c615 LLVMConstInt(ctx->ac.i32, base_index + constant_index, false), in si_nir_load_sampler_desc()
626 LLVMConstInt(ctx->i32, SI_NUM_IMAGES - 1, 0), in si_nir_load_sampler_desc()
639 LLVMConstInt(ctx->i32, SI_NUM_IMAGES / 2, 0), ""); in si_nir_load_sampler_desc()
/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()
322 LLVMValueRef scale = LLVMConstInt(i32_type, src_width/8, 0); in lp_build_gather_avx2()
332 LLVMValueRef alignment = LLVMConstInt(i32_type, src_width/8, 0); in lp_build_gather_avx2()
373 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()
/external/skqp/src/sksl/
DSkSLJIT.cpp410 LLVMConstInt(fJIT.fInt32Type, in getLValue()
415 LLVMConstInt(fJIT.fInt32Type, i, false), in getLValue()
422 LLVMConstInt(fJIT.fInt32Type, in getLValue()
433 LLVMConstInt( in getLValue()
439 LLVMConstInt(fJIT.fInt32Type, in getLValue()
446 LLVMConstInt(fJIT.fInt32Type, in getLValue()
490 LLVMConstInt(fInt32Type, i, false), in vectorize()
705 LLVMValueRef incomingValues[2] = { right, LLVMConstInt(fInt1Type, 0, false) }; in compileBinary()
723 LLVMValueRef incomingValues[2] = { right, LLVMConstInt(fInt1Type, 1, false) }; in compileBinary()
745 LLVMValueRef one = LLVMConstInt(this->getType(p.fType), 1, false); in compilePostfix()
[all …]
/external/skia/src/sksl/
DSkSLJIT.cpp410 LLVMConstInt(fJIT.fInt32Type, in getLValue()
415 LLVMConstInt(fJIT.fInt32Type, i, false), in getLValue()
422 LLVMConstInt(fJIT.fInt32Type, in getLValue()
433 LLVMConstInt( in getLValue()
439 LLVMConstInt(fJIT.fInt32Type, in getLValue()
446 LLVMConstInt(fJIT.fInt32Type, in getLValue()
490 LLVMConstInt(fInt32Type, i, false), in vectorize()
705 LLVMValueRef incomingValues[2] = { right, LLVMConstInt(fInt1Type, 0, false) }; in compileBinary()
723 LLVMValueRef incomingValues[2] = { right, LLVMConstInt(fInt1Type, 1, false) }; in compileBinary()
745 LLVMValueRef one = LLVMConstInt(this->getType(p.fType), 1, false); in compilePostfix()
[all …]
/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()
/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/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITCAPITest.cpp178 LLVMBuildRet(builder, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildSimpleFunction()
204 LLVMConstInt(LLVMInt64Type(), 0, 0), LLVMConstInt(LLVMInt32Type(), 5, 0), in buildFunctionThatUsesStackmap()
205 LLVMConstInt(LLVMInt32Type(), 42, 0) in buildFunctionThatUsesStackmap()
208 LLVMBuildRet(builder, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildFunctionThatUsesStackmap()
223 LLVMSetInitializer(GlobalVar, LLVMConstInt(LLVMInt32Type(), 42, 0)); in buildModuleWithCodeAndData()
354 LLVMSetInitializer(GlobalVar, LLVMConstInt(LLVMInt32Type(), 42, 0)); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-c-test/
Ddebuginfo.c140 LLVMDIBuilderInsertDeclareAtEnd(DIB, LLVMConstInt(LLVMInt64Type(), 0, false), in llvm_test_dibuilder()
146 LLVMDIBuilderInsertDeclareAtEnd(DIB, LLVMConstInt(LLVMInt64Type(), 0, false), in llvm_test_dibuilder()
152 LLVMDIBuilderInsertDeclareAtEnd(DIB, LLVMConstInt(LLVMInt64Type(), 0, false), in llvm_test_dibuilder()
168 LLVMValueRef FooVal1 = LLVMConstInt(LLVMInt64Type(), 0, false); in llvm_test_dibuilder()
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()
/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()

12