gallium/swr: Fix compilation with LLVM 12
[mesa.git] / src / gallium / drivers / swr / rasterizer / jitter / builder.cpp
index e7ba0040d9da11bfd1fc4c584f5f95cfeefd34d0..cd4b5f31ea303ad45c41cb878dc01e2142581548 100644 (file)
@@ -63,23 +63,23 @@ namespace SwrJit
         mInt64PtrTy = PointerType::get(mInt64Ty, 0);
         mHandleTy   = mInt8PtrTy;
 
-        mSimd4FP64Ty = VectorType::get(mDoubleTy, 4);
+        mSimd4FP64Ty = getVectorType(mDoubleTy, 4);
 
         // Built in types: target simd
         SetTargetWidth(pJitMgr->mVWidth);
 
         // Built in types: simd16
 
-        mSimd16Int1Ty     = VectorType::get(mInt1Ty, mVWidth16);
-        mSimd16Int16Ty    = VectorType::get(mInt16Ty, mVWidth16);
-        mSimd16Int32Ty    = VectorType::get(mInt32Ty, mVWidth16);
-        mSimd16Int64Ty    = VectorType::get(mInt64Ty, mVWidth16);
-        mSimd16FP16Ty     = VectorType::get(mFP16Ty, mVWidth16);
-        mSimd16FP32Ty     = VectorType::get(mFP32Ty, mVWidth16);
+        mSimd16Int1Ty     = getVectorType(mInt1Ty, mVWidth16);
+        mSimd16Int16Ty    = getVectorType(mInt16Ty, mVWidth16);
+        mSimd16Int32Ty    = getVectorType(mInt32Ty, mVWidth16);
+        mSimd16Int64Ty    = getVectorType(mInt64Ty, mVWidth16);
+        mSimd16FP16Ty     = getVectorType(mFP16Ty, mVWidth16);
+        mSimd16FP32Ty     = getVectorType(mFP32Ty, mVWidth16);
         mSimd16VectorTy   = ArrayType::get(mSimd16FP32Ty, 4);
         mSimd16VectorTRTy = ArrayType::get(mSimd16FP32Ty, 5);
 
-        mSimd32Int8Ty = VectorType::get(mInt8Ty, 32);
+        mSimd32Int8Ty = getVectorType(mInt8Ty, 32);
 
         if (sizeof(uint32_t*) == 4)
         {
@@ -101,12 +101,12 @@ namespace SwrJit
     {
         mVWidth = width;
 
-        mSimdInt1Ty      = VectorType::get(mInt1Ty, mVWidth);
-        mSimdInt16Ty     = VectorType::get(mInt16Ty, mVWidth);
-        mSimdInt32Ty     = VectorType::get(mInt32Ty, mVWidth);
-        mSimdInt64Ty     = VectorType::get(mInt64Ty, mVWidth);
-        mSimdFP16Ty      = VectorType::get(mFP16Ty, mVWidth);
-        mSimdFP32Ty      = VectorType::get(mFP32Ty, mVWidth);
+        mSimdInt1Ty      = getVectorType(mInt1Ty, mVWidth);
+        mSimdInt16Ty     = getVectorType(mInt16Ty, mVWidth);
+        mSimdInt32Ty     = getVectorType(mInt32Ty, mVWidth);
+        mSimdInt64Ty     = getVectorType(mInt64Ty, mVWidth);
+        mSimdFP16Ty      = getVectorType(mFP16Ty, mVWidth);
+        mSimdFP32Ty      = getVectorType(mFP32Ty, mVWidth);
         mSimdVectorTy    = ArrayType::get(mSimdFP32Ty, 4);
         mSimdVectorIntTy = ArrayType::get(mSimdInt32Ty, 4);
         mSimdVectorTRTy  = ArrayType::get(mSimdFP32Ty, 5);
@@ -213,7 +213,7 @@ namespace SwrJit
         }
 
         // <ty> should packetize to <8 x <ty>>
-        Type* vecType = VectorType::get(pType, JM()->mVWidth);
+        Type* vecType = getVectorType(pType, JM()->mVWidth);
         return vecType;
     }
 } // namespace SwrJit