Lines Matching full:gallivm
30 #include "gallivm/lp_bld_tgsi_action.h"
31 #include "gallivm/lp_bld_const.h"
32 #include "gallivm/lp_bld_gather.h"
33 #include "gallivm/lp_bld_intr.h"
34 #include "gallivm/lp_bld_tgsi.h"
123 struct gallivm_state * gallivm,
128 gallivm->builder, base_ptr, &offset, 1, "");
130 return LLVMBuildLoad(gallivm->builder, computed_ptr, "");
148 struct gallivm_state * gallivm,
156 sgpr_index = lp_build_const_int32(gallivm, sgpr);
161 ret_type = LLVMFloatTypeInContext(gallivm->context);
166 ret_type = LLVMInt32TypeInContext(gallivm->context);
171 ret_type= LLVMInt64TypeInContext(gallivm->context);
176 ret_type = LLVMInt32TypeInContext(gallivm->context);
183 ret_type = LLVMInt32TypeInContext(gallivm->context);
194 ptr = LLVMBuildIntToPtr(gallivm->builder, sgpr_index, ret_type, "");
195 return LLVMBuildLoad(gallivm->builder, ptr, "");
221 t_list_ptr = use_sgpr(base->gallivm, SGPR_CONST_PTR_V4I32, 6);
223 t_offset = lp_build_const_int32(base->gallivm, input_index);
225 t_list = build_indexed_load(base->gallivm, t_list_ptr, t_offset);
228 attribute_offset = lp_build_const_int32(base->gallivm, 0);
232 buffer_index_reg = build_intrinsic(base->gallivm->builder,
240 input = lp_build_intrinsic(base->gallivm->builder,
245 LLVMValueRef llvm_chan = lp_build_const_int32(base->gallivm, chan);
249 LLVMBuildExtractElement(base->gallivm->builder,
263 struct gallivm_state * gallivm = base->gallivm;
275 LLVMValueRef params = use_sgpr(base->gallivm, SGPR_I32, 6);
279 LLVMValueRef attr_number = lp_build_const_int32(gallivm, input_index);
325 LLVMValueRef llvm_chan = lp_build_const_int32(gallivm, chan);
327 LLVMTypeRef input_type = LLVMFloatTypeInContext(gallivm->context);
332 build_intrinsic(base->gallivm->builder, intr_name,
367 const_ptr = use_sgpr(base->gallivm, SGPR_CONST_PTR_F32, 0);
372 offset = lp_build_const_int32(base->gallivm,
375 load = build_indexed_load(base->gallivm, const_ptr, offset);
407 args[0] = LLVMBuildLoad(base->gallivm->builder,
409 args[1] = LLVMBuildLoad(base->gallivm->builder,
412 build_intrinsic(base->gallivm->builder,
414 LLVMInt32TypeInContext(base->gallivm->context),
428 args[chan + 5] = LLVMBuildLoad(base->gallivm->builder,
441 args[0] = lp_build_const_int32(base->gallivm, 0xf);
450 args[3] = lp_build_const_int32(base->gallivm, target);
536 lp_build_intrinsic(base->gallivm->builder,
538 LLVMVoidTypeInContext(base->gallivm->context),
544 lp_build_intrinsic(base->gallivm->builder,
546 LLVMVoidTypeInContext(base->gallivm->context),
557 last_args[0] = lp_build_const_int32(base->gallivm, 0x0);
560 last_args[3] = lp_build_const_int32(base->gallivm, V_008DFC_SQ_EXP_MRT);
573 last_args[1] = lp_build_const_int32(base->gallivm,
577 last_args[2] = lp_build_const_int32(base->gallivm, 1);
579 lp_build_intrinsic(base->gallivm->builder,
581 LLVMVoidTypeInContext(base->gallivm->context),
598 emit_data->args[0] = lp_build_const_int32(bld_base->base.gallivm, 0xf);
618 emit_data->args[1] = lp_build_gather_values(bld_base->base.gallivm,
625 ptr = use_sgpr(bld_base->base.gallivm, SGPR_CONST_PTR_V8I32, 4);
626 offset = lp_build_const_int32(bld_base->base.gallivm,
628 emit_data->args[2] = build_indexed_load(bld_base->base.gallivm,
632 ptr = use_sgpr(bld_base->base.gallivm, SGPR_CONST_PTR_V4I32, 2);
633 offset = lp_build_const_int32(bld_base->base.gallivm,
635 emit_data->args[3] = build_indexed_load(bld_base->base.gallivm,
640 /* emit_data->args[4] = lp_build_const_int32(bld_base->base.gallivm,
648 LLVMFloatTypeInContext(bld_base->base.gallivm->context),
711 mod = bld_base->base.gallivm->module;