| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 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 |