Skip to content

Commit 8ff2da7

Browse files
[MLIR][NFC] Fix comment formatting and use 3 slashes (llvm#116201)
NFC making a consistent indentation. Corrected comment syntax. Changed // to /// and nit grammatical change.
1 parent 33a9c26 commit 8ff2da7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/include/mlir/Dialect/MemRef/Utils/MemRefUtils.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ bool isStaticShapeAndContiguousRowMajor(MemRefType type);
4444
/// is also scaled down by `dstBits`/`srcBits`. If `indices` is not provided
4545
/// 0, is returned for the linearized index.
4646
/// - If the size of the load/store is smaller than the linearized memref
47-
/// load/store, the memory region emulated is larger than the actual memory
48-
/// region needed. `intraDataOffset` returns the element offset of the data
49-
/// relevant at the beginning.
47+
/// load/store, the memory region emulated is larger than the actual memory
48+
/// region needed. `intraDataOffset` returns the element offset of the data
49+
/// relevant at the beginning.
5050
struct LinearizedMemRefInfo {
5151
OpFoldResult linearizedOffset;
5252
OpFoldResult linearizedSize;
@@ -69,8 +69,8 @@ getLinearizedMemRefOffsetAndSize(OpBuilder &builder, Location loc, int srcBits,
6969
int dstBits, OpFoldResult offset,
7070
ArrayRef<OpFoldResult> sizes);
7171

72-
// Track temporary allocations that are never read from. If this is the case
73-
// it means both the allocations and associated stores can be removed.
72+
/// Track temporary allocations that are never read from. If this is the case
73+
/// it means both the allocations and associated stores can be removed.
7474
void eraseDeadAllocAndStores(RewriterBase &rewriter, Operation *parentOp);
7575

7676
/// Given a set of sizes, return the suffix product.
@@ -106,7 +106,7 @@ computeStridesIRBlock(Location loc, OpBuilder &builder,
106106
/// memory is found (i.e. skip operations that alias the entire view).
107107
MemrefValue skipFullyAliasingOperations(MemrefValue source);
108108

109-
/// Checks if two (memref) values are the same or are statically known to alias
109+
/// Checks if two (memref) values are the same or statically known to alias
110110
/// the same region of memory.
111111
inline bool isSameViewOrTrivialAlias(MemrefValue a, MemrefValue b) {
112112
return skipFullyAliasingOperations(a) == skipFullyAliasingOperations(b);

0 commit comments

Comments
 (0)