#define LP_BLD_CONST_H
+#include "pipe/p_compiler.h"
#include "gallivm/lp_bld.h"
-#include <pipe/p_compiler.h>
struct lp_type;
LLVMValueRef
-lp_build_const_scalar(struct lp_type type,
- double val);
+lp_build_const_elem(struct lp_type type,
+ double val);
+
+LLVMValueRef
+lp_build_const_vec(struct lp_type type, double val);
LLVMValueRef
-lp_build_int_const_scalar(struct lp_type type,
- long long val);
+lp_build_const_int_vec(struct lp_type type, long long val);
LLVMValueRef
const boolean cond[4]);
+static INLINE LLVMValueRef
+lp_build_const_int32(int i)
+{
+ return LLVMConstInt(LLVMInt32Type(), i, 0);
+}
+
+
+
#endif /* !LP_BLD_CONST_H */