[Mlir-commits] [mlir] be556ee - [mlir][sparse] Fix typos in comments
Yinying Li
llvmlistbot at llvm.org
Thu Aug 24 11:14:01 PDT 2023
Author: Yinying Li
Date: 2023-08-24T18:13:36Z
New Revision: be556ee157c9dbb9f7e79ae1bd7ebf927bd4395d
URL: https://github.com/llvm/llvm-project/commit/be556ee157c9dbb9f7e79ae1bd7ebf927bd4395d
DIFF: https://github.com/llvm/llvm-project/commit/be556ee157c9dbb9f7e79ae1bd7ebf927bd4395d.diff
LOG: [mlir][sparse] Fix typos in comments
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D158667
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
index 325cdfbaa4898f..9d833ec0c35b38 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
@@ -596,14 +596,14 @@ class SparseCallConverter : public OpConversionPattern<func::CallOp> {
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 @@ class SparseCastConverter : public OpConversionPattern<tensor::CastOp> {
}
};
-/// 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());
More information about the Mlir-commits
mailing list