Skip to content

Commit 8915f1e

Browse files
committed
Formatting and documentation
1 parent c80e380 commit 8915f1e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

mlir/include/mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ Value getVulkanElementPtr(const SPIRVTypeConverter &typeConverter,
189189
MemRefType baseType, Value basePtr,
190190
ValueRange indices, Location loc, OpBuilder &builder);
191191

192+
// Find the largest factor of size among {2,3,4} for the lowest dimension of
193+
// the target shape.
192194
int getComputeVectorSize(int64_t size);
193195

194196
// GetNativeVectorShape implementation for reduction ops.

mlir/lib/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ struct ConvertToSPIRVPass final
5959
}
6060

6161
if (runVectorUnrolling) {
62-
6362
// Fold transpose ops if possible as we cannot unroll it later.
6463
{
6564
RewritePatternSet patterns(context);

mlir/test/Conversion/ConvertToSPIRV/vector-unroll.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ func.func @transpose(%arg0 : vector<2x3xi32>) -> (vector<3x2xi32>) {
9999
// CHECK: return %[[INSERT1]], %[[INSERT3]], %[[INSERT5]] : vector<2xi32>, vector<2xi32>, vector<2xi32>
100100
%0 = vector.transpose %arg0, [1, 0] : vector<2x3xi32> to vector<3x2xi32>
101101
return %0 : vector<3x2xi32>
102-
}
102+
}

0 commit comments

Comments
 (0)