Debian Codegraph @

src/gallium/auxiliary/gallivm/lp_bld_gather.h

raw symbols SCIP
1 /**************************************************************************
2 *
3 * Copyright 2010 VMware, Inc.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
18 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 * USE OR OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * The above copyright notice and this permission notice (including the
23 * next paragraph) shall be included in all copies or substantial portions
24 * of the Software.
25 *
26 **************************************************************************/
27
28
29 #ifndef LP_BLD_GATHER_H_
30 #define LP_BLD_GATHER_H_
31
32
33 #include "gallivm/lp_bld_type.h"
34
35 struct gallivm_state;
36
37 LLVMValueRef
38 lp_build_gather_elem_ptr(struct gallivm_state *gallivm,
39 unsigned length,
40 LLVMValueRef base_ptr,
41 LLVMValueRef offsets,
42 unsigned i);
43
44 LLVMValueRef
45 lp_build_gather_elem(struct gallivm_state *gallivm,
46 unsigned length,
47 unsigned src_width,
48 unsigned dst_width,
49 bool aligned,
50 LLVMValueRef base_ptr,
51 LLVMValueRef offsets,
52 unsigned i,
53 bool vector_justify);
54
55 LLVMValueRef
56 lp_build_gather(struct gallivm_state *gallivm,
57 unsigned length,
58 unsigned src_width,
59 struct lp_type dst_type,
60 bool aligned,
61 LLVMValueRef base_ptr,
62 LLVMValueRef offsets,
63 bool vector_justify);
64
65 LLVMValueRef
66 lp_build_gather_values(struct gallivm_state * gallivm,
67 LLVMValueRef * values,
68 unsigned value_count);
69
70 LLVMValueRef
71 lp_build_gather_array(struct gallivm_state * gallivm,
72 LLVMValueRef * values,
73 unsigned value_count);
74
75 LLVMValueRef
76 lp_build_masked_gather(struct gallivm_state *gallivm,
77 unsigned length,
78 unsigned bit_size,
79 LLVMTypeRef vec_type,
80 LLVMValueRef offset_ptr,
81 LLVMValueRef exec_mask);
82
83 void
84 lp_build_masked_scatter(struct gallivm_state *gallivm,
85 unsigned length,
86 unsigned bit_size,
87 LLVMValueRef offset_ptr,
88 LLVMValueRef value_vec,
89 LLVMValueRef exec_mask);
90
91 #endif /* LP_BLD_GATHER_H_ */