diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-09-03 11:53:48 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-09-11 13:27:38 +0100 |
commit | c0d41d0404285df4f3a8728ddc3b451e54011c7a (patch) | |
tree | beb630ced1fd13b3a816ed5704ede4460f17bf20 /src/gallium/auxiliary/gallivm/lp_bld_struct.h | |
parent | 225530f1f222152754521eb4708d6352cd179656 (diff) |
gallivm: Helper functions for pointer indirection.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_struct.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_struct.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_struct.h b/src/gallium/auxiliary/gallivm/lp_bld_struct.h index f8b6dab4bf..eb87a8eee9 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_struct.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_struct.h @@ -96,4 +96,21 @@ lp_build_array_set(LLVMBuilderRef builder, LLVMValueRef index, LLVMValueRef value); +/** + * Get the value of an array element. + */ +LLVMValueRef +lp_build_pointer_get(LLVMBuilderRef builder, + LLVMValueRef ptr, + LLVMValueRef index); + +/** + * Set the value of an array element. + */ +void +lp_build_pointer_set(LLVMBuilderRef builder, + LLVMValueRef ptr, + LLVMValueRef index, + LLVMValueRef value); + #endif /* !LP_BLD_STRUCT_H */ |