From 70b8d59792a814a5a81b86d57016314754d91593 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 8 Jan 2010 11:01:00 -0700 Subject: llvmpipe: checkpoint if/else/endif contructs work The LLVM IR looks correct now. Basic blocks are where they're supposed to be and the Phi functions have the right (var,block) information. --- src/gallium/drivers/llvmpipe/lp_bld_flow.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gallium/drivers/llvmpipe/lp_bld_flow.h') diff --git a/src/gallium/drivers/llvmpipe/lp_bld_flow.h b/src/gallium/drivers/llvmpipe/lp_bld_flow.h index 1f294b8a49..7c7cc402a3 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_flow.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_flow.h @@ -132,7 +132,7 @@ struct lp_build_if_state LLVMBuilderRef builder; struct lp_build_flow_context *flow; LLVMValueRef condition; - LLVMBasicBlockRef entry_block, true_block, false_block; + LLVMBasicBlockRef entry_block, true_block, false_block, merge_block; }; @@ -142,9 +142,6 @@ lp_build_if(struct lp_build_if_state *ctx, LLVMBuilderRef builder, LLVMValueRef condition); -void -lp_build_if_phi_var(struct lp_build_if_state *ctx, LLVMValueRef var); - void lp_build_else(struct lp_build_if_state *ctx); -- cgit v1.2.3