@@ -30,7 +30,7 @@ enum class OpProperties : char {};
30
30
31
31
// / Operation is the basic unit of execution within MLIR.
32
32
// /
33
- // / The following documentation are recommended to understand this class:
33
+ // / The following documentations are recommended to understand this class:
34
34
// / - https://mlir.llvm.org/docs/LangRef/#operations
35
35
// / - https://mlir.llvm.org/docs/Tutorials/UnderstandingTheIRStructure/
36
36
// /
@@ -66,14 +66,14 @@ enum class OpProperties : char {};
66
66
// / tail allocated with the operation class itself, but can be dynamically moved
67
67
// / out-of-line in a dynamic allocation as needed.
68
68
// /
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
70
70
// / tail allocated array. Each `Region` is a list of Blocks. Each `Block` is
71
71
// / itself a list of Operations. This structure is effectively forming a tree.
72
72
// /
73
73
// / Some operations like branches also refer to other Block, in which case they
74
74
// / would have an array of `BlockOperand`.
75
75
// /
76
- // / An Operation may contain optionally a "Properties" object: this is a
76
+ // / An Operation may optionally contain a "Properties" object: this is a
77
77
// / pre-defined C++ object with a fixed size. This object is owned by the
78
78
// / operation and deleted with the operation. It can be converted to an
79
79
// / Attribute on demand, or loaded from an Attribute.
@@ -286,7 +286,7 @@ class alignas(8) Operation final
286
286
void destroy ();
287
287
288
288
// / 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
290
290
// / be deleted.
291
291
void dropAllReferences ();
292
292
@@ -448,11 +448,11 @@ class alignas(8) Operation final
448
448
// / to use Properties instead.
449
449
void setInherentAttr (StringAttr name, Attribute value);
450
450
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
452
452
// / discardable attribute does not exist.
453
453
Attribute getDiscardableAttr (StringRef name) { return attrs.get (name); }
454
454
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
456
456
// / discardable attribute does not exist.
457
457
Attribute getDiscardableAttr (StringAttr name) { return attrs.get (name); }
458
458
@@ -515,7 +515,7 @@ class alignas(8) Operation final
515
515
DictionaryAttr getAttrDictionary ();
516
516
517
517
// / 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
519
519
// / attributes, `setDiscardableAttrs` is more efficient.
520
520
void setAttrs (DictionaryAttr newAttrs);
521
521
void setAttrs (ArrayRef<NamedAttribute> newAttrs);
@@ -529,7 +529,7 @@ class alignas(8) Operation final
529
529
}
530
530
531
531
// / 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
533
533
// / attributes, `getDiscardableAttr` is more efficient.
534
534
Attribute getAttr (StringAttr name) {
535
535
if (getPropertiesStorageSize ()) {
@@ -950,7 +950,7 @@ class alignas(8) Operation final
950
950
// / operation.
951
951
static constexpr unsigned kOrderStride = 5 ;
952
952
953
- // / Update the order index of this operation of this operation if necessary,
953
+ // / Update the order index of this operation if necessary,
954
954
// / potentially recomputing the order of the parent block.
955
955
void updateOrderIfNecessary ();
956
956
0 commit comments