Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions mlir/include/mlir/IR/Operation.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum class OpProperties : char {};

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

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

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

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

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

Expand Down Expand Up @@ -515,7 +515,7 @@ class alignas(8) Operation final
DictionaryAttr getAttrDictionary();

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

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

/// Update the order index of this operation of this operation if necessary,
/// Update the order index of this operation if necessary,
/// potentially recomputing the order of the parent block.
void updateOrderIfNecessary();

Expand Down
Loading