Skip to content

Commit 057564f

Browse files
authored
Fix some typos in comments: evalute -> evaluate (NFC) (#65906)
1 parent 9f77fac commit 057564f

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

clang/include/clang/AST/Expr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ class Expr : public ValueStmt {
566566
SmallVectorImpl<
567567
PartialDiagnosticAt> &Diags);
568568

569-
/// isPotentialConstantExprUnevaluted - Return true if this expression might
569+
/// isPotentialConstantExprUnevaluated - Return true if this expression might
570570
/// be usable in a constant expression in C++11 in an unevaluated context, if
571571
/// it were in function FD marked constexpr. Return false if the function can
572572
/// never produce a constant expression, along with diagnostics describing

clang/lib/Serialization/ASTWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6081,7 +6081,7 @@ void ASTRecordWriter::AddVarDeclInit(const VarDecl *VD) {
60816081
Val |= (ES->HasConstantInitialization ? 2 : 0);
60826082
Val |= (ES->HasConstantDestruction ? 4 : 0);
60836083
APValue *Evaluated = VD->getEvaluatedValue();
6084-
// If the evaluted result is constant, emit it.
6084+
// If the evaluated result is constant, emit it.
60856085
if (Evaluated && (Evaluated->isInt() || Evaluated->isFloat()))
60866086
Val |= 8;
60876087
}

clang/unittests/Analysis/FlowSensitive/TransferTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5855,7 +5855,7 @@ TEST(TransferTest, AnonymousStructWithReferenceField) {
58555855

58565856
TEST(TransferTest, EvaluateBlockWithUnreachablePreds) {
58575857
// This is a crash repro.
5858-
// `false` block may not have been processed when we try to evalute the `||`
5858+
// `false` block may not have been processed when we try to evaluate the `||`
58595859
// after visiting `true`, because it is not necessary (and therefore the edge
58605860
// is marked unreachable). Trying to get the analysis state via
58615861
// `getEnvironment` for the subexpression still should not crash.

flang/include/flang/Lower/Support/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace Fortran::lower {
8989
// Fortran::evaluate::Expr are functional values organized like an AST. A
9090
// Fortran::evaluate::Expr is meant to be moved and cloned. Using the front end
9191
// tools can often cause copies and extra wrapper classes to be added to any
92-
// Fortran::evalute::Expr. These values should not be assumed or relied upon to
92+
// Fortran::evaluate::Expr. These values should not be assumed or relied upon to
9393
// have an *object* identity. They are deeply recursive, irregular structures
9494
// built from a large number of classes which do not use inheritance and
9595
// necessitate a large volume of boilerplate code as a result.

flang/lib/Evaluate/shape.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ void GetShapeHelper::AccumulateExtent(
10861086
result = std::move(result) + std::move(n);
10871087
if (context_) {
10881088
// Fold during expression creation to avoid creating an expression so
1089-
// large we can't evalute it without overflowing the stack.
1089+
// large we can't evaluate it without overflowing the stack.
10901090
result = Fold(*context_, std::move(result));
10911091
}
10921092
}

mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> {
324324
// MLIR currently does not support dependent interfaces or interface
325325
// inheritance. By construction all ops with StructuredOpInterface must
326326
// implement DestinationStyleOpInterface.
327-
// TODO: reevalute the need for a cast when a better mechanism exists.
327+
// TODO: reevaluate the need for a cast when a better mechanism exists.
328328
return getBlock()->getArguments().take_front(
329329
cast<DestinationStyleOpInterface>(*this->getOperation())
330330
.getNumDpsInputs());
@@ -342,7 +342,7 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> {
342342
// MLIR currently does not support dependent interfaces or interface
343343
// inheritance. By construction all ops with StructuredOpInterface must
344344
// implement DestinationStyleOpInterface.
345-
// TODO: reevalute the need for a cast when a better mechanism exists.
345+
// TODO: reevaluate the need for a cast when a better mechanism exists.
346346
return getBlock()->getArguments().take_back(
347347
cast<DestinationStyleOpInterface>(*this->getOperation())
348348
.getNumDpsInits());
@@ -421,7 +421,7 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> {
421421
// MLIR currently does not support dependent interfaces or interface
422422
// inheritance. By construction all ops with StructuredOpInterface must
423423
// implement DestinationStyleOpInterface.
424-
// TODO: reevalute the need for a cast when a better mechanism exists.
424+
// TODO: reevaluate the need for a cast when a better mechanism exists.
425425
return *(indexingMaps.begin() +
426426
cast<DestinationStyleOpInterface>(*this->getOperation())
427427
.getNumDpsInputs() +
@@ -442,7 +442,7 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> {
442442
// MLIR currently does not support dependent interfaces or interface
443443
// inheritance. By construction all ops with StructuredOpInterface must
444444
// implement DestinationStyleOpInterface.
445-
// TODO: reevalute the need for a cast when a better mechanism exists.
445+
// TODO: reevaluate the need for a cast when a better mechanism exists.
446446
int64_t resultIndex =
447447
opOperand->getOperandNumber() -
448448
cast<DestinationStyleOpInterface>(*this->getOperation())
@@ -807,7 +807,7 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> {
807807
// MLIR currently does not support dependent interfaces or interface
808808
// inheritance. By construction all ops with StructuredOpInterface must
809809
// implement DestinationStyleOpInterface.
810-
// TODO: reevalute the need for a cast when a better mechanism exists.
810+
// TODO: reevaluate the need for a cast when a better mechanism exists.
811811
//========================================================================//
812812

813813
int64_t getNumDpsInputs() {

openmp/libomptarget/test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def append_dynamic_library_path(name, value, sep):
4545
else:
4646
config.environment[name] = value
4747

48-
# Evalute the environment variable which is a string boolean value.
48+
# Evaluate the environment variable which is a string boolean value.
4949
def evaluate_bool_env(env):
5050
env = env.lower()
5151
possible_true_values = ["on", "true", "1"]

0 commit comments

Comments
 (0)