From a18c210a95794c79c6f26dbf4c66d4a85e29169d Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 27 Apr 2010 13:20:12 +0100 Subject: gallivm: Ensure all allocas are in the first block. Refactor the code to make this easier. --- src/gallium/auxiliary/gallivm/lp_bld_flow.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gallium/auxiliary/gallivm/lp_bld_flow.h') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.h b/src/gallium/auxiliary/gallivm/lp_bld_flow.h index 745838570c..fffb493a93 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_flow.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_flow.h @@ -156,5 +156,15 @@ lp_build_endif(struct lp_build_if_state *ctx); LLVMBasicBlockRef lp_build_insert_new_block(LLVMBuilderRef builder, const char *name); +LLVMValueRef +lp_build_alloca(LLVMBuilderRef builder, + LLVMTypeRef type, + const char *name); + +LLVMValueRef +lp_build_array_alloca(LLVMBuilderRef builder, + LLVMTypeRef type, + LLVMValueRef count, + const char *name); #endif /* !LP_BLD_FLOW_H */ -- cgit v1.2.3