[mlir][sparse] Fix typos in comments
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D158667
This commit is contained in:
@@ -596,14 +596,14 @@ public:
|
||||
if (failed(typeConverter->convertTypes(op.getResultTypes(), finalRetTy)))
|
||||
return failure();
|
||||
|
||||
// (1) Genereates new call with flattened return value.
|
||||
// (1) Generates new call with flattened return value.
|
||||
SmallVector<Value> flattened;
|
||||
flattenOperands(adaptor.getOperands(), flattened);
|
||||
auto newCall = rewriter.create<func::CallOp>(loc, op.getCallee(),
|
||||
finalRetTy, flattened);
|
||||
// (2) Create cast operation for sparse tensor returns.
|
||||
SmallVector<Value> castedRet;
|
||||
// Tracks the offset of current return value (of the orignal call)
|
||||
// Tracks the offset of current return value (of the original call)
|
||||
// relative to the new call (after sparse tensor flattening);
|
||||
unsigned retOffset = 0;
|
||||
// Temporal buffer to hold the flattened list of type for
|
||||
@@ -692,7 +692,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/// Sparse codgen rule for the alloc operator.
|
||||
/// Sparse codegen rule for the alloc operator.
|
||||
class SparseTensorAllocConverter
|
||||
: public OpConversionPattern<bufferization::AllocTensorOp> {
|
||||
public:
|
||||
@@ -1234,7 +1234,7 @@ struct SparsePackOpConverter : public OpConversionPattern<PackOp> {
|
||||
Value c0 = constantIndex(rewriter, loc, 0);
|
||||
Value c1 = constantIndex(rewriter, loc, 1);
|
||||
Value c2 = constantIndex(rewriter, loc, 2);
|
||||
Value posBack = c0; // index to the last value in the postion array
|
||||
Value posBack = c0; // index to the last value in the position array
|
||||
Value memSize = c1; // memory size for current array
|
||||
|
||||
Level trailCOOStart = getCOOStart(stt.getEncoding());
|
||||
|
||||
Reference in New Issue
Block a user