gallivm: add 64-bit const int creator.
authorDave Airlie <airlied@redhat.com>
Tue, 10 Dec 2019 04:41:55 +0000 (14:41 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 27 Dec 2019 03:22:35 +0000 (13:22 +1000)
Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_const.h

index a4c3bf0977ab7bca4107927401ab1474690a39fa..4e8f22073d5508bfba37717e053e4dcb13a0b895 100644 (file)
@@ -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)