File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
mlir/lib/Conversion/XeGPUToXeVM Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,6 @@ static int32_t getNumericXeVMAddrSpace(xegpu::MemorySpace xeGpuMemspace) {
5656 llvm_unreachable (" Unknown XeGPU memory space." );
5757}
5858
59- template <typename T>
60- std::tuple<bool , int32_t , int32_t > checkAllLinear (SmallVector<T> denseAttr) {
61- assert (!denseAttr.empty ());
62- const int32_t intercept{static_cast <int32_t >(denseAttr[0 ])};
63- if (denseAttr.size () < 2 )
64- return {true , 0 , intercept};
65- const T slope{denseAttr[1 ] - denseAttr[0 ]};
66- for (size_t i = 1 ; i < denseAttr.size (); ++i)
67- if (denseAttr[i] - denseAttr[i - 1 ] != slope)
68- return {false , 0 , 0 };
69- return {true , static_cast <int32_t >(slope), intercept};
70- }
71-
7259VectorType encodeVectorTypeTo (VectorType currentVecType, Type toElemType) {
7360 auto elemType = currentVecType.getElementType ();
7461 auto currentBitWidth = elemType.getIntOrFloatBitWidth ();
You can’t perform that action at this time.
0 commit comments