Lines Matching defs:identity

3084  * which is the identity mapping. Each nibble says which physical sample
3653 * \param identity The value to use the first lane.
3656 * \return src, shifted 1 lane up, and identity shifted into lane 0.
3659 LLVMValueRef identity, unsigned maxprefix)
3666 tmp1 = ac_build_dpp(ctx, identity, src, dpp_row_sr(1), 0xf, 0xf, false);
3692 return ac_build_dpp(ctx, identity, src, dpp_wf_sr1, 0xf, 0xf, false);
3718 return LLVMBuildSelect(ctx->builder, active, identity, tmp1, "");
3726 LLVMValueRef identity, unsigned maxprefix, bool inclusive)
3731 src = ac_wavefront_shift_right_1(ctx, src, identity, maxprefix);
3742 tmp = LLVMBuildSelect(ctx->builder, active, tmp, identity, "");
3748 tmp = LLVMBuildSelect(ctx->builder, active, tmp, identity, "");
3754 tmp = LLVMBuildSelect(ctx->builder, active, tmp, identity, "");
3760 tmp = LLVMBuildSelect(ctx->builder, active, tmp, identity, "");
3766 tmp = LLVMBuildSelect(ctx->builder, active, tmp, identity, "");
3772 tmp = LLVMBuildSelect(ctx->builder, active, tmp, identity, "");
3779 tmp = ac_build_dpp(ctx, identity, src, dpp_row_sr(1), 0xf, 0xf, false);
3783 tmp = ac_build_dpp(ctx, identity, src, dpp_row_sr(2), 0xf, 0xf, false);
3787 tmp = ac_build_dpp(ctx, identity, src, dpp_row_sr(3), 0xf, 0xf, false);
3791 tmp = ac_build_dpp(ctx, identity, result, dpp_row_sr(4), 0xf, 0xe, false);
3795 tmp = ac_build_dpp(ctx, identity, result, dpp_row_sr(8), 0xf, 0xc, false);
3810 tmp = LLVMBuildSelect(ctx->builder, active, tmp, identity, "");
3821 tmp = LLVMBuildSelect(ctx->builder, active, tmp, identity, "");
3827 tmp = ac_build_dpp(ctx, identity, result, dpp_row_bcast15, 0xa, 0xf, false);
3831 tmp = ac_build_dpp(ctx, identity, result, dpp_row_bcast31, 0xc, 0xf, false);
3851 LLVMValueRef identity = get_reduction_identity(ctx, op, ac_get_type_size(LLVMTypeOf(src)));
3852 result = LLVMBuildBitCast(ctx->builder, ac_build_set_inactive(ctx, src, identity),
3853 LLVMTypeOf(identity), "");
3854 result = ac_build_scan(ctx, op, result, identity, ctx->wave_size, true);
3873 LLVMValueRef identity = get_reduction_identity(ctx, op, ac_get_type_size(LLVMTypeOf(src)));
3874 result = LLVMBuildBitCast(ctx->builder, ac_build_set_inactive(ctx, src, identity),
3875 LLVMTypeOf(identity), "");
3876 result = ac_build_scan(ctx, op, result, identity, ctx->wave_size, false);
3888 LLVMValueRef identity = get_reduction_identity(ctx, op, ac_get_type_size(LLVMTypeOf(src)));
3889 result = LLVMBuildBitCast(ctx->builder, ac_build_set_inactive(ctx, src, identity),
3890 LLVMTypeOf(identity), "");
3902 swap = ac_build_dpp(ctx, identity, result, dpp_row_half_mirror, 0xf, 0xf, false);
3910 swap = ac_build_dpp(ctx, identity, result, dpp_row_mirror, 0xf, 0xf, false);
3920 swap = ac_build_dpp(ctx, identity, result, dpp_row_bcast15, 0xa, 0xf, false);
3932 swap = ac_build_dpp(ctx, identity, result, dpp_row_bcast31, 0xc, 0xf, false);
3979 const LLVMValueRef identity = get_reduction_identity(ctx, ws->op, ac_get_type_size(type));
3984 ws->result_exclusive = identity;
4012 phivalues_scan[1] = ac_build_scan(ctx, ws->op, tmp, identity, ws->maxwaves, true);
4028 ws->result_exclusive = LLVMBuildSelect(builder, tmp2, identity, tmp, "");