swr/rast: Add constant initializer for uint64_t
authorGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 27 Apr 2018 00:29:40 +0000 (19:29 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 11 May 2018 16:22:17 +0000 (11:22 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp
src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h

index 619a67beba8a8a44c3b90de2c985b202ed05ac1e..231fa94d00c5036c062d967dedd9e7b7b5b8baff 100644 (file)
@@ -182,6 +182,11 @@ namespace SwrJit
         return ConstantInt::get(IRB()->getInt32Ty(), i);
     }
 
+    Constant *Builder::C(uint64_t i)
+    {
+        return ConstantInt::get(IRB()->getInt64Ty(), i);
+    }
+
     Constant *Builder::C(float i)
     {
         return ConstantFP::get(IRB()->getFloatTy(), i);
index a51aad05a06bde52acd449c29bcc8cd1f547e840..d7732ef8c2ae6311850853ca5ba56d984f5959e3 100644 (file)
@@ -34,6 +34,7 @@ Constant *C(char i);
 Constant *C(uint8_t i);
 Constant *C(int i);
 Constant *C(int64_t i);
+Constant *C(uint64_t i);
 Constant *C(uint16_t i);
 Constant *C(uint32_t i);
 Constant *C(float i);