From: Brian Paul Date: Wed, 21 Jul 2010 00:45:45 +0000 (-0600) Subject: gallivm: added lp_build_const_int32() helper X-Git-Tag: mesa-7.9-rc1~1820 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0636f78aa63aed2a68e86e7770c2a91c80bbb80;p=platform%2Fupstream%2Fmesa.git gallivm: added lp_build_const_int32() helper --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_const.h b/src/gallium/auxiliary/gallivm/lp_bld_const.h index d46b9f8..7ee8fff 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 */