@@ -596,14 +596,14 @@ class SparseCallConverter : public OpConversionPattern<func::CallOp> {
596
596
if (failed (typeConverter->convertTypes (op.getResultTypes (), finalRetTy)))
597
597
return failure ();
598
598
599
- // (1) Genereates new call with flattened return value.
599
+ // (1) Generates new call with flattened return value.
600
600
SmallVector<Value> flattened;
601
601
flattenOperands (adaptor.getOperands (), flattened);
602
602
auto newCall = rewriter.create <func::CallOp>(loc, op.getCallee (),
603
603
finalRetTy, flattened);
604
604
// (2) Create cast operation for sparse tensor returns.
605
605
SmallVector<Value> castedRet;
606
- // Tracks the offset of current return value (of the orignal call)
606
+ // Tracks the offset of current return value (of the original call)
607
607
// relative to the new call (after sparse tensor flattening);
608
608
unsigned retOffset = 0 ;
609
609
// Temporal buffer to hold the flattened list of type for
@@ -692,7 +692,7 @@ class SparseCastConverter : public OpConversionPattern<tensor::CastOp> {
692
692
}
693
693
};
694
694
695
- // / Sparse codgen rule for the alloc operator.
695
+ // / Sparse codegen rule for the alloc operator.
696
696
class SparseTensorAllocConverter
697
697
: public OpConversionPattern<bufferization::AllocTensorOp> {
698
698
public:
@@ -1234,7 +1234,7 @@ struct SparsePackOpConverter : public OpConversionPattern<PackOp> {
1234
1234
Value c0 = constantIndex (rewriter, loc, 0 );
1235
1235
Value c1 = constantIndex (rewriter, loc, 1 );
1236
1236
Value c2 = constantIndex (rewriter, loc, 2 );
1237
- Value posBack = c0; // index to the last value in the postion array
1237
+ Value posBack = c0; // index to the last value in the position array
1238
1238
Value memSize = c1; // memory size for current array
1239
1239
1240
1240
Level trailCOOStart = getCOOStart (stt.getEncoding ());
0 commit comments