Skip to content

Commit f87b662

Browse files
[MLIR][NFC] Fixed some Typos (#144263)
-- Fixed some typos in Operation.h Signed-off: Abdul Raheem Beigh [email protected]
1 parent bf79d48 commit f87b662

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mlir/include/mlir/IR/Operation.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ enum class OpProperties : char {};
3030

3131
/// Operation is the basic unit of execution within MLIR.
3232
///
33-
/// The following documentation are recommended to understand this class:
33+
/// The following documentations are recommended to understand this class:
3434
/// - https://mlir.llvm.org/docs/LangRef/#operations
3535
/// - https://mlir.llvm.org/docs/Tutorials/UnderstandingTheIRStructure/
3636
///
@@ -66,14 +66,14 @@ enum class OpProperties : char {};
6666
/// tail allocated with the operation class itself, but can be dynamically moved
6767
/// out-of-line in a dynamic allocation as needed.
6868
///
69-
/// An Operation may contain optionally one or multiple Regions, stored in a
69+
/// An Operation may optionally contain one or multiple Regions, stored in a
7070
/// tail allocated array. Each `Region` is a list of Blocks. Each `Block` is
7171
/// itself a list of Operations. This structure is effectively forming a tree.
7272
///
7373
/// Some operations like branches also refer to other Block, in which case they
7474
/// would have an array of `BlockOperand`.
7575
///
76-
/// An Operation may contain optionally a "Properties" object: this is a
76+
/// An Operation may optionally contain a "Properties" object: this is a
7777
/// pre-defined C++ object with a fixed size. This object is owned by the
7878
/// operation and deleted with the operation. It can be converted to an
7979
/// Attribute on demand, or loaded from an Attribute.
@@ -286,7 +286,7 @@ class alignas(8) Operation final
286286
void destroy();
287287

288288
/// This drops all operand uses from this operation, which is an essential
289-
/// step in breaking cyclic dependences between references when they are to
289+
/// step in breaking cyclic dependencies between references when they are to
290290
/// be deleted.
291291
void dropAllReferences();
292292

@@ -448,11 +448,11 @@ class alignas(8) Operation final
448448
/// to use Properties instead.
449449
void setInherentAttr(StringAttr name, Attribute value);
450450

451-
/// Access a discardable attribute by name, returns an null Attribute if the
451+
/// Access a discardable attribute by name, returns a null Attribute if the
452452
/// discardable attribute does not exist.
453453
Attribute getDiscardableAttr(StringRef name) { return attrs.get(name); }
454454

455-
/// Access a discardable attribute by name, returns an null Attribute if the
455+
/// Access a discardable attribute by name, returns a null Attribute if the
456456
/// discardable attribute does not exist.
457457
Attribute getDiscardableAttr(StringAttr name) { return attrs.get(name); }
458458

@@ -515,7 +515,7 @@ class alignas(8) Operation final
515515
DictionaryAttr getAttrDictionary();
516516

517517
/// Set the attributes from a dictionary on this operation.
518-
/// These methods are expensive: if the dictionnary only contains discardable
518+
/// These methods are expensive: if the dictionary only contains discardable
519519
/// attributes, `setDiscardableAttrs` is more efficient.
520520
void setAttrs(DictionaryAttr newAttrs);
521521
void setAttrs(ArrayRef<NamedAttribute> newAttrs);
@@ -529,7 +529,7 @@ class alignas(8) Operation final
529529
}
530530

531531
/// Return the specified attribute if present, null otherwise.
532-
/// These methods are expensive: if the dictionnary only contains discardable
532+
/// These methods are expensive: if the dictionary only contains discardable
533533
/// attributes, `getDiscardableAttr` is more efficient.
534534
Attribute getAttr(StringAttr name) {
535535
if (getPropertiesStorageSize()) {
@@ -950,7 +950,7 @@ class alignas(8) Operation final
950950
/// operation.
951951
static constexpr unsigned kOrderStride = 5;
952952

953-
/// Update the order index of this operation of this operation if necessary,
953+
/// Update the order index of this operation if necessary,
954954
/// potentially recomputing the order of the parent block.
955955
void updateOrderIfNecessary();
956956

0 commit comments

Comments
 (0)