const struct lp_build_sampler_aos *sampler;
};
+
bool
lp_build_nir_llvm(struct lp_build_nir_context *bld_base,
struct nir_shader *nir);
-void lp_build_opt_nir(struct nir_shader *nir);
+void
+lp_build_opt_nir(struct nir_shader *nir);
+
static inline LLVMValueRef
lp_nir_array_build_gather_values(LLVMBuilderRef builder,
{
LLVMTypeRef arr_type = LLVMArrayType(LLVMTypeOf(values[0]), value_count);
LLVMValueRef arr = LLVMGetUndef(arr_type);
- unsigned i;
- for (i = 0; i < value_count; i++) {
+ for (unsigned i = 0; i < value_count; i++) {
arr = LLVMBuildInsertValue(builder, arr, values[i], i, "");
}
return arr;
}
-static inline struct lp_build_context *get_flt_bld(struct lp_build_nir_context *bld_base,
- unsigned op_bit_size)
+
+static inline struct lp_build_context *
+get_flt_bld(struct lp_build_nir_context *bld_base,
+ unsigned op_bit_size)
{
switch (op_bit_size) {
case 64:
}
}
-static inline struct lp_build_context *get_int_bld(struct lp_build_nir_context *bld_base,
- bool is_unsigned,
- unsigned op_bit_size)
+
+static inline struct lp_build_context *
+get_int_bld(struct lp_build_nir_context *bld_base,
+ bool is_unsigned,
+ unsigned op_bit_size)
{
if (is_unsigned) {
switch (op_bit_size) {
}
}
+
static inline struct lp_build_nir_aos_context *
lp_nir_aos_context(struct lp_build_nir_context *bld_base)
{
- return (struct lp_build_nir_aos_context *)bld_base;
+ return (struct lp_build_nir_aos_context *) bld_base;
}
-LLVMValueRef lp_nir_aos_conv_const(struct gallivm_state *gallivm, LLVMValueRef constval, int nc);
+
+LLVMValueRef
+lp_nir_aos_conv_const(struct gallivm_state *gallivm,
+ LLVMValueRef constval, int nc);
+
#endif