From 84ba008774967dcbc02d20cdfdeffde7fe1d85c5 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 10 Dec 2019 14:41:55 +1000 Subject: [PATCH] gallivm: add 64-bit const int creator. Acked-by: Roland Scheidegger --- src/gallium/auxiliary/gallivm/lp_bld_const.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_const.h b/src/gallium/auxiliary/gallivm/lp_bld_const.h index a4c3bf0977a..4e8f22073d5 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_const.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_const.h @@ -126,6 +126,11 @@ lp_build_const_int32(struct gallivm_state *gallivm, int i) return LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), i, 0); } +static inline LLVMValueRef +lp_build_const_int64(struct gallivm_state *gallivm, int i) +{ + return LLVMConstInt(LLVMInt64TypeInContext(gallivm->context), i, 0); +} static inline LLVMValueRef lp_build_const_float(struct gallivm_state *gallivm, float x) -- 2.30.2