Home | History | Annotate | Download | only in gallivm

Lines Matching refs:bld

41 lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
43 LLVMBuilderRef builder = bld->gallivm->builder;
44 const struct lp_type type = bld->type;
52 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, "");
53 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, "");
59 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
67 lp_build_xor(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
69 LLVMBuilderRef builder = bld->gallivm->builder;
70 const struct lp_type type = bld->type;
78 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, "");
79 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, "");
85 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
95 lp_build_and(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
97 LLVMBuilderRef builder = bld->gallivm->builder;
98 const struct lp_type type = bld->type;
106 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, "");
107 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, "");
113 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
124 lp_build_andnot(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
126 LLVMBuilderRef builder = bld->gallivm->builder;
127 const struct lp_type type = bld->type;
135 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, "");
136 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, "");
143 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
151 lp_build_not(struct lp_build_context *bld, LLVMValueRef a)
153 LLVMBuilderRef builder = bld->gallivm->builder;
154 const struct lp_type type = bld->type;
160 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, "");
164 res = LLVMBuildBitCast(builder, res, bld->vec_type, "");
173 lp_build_shl(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
175 LLVMBuilderRef builder = bld->gallivm->builder;
176 const struct lp_type type = bld->type;
194 lp_build_shr(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
196 LLVMBuilderRef builder = bld->gallivm->builder;
197 const struct lp_type type = bld->type;
219 lp_build_shl_imm(struct lp_build_context *bld, LLVMValueRef a, unsigned imm)
221 LLVMValueRef b = lp_build_const_int_vec(bld->gallivm, bld->type, imm);
222 assert(imm <= bld->type.width);
223 return lp_build_shl(bld, a, b);
231 lp_build_shr_imm(struct lp_build_context *bld, LLVMValueRef a, unsigned imm)
233 LLVMValueRef b = lp_build_const_int_vec(bld->gallivm, bld->type, imm);
234 assert(imm <= bld->type.width);
235 return lp_build_shr(bld, a, b);