diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-09-07 14:25:02 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-09-07 15:02:07 +0100 |
commit | b1eff018c7a07502c673032ef6426f49364146be (patch) | |
tree | de6000c6a790d5405eca89df828a02af7c99f7af /src/gallium/drivers/llvmpipe/lp_bld_struct.h | |
parent | 866fbacf2bf93282f622f1f455250491d0b3b63f (diff) |
llvmpipe: Utility function to get the pointer to a structure member.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_struct.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_struct.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_struct.h b/src/gallium/drivers/llvmpipe/lp_bld_struct.h index cbefdc9f81..740392f561 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_struct.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_struct.h @@ -53,6 +53,18 @@ offsetof(_ctype, _cmember)) +/** + * Get value pointer to a structure member. + */ +LLVMValueRef +lp_build_struct_get_ptr(LLVMBuilderRef builder, + LLVMValueRef ptr, + unsigned member, + const char *name); + +/** + * Get the value of a structure member. + */ LLVMValueRef lp_build_struct_get(LLVMBuilderRef builder, LLVMValueRef ptr, |