diff options
author | José Fonseca <[email protected]> | 2010-09-03 10:53:39 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-09-11 13:27:22 +0100 |
commit | 775edbfaa1ab0077fd60e1e5283081279763d0d8 (patch) | |
tree | ee4ec1d48fd36d5f60170d154e70a2af840fedfa /src/gallium/auxiliary/gallivm/lp_bld_struct.h | |
parent | 93158622e26df1227f6eca8d619b5521f4cb1368 (diff) |
gallivm: Add some utility functions to set/get array elements too.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_struct.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_struct.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_struct.h b/src/gallium/auxiliary/gallivm/lp_bld_struct.h index 147336edb4b..f8b6dab4bfb 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_struct.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_struct.h @@ -71,5 +71,29 @@ lp_build_struct_get(LLVMBuilderRef builder, unsigned member, const char *name); +/** + * Get value pointer to an array element. + */ +LLVMValueRef +lp_build_array_get_ptr(LLVMBuilderRef builder, + LLVMValueRef ptr, + LLVMValueRef index); + +/** + * Get the value of an array element. + */ +LLVMValueRef +lp_build_array_get(LLVMBuilderRef builder, + LLVMValueRef ptr, + LLVMValueRef index); + +/** + * Set the value of an array element. + */ +void +lp_build_array_set(LLVMBuilderRef builder, + LLVMValueRef ptr, + LLVMValueRef index, + LLVMValueRef value); #endif /* !LP_BLD_STRUCT_H */ |