gallivm: added lp_build_const_int32() helper
authorBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 00:45:45 +0000 (18:45 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 00:50:35 +0000 (18:50 -0600)
src/gallium/auxiliary/gallivm/lp_bld_const.h

index d46b9f882b0fa38ba8bc44aaa988337b7269a306..7ee8fff1407db33472416a78f203558a046bd39c 100644 (file)
@@ -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 */