summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_flow.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-04-27 13:20:12 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-04-27 13:20:51 +0100
commita18c210a95794c79c6f26dbf4c66d4a85e29169d (patch)
treee83ab3b3fc67bc66d6b2e3ec2a9fc2f4dbd537d0 /src/gallium/auxiliary/gallivm/lp_bld_flow.h
parent96df6064b57c2313456988882db1950e08536971 (diff)
gallivm: Ensure all allocas are in the first block.
Refactor the code to make this easier.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_flow.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_flow.h10
1 files changed, 10 insertions, 0 deletions
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 */