gallivm: added lp_sizeof_llvm_type()
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_logic.c
index a3b697011626daba23662bd98a41f695d6ce3c17..d13fa1a5d043b4f5cf9c9f8e23a477647fe534bd 100644 (file)
@@ -472,18 +472,6 @@ lp_build_select_aos(struct lp_build_context *bld,
    }
 }
 
-LLVMValueRef
-lp_build_alloca(struct lp_build_context *bld)
-{
-   const struct lp_type type = bld->type;
-
-   if (type.length > 1) { /*vector*/
-      return LLVMBuildAlloca(bld->builder, lp_build_vec_type(type), "");
-   } else { /*scalar*/
-      return LLVMBuildAlloca(bld->builder, lp_build_elem_type(type), "");
-   }
-}
-
 
 /** Return (a & ~b) */
 LLVMValueRef