diff --git a/mlir/include/mlir/Analysis/CallGraph.h b/mlir/include/mlir/Analysis/CallGraph.h --- a/mlir/include/mlir/Analysis/CallGraph.h +++ b/mlir/include/mlir/Analysis/CallGraph.h @@ -59,13 +59,13 @@ }; public: - /// Returns if this edge represents an `Abstract` edge. + /// Returns true if this edge represents an `Abstract` edge. bool isAbstract() const { return targetAndKind.getInt() == Kind::Abstract; } - /// Returns if this edge represents a `Call` edge. + /// Returns true if this edge represents a `Call` edge. bool isCall() const { return targetAndKind.getInt() == Kind::Call; } - /// Returns if this edge represents a `Child` edge. + /// Returns true if this edge represents a `Child` edge. bool isChild() const { return targetAndKind.getInt() == Kind::Child; } /// Returns the target node for this edge. @@ -87,7 +87,7 @@ friend class CallGraphNode; }; - /// Returns if this node is the external node. + /// Returns true if this node is an external node. bool isExternal() const; /// Returns the callable region this node represents. This can only be called diff --git a/mlir/include/mlir/Dialect/Affine/IR/AffineOps.h b/mlir/include/mlir/Dialect/Affine/IR/AffineOps.h --- a/mlir/include/mlir/Dialect/Affine/IR/AffineOps.h +++ b/mlir/include/mlir/Dialect/Affine/IR/AffineOps.h @@ -372,7 +372,7 @@ #define GET_OP_CLASSES #include "mlir/Dialect/Affine/IR/AffineOps.h.inc" -/// Returns if the provided value is the induction variable of a AffineForOp. +/// Returns true if the provided value is the induction variable of a AffineForOp. bool isForInductionVar(Value val); /// Returns the loop parent of an induction variable. If the provided value is diff --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h --- a/mlir/include/mlir/IR/Attributes.h +++ b/mlir/include/mlir/IR/Attributes.h @@ -899,7 +899,7 @@ // Value Querying //===--------------------------------------------------------------------===// - /// Returns if this attribute corresponds to a splat, i.e. if all element + /// Returns true if this attribute corresponds to a splat, i.e. if all element /// values are the same. bool isSplat() const; diff --git a/mlir/include/mlir/IR/Diagnostics.h b/mlir/include/mlir/IR/Diagnostics.h --- a/mlir/include/mlir/IR/Diagnostics.h +++ b/mlir/include/mlir/IR/Diagnostics.h @@ -361,10 +361,10 @@ InFlightDiagnostic(DiagnosticEngine *owner, Diagnostic &&rhs) : owner(owner), impl(std::move(rhs)) {} - /// Returns if the diagnostic is still active, i.e. it has a live diagnostic. + /// Returns true if the diagnostic is still active, i.e. it has a live diagnostic. bool isActive() const { return impl.hasValue(); } - /// Returns if the diagnostic is still in flight to be reported. + /// Returns true if the diagnostic is still in flight to be reported. bool isInFlight() const { return owner; } // Allow access to the constructor. diff --git a/mlir/include/mlir/IR/Operation.h b/mlir/include/mlir/IR/Operation.h --- a/mlir/include/mlir/IR/Operation.h +++ b/mlir/include/mlir/IR/Operation.h @@ -457,12 +457,12 @@ return TerminatorStatus::Unknown; } - /// Returns if the operation is known to be a terminator. + /// Returns true if the operation is known to be a terminator. bool isKnownTerminator() { return getTerminatorStatus() == TerminatorStatus::Terminator; } - /// Returns if the operation is known to *not* be a terminator. + /// Returns true if the operation is known to *not* be a terminator. bool isKnownNonTerminator() { return getTerminatorStatus() == TerminatorStatus::NonTerminator; } @@ -483,7 +483,7 @@ LogicalResult fold(ArrayRef operands, SmallVectorImpl &results); - /// Returns if the operation was registered with a particular trait, e.g. + /// Returns true if the operation was registered with a particular trait, e.g. /// hasTrait(). template