Lines Matching refs:val
1798 LLVMValueRef ac_build_ddxy(struct ac_llvm_context *ctx, uint32_t mask, int idx, LLVMValueRef val)
1806 result_type = ac_to_float_type(ctx, LLVMTypeOf(val));
1809 val = LLVMBuildZExt(ctx->builder, val, ctx->i32, "");
1811 val = LLVMBuildBitCast(ctx->builder, val, ctx->i32, "");
1818 tl = ac_build_quad_swizzle(ctx, val, tl_lanes[0], tl_lanes[1], tl_lanes[2], tl_lanes[3]);
1820 ac_build_quad_swizzle(ctx, val, trbl_lanes[0], trbl_lanes[1], trbl_lanes[2], trbl_lanes[3]);
2607 LLVMValueRef val;
2610 val = ac_build_imax(ctx, src0, ac_const_uint_vec(ctx, type, -1));
2611 return ac_build_imin(ctx, val, ac_const_uint_vec(ctx, type, 1));
2614 static LLVMValueRef ac_eliminate_negative_zero(struct ac_llvm_context *ctx, LLVMValueRef val)
2617 /* (val + 0) converts negative zero to positive zero. */
2618 val = LLVMBuildFAdd(ctx->builder, val, LLVMConstNull(LLVMTypeOf(val)), "");
2620 return val;
2626 LLVMValueRef pos, neg, dw[2], val;
2647 val = ac_to_integer(ctx, ac_eliminate_negative_zero(ctx, src));
2648 val = ac_build_isign(ctx, val);
2649 return LLVMBuildSIToFP(ctx->builder, val, type, "");
3031 LLVMValueRef ac_build_alloca_init(struct ac_llvm_context *ac, LLVMValueRef val, const char *name)
3033 LLVMValueRef ptr = ac_build_alloca_undef(ac, LLVMTypeOf(val), name);
3034 LLVMBuildStore(ac->builder, val, ptr);
3223 LLVMValueRef val;
3226 val = ac_build_intrinsic(ctx, "llvm.amdgcn.mbcnt.lo", ctx->i32,
3232 val = ac_build_intrinsic(ctx, "llvm.amdgcn.mbcnt.lo", ctx->i32,
3234 val = ac_build_intrinsic(ctx, "llvm.amdgcn.mbcnt.hi", ctx->i32, (LLVMValueRef[]){mask_hi, val},
3242 return LLVMBuildAdd(ctx->builder, val, add_src, "");
3245 return val;
4330 args->out[1] = LLVMGetUndef(ctx->f32); /* G, stencil test val[0:7], stencil op val[8:15] */