| 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 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
#ifndef LP_BLD_LOGIC_H |
| 37 |
#define LP_BLD_LOGIC_H |
| 38 |
|
| 39 |
#ifdef __cplusplus |
| 40 |
extern "C" { |
| 41 |
#endif |
| 42 |
|
| 43 |
#include <llvm-c/Core.h> |
| 44 |
|
| 45 |
#include "pipe/p_defines.h" |
| 46 |
|
| 47 |
|
| 48 |
struct lp_type; |
| 49 |
struct gallivm_state; |
| 50 |
struct lp_build_context; |
| 51 |
|
| 52 |
|
| 53 |
LLVMValueRef |
| 54 |
lp_build_compare(struct gallivm_state *gallivm, |
| 55 |
const struct lp_type type, |
| 56 |
enum pipe_compare_func func, |
| 57 |
LLVMValueRef a, |
| 58 |
LLVMValueRef b); |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
LLVMValueRef |
| 65 |
lp_build_cmp(struct lp_build_context *bld, |
| 66 |
enum pipe_compare_func func, |
| 67 |
LLVMValueRef a, |
| 68 |
LLVMValueRef b); |
| 69 |
|
| 70 |
LLVMValueRef |
| 71 |
lp_build_cmp_ordered(struct lp_build_context *bld, |
| 72 |
enum pipe_compare_func func, |
| 73 |
LLVMValueRef a, |
| 74 |
LLVMValueRef b); |
| 75 |
|
| 76 |
LLVMValueRef |
| 77 |
lp_build_select_bitwise(struct lp_build_context *bld, |
| 78 |
LLVMValueRef mask, |
| 79 |
LLVMValueRef a, |
| 80 |
LLVMValueRef b); |
| 81 |
|
| 82 |
LLVMValueRef |
| 83 |
lp_build_select(struct lp_build_context *bld, |
| 84 |
LLVMValueRef mask, |
| 85 |
LLVMValueRef a, |
| 86 |
LLVMValueRef b); |
| 87 |
|
| 88 |
LLVMValueRef |
| 89 |
lp_build_select_aos(struct lp_build_context *bld, |
| 90 |
unsigned mask, |
| 91 |
LLVMValueRef a, |
| 92 |
LLVMValueRef b, |
| 93 |
unsigned num_channels); |
| 94 |
|
| 95 |
|
| 96 |
LLVMValueRef |
| 97 |
lp_build_any_true_range(struct lp_build_context *bld, |
| 98 |
unsigned real_length, |
| 99 |
LLVMValueRef val); |
| 100 |
|
| 101 |
LLVMValueRef |
| 102 |
lp_build_any_true_range_n(struct lp_build_context *bld, |
| 103 |
unsigned real_length, |
| 104 |
unsigned num_channels, |
| 105 |
LLVMValueRef val); |
| 106 |
|
| 107 |
#ifdef __cplusplus |
| 108 |
} |
| 109 |
#endif |
| 110 |
|
| 111 |
#endif |