summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-07-20 18:45:45 -0600
committerBrian Paul <brianp@vmware.com>2010-07-20 18:50:35 -0600
commitb0636f78aa63aed2a68e86e7770c2a91c80bbb80 (patch)
tree1a5cc24c8339f3b4cae454ecb361a73a10c2a874
parentc4889fa5f046f0f6cb04fe6cc20d789bb0551baf (diff)
gallivm: added lp_build_const_int32() helper
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_const.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_const.h b/src/gallium/auxiliary/gallivm/lp_bld_const.h
index d46b9f882b..7ee8fff140 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_const.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_const.h
@@ -107,4 +107,12 @@ lp_build_const_mask_aos(struct lp_type type,
const boolean cond[4]);
+static INLINE LLVMValueRef
+lp_build_const_int32(int i)
+{
+ return LLVMConstInt(LLVMInt32Type(), i, 0);
+}
+
+
+
#endif /* !LP_BLD_CONST_H */