Lines Matching defs:result

1127  *    does not result in an unsigned integer wraparound. This is used for
1146 LLVMValueRef pointer, result;
1156 result = LLVMBuildLoad(ctx->builder, pointer, "");
1158 LLVMSetMetadata(result, ctx->invariant_load_md_kind, ctx->empty_md);
1159 LLVMSetAlignment(result, 4);
1160 return result;
1311 LLVMValueRef result[8];
1326 result[i] = ac_build_intrinsic(ctx, "llvm.amdgcn.s.buffer.load.f32", ctx->f32, args, 3,
1330 return result[0];
1333 result[num_channels++] = LLVMGetUndef(ctx->f32);
1334 return ac_build_gather_values(ctx, result, num_channels);
1475 mantissa, ctx->i1true, /* result can be undef when arg is 0 */
1489 /* Select the final result. */
1490 LLVMValueRef result;
1494 result = LLVMBuildSelect(ctx->builder, tmp, naninf, normal, "");
1498 result = LLVMBuildSelect(ctx->builder, tmp, result, denormal, "");
1501 result = LLVMBuildSelect(ctx->builder, tmp, result, ctx->i32_0, "");
1503 return ac_to_float(ctx, result);
1804 LLVMValueRef result;
1829 result = LLVMBuildFSub(ctx->builder, trbl, tl, "");
1834 return ac_build_intrinsic(ctx, name, result_type, &result, 1, 0);
2317 LLVMValueRef result = ac_build_intrinsic(ctx, intr_name, retty, args, num_args, a->attributes);
2319 LLVMValueRef texel = LLVMBuildExtractValue(ctx->builder, result, 0, "");
2320 LLVMValueRef code = LLVMBuildExtractValue(ctx->builder, result, 1, "");
2321 result = ac_build_concat(ctx, texel, ac_to_float(ctx, code));
2325 result = ac_to_integer(ctx, result);
2327 return result;
2529 LLVMValueRef result;
2535 result = ac_build_fmin(ctx, ac_build_fmax(ctx, src, zero), one);
2555 result = ac_build_intrinsic(ctx, intr, type, params, 3,
2561 result = ac_build_canonicalize(ctx, result, bitsize);
2564 return result;
2665 LLVMValueRef result;
2672 result = ac_build_intrinsic(ctx, "llvm.ctpop.i128", ctx->i128, (LLVMValueRef[]){src0}, 1,
2674 result = LLVMBuildTrunc(ctx->builder, result, ctx->i32, "");
2677 result = ac_build_intrinsic(ctx, "llvm.ctpop.i64", ctx->i64, (LLVMValueRef[]){src0}, 1,
2680 result = LLVMBuildTrunc(ctx->builder, result, ctx->i32, "");
2683 result = ac_build_intrinsic(ctx, "llvm.ctpop.i32", ctx->i32, (LLVMValueRef[]){src0}, 1,
2687 result = ac_build_intrinsic(ctx, "llvm.ctpop.i16", ctx->i16, (LLVMValueRef[]){src0}, 1,
2690 result = LLVMBuildZExt(ctx->builder, result, ctx->i32, "");
2693 result = ac_build_intrinsic(ctx, "llvm.ctpop.i8", ctx->i8, (LLVMValueRef[]){src0}, 1,
2696 result = LLVMBuildZExt(ctx->builder, result, ctx->i32, "");
2703 return result;
2708 LLVMValueRef result;
2715 result = ac_build_intrinsic(ctx, "llvm.bitreverse.i64", ctx->i64, (LLVMValueRef[]){src0}, 1,
2718 result = LLVMBuildTrunc(ctx->builder, result, ctx->i32, "");
2721 result = ac_build_intrinsic(ctx, "llvm.bitreverse.i32", ctx->i32, (LLVMValueRef[]){src0}, 1,
2725 result = ac_build_intrinsic(ctx, "llvm.bitreverse.i16", ctx->i16, (LLVMValueRef[]){src0}, 1,
2728 result = LLVMBuildZExt(ctx->builder, result, ctx->i32, "");
2731 result = ac_build_intrinsic(ctx, "llvm.bitreverse.i8", ctx->i8, (LLVMValueRef[]){src0}, 1,
2734 result = LLVMBuildZExt(ctx->builder, result, ctx->i32, "");
2741 return result;
3142 LLVMValueRef result;
3151 result =
3156 return LLVMBuildTrunc(ctx->builder, result, type, "");
3335 LLVMValueRef result;
3348 result =
3352 return LLVMBuildTrunc(ctx->builder, result, type, "");
3654 * \param maxprefix specifies that the result only needs to be correct for a
3722 * \param maxprefix specifies that the result only needs to be correct for a
3728 LLVMValueRef result, tmp;
3733 result = src;
3743 result = ac_build_alu_op(ctx, result, tmp, op);
3744 tmp = ac_build_ds_swizzle(ctx, result, ds_pattern_bitmode(0x1c, 0x01, 0x00));
3749 result = ac_build_alu_op(ctx, result, tmp, op);
3750 tmp = ac_build_ds_swizzle(ctx, result, ds_pattern_bitmode(0x18, 0x03, 0x00));
3755 result = ac_build_alu_op(ctx, result, tmp, op);
3756 tmp = ac_build_ds_swizzle(ctx, result, ds_pattern_bitmode(0x10, 0x07, 0x00));
3761 result = ac_build_alu_op(ctx, result, tmp, op);
3762 tmp = ac_build_ds_swizzle(ctx, result, ds_pattern_bitmode(0x00, 0x0f, 0x00));
3767 result = ac_build_alu_op(ctx, result, tmp, op);
3768 tmp = ac_build_readlane(ctx, result, LLVMConstInt(ctx->i32, 31, 0));
3773 result = ac_build_alu_op(ctx, result, tmp, op);
3774 return result;
3778 return result;
3780 result = ac_build_alu_op(ctx, result, tmp, op);
3782 return result;
3784 result = ac_build_alu_op(ctx, result, tmp, op);
3786 return result;
3788 result = ac_build_alu_op(ctx, result, tmp, op);
3790 return result;
3791 tmp = ac_build_dpp(ctx, identity, result, dpp_row_sr(4), 0xf, 0xe, false);
3792 result = ac_build_alu_op(ctx, result, tmp, op);
3794 return result;
3795 tmp = ac_build_dpp(ctx, identity, result, dpp_row_sr(8), 0xf, 0xc, false);
3796 result = ac_build_alu_op(ctx, result, tmp, op);
3798 return result;
3804 tmp = ac_build_permlane16(ctx, result, ~(uint64_t)0, true, false);
3812 result = ac_build_alu_op(ctx, result, tmp, op);
3815 return result;
3817 tmp = ac_build_readlane(ctx, result, LLVMConstInt(ctx->i32, 31, false));
3823 result = ac_build_alu_op(ctx, result, tmp, op);
3824 return result;
3827 tmp = ac_build_dpp(ctx, identity, result, dpp_row_bcast15, 0xa, 0xf, false);
3828 result = ac_build_alu_op(ctx, result, tmp, op);
3830 return result;
3831 tmp = ac_build_dpp(ctx, identity, result, dpp_row_bcast31, 0xc, 0xf, false);
3832 result = ac_build_alu_op(ctx, result, tmp, op);
3833 return result;
3838 LLVMValueRef result;
3843 result = ac_build_ballot(ctx, src);
3844 result = ac_build_mbcnt(ctx, result);
3845 result = LLVMBuildAdd(builder, result, src, "");
3846 return result;
3852 result = LLVMBuildBitCast(ctx->builder, ac_build_set_inactive(ctx, src, identity),
3854 result = ac_build_scan(ctx, op, result, identity, ctx->wave_size, true);
3856 return ac_build_wwm(ctx, result);
3861 LLVMValueRef result;
3866 result = ac_build_ballot(ctx, src);
3867 result = ac_build_mbcnt(ctx, result);
3868 return result;
3874 result = LLVMBuildBitCast(ctx->builder, ac_build_set_inactive(ctx, src, identity),
3876 result = ac_build_scan(ctx, op, result, identity, ctx->wave_size, false);
3878 return ac_build_wwm(ctx, result);
3887 LLVMValueRef result, swap;
3889 result = LLVMBuildBitCast(ctx->builder, ac_build_set_inactive(ctx, src, identity),
3891 swap = ac_build_quad_swizzle(ctx, result, 1, 0, 3, 2);
3892 result = ac_build_alu_op(ctx, result, swap, op);
3894 return ac_build_wwm(ctx, result);
3896 swap = ac_build_quad_swizzle(ctx, result, 2, 3, 0, 1);
3897 result = ac_build_alu_op(ctx, result, swap, op);
3899 return ac_build_wwm(ctx, result);
3902 swap = ac_build_dpp(ctx, identity, result, dpp_row_half_mirror, 0xf, 0xf, false);
3904 swap = ac_build_ds_swizzle(ctx, result, ds_pattern_bitmode(0x1f, 0, 0x04));
3905 result = ac_build_alu_op(ctx, result, swap, op);
3907 return ac_build_wwm(ctx, result);
3910 swap = ac_build_dpp(ctx, identity, result, dpp_row_mirror, 0xf, 0xf, false);
3912 swap = ac_build_ds_swizzle(ctx, result, ds_pattern_bitmode(0x1f, 0, 0x08));
3913 result = ac_build_alu_op(ctx, result, swap, op);
3915 return ac_build_wwm(ctx, result);
3918 swap = ac_build_permlane16(ctx, result, 0, true, false);
3920 swap = ac_build_dpp(ctx, identity, result, dpp_row_bcast15, 0xa, 0xf, false);
3922 swap = ac_build_ds_swizzle(ctx, result, ds_pattern_bitmode(0x1f, 0, 0x10));
3923 result = ac_build_alu_op(ctx, result, swap, op);
3925 return ac_build_wwm(ctx, result);
3930 swap = ac_build_readlane(ctx, result, LLVMConstInt(ctx->i32, 31, false));
3932 swap = ac_build_dpp(ctx, identity, result, dpp_row_bcast31, 0xc, 0xf, false);
3933 result = ac_build_alu_op(ctx, result, swap, op);
3934 result = ac_build_readlane(ctx, result, LLVMConstInt(ctx->i32, 63, 0));
3937 return ac_build_wwm(ctx, result);
3939 swap = ac_build_readlane(ctx, result, ctx->i32_0);
3940 result = ac_build_readlane(ctx, result, LLVMConstInt(ctx->i32, 32, 0));
3941 result = ac_build_alu_op(ctx, result, swap, op);
3942 return ac_build_wwm(ctx, result);
4176 LLVMValueRef result;
4181 result =
4184 return LLVMBuildTrunc(ctx->builder, result, type, "");
4259 LLVMValueRef result[4], a;
4264 result[i] = ac_build_ddxy(ctx, AC_TID_MASK_TOP_LEFT, 1, a);
4265 result[2 + i] = ac_build_ddxy(ctx, AC_TID_MASK_TOP_LEFT, 2, a);
4267 return ac_build_gather_values(ctx, result, 4);
4272 LLVMValueRef result;
4275 result = ac_build_intrinsic(ctx, "llvm.amdgcn.live.mask", ctx->i1, NULL, 0,
4278 result = ac_build_intrinsic(ctx, "llvm.amdgcn.ps.live", ctx->i1, NULL, 0,
4281 return LLVMBuildNot(ctx->builder, result, "");
4438 * result = v_and_b32 shifted, 0x20080200 ; remove garbage
4460 LLVMValueRef result = LLVMBuildShl(builder, tmp, LLVMConstInt(ctx->i32, 31, false), "");
4461 result = LLVMBuildOr(ctx->builder, result, prim->edgeflags, "");
4465 result = LLVMBuildOr(builder, result, tmp, "");
4467 return result;