https://github.com/divedb created 
https://github.com/llvm/llvm-project/pull/208138

Fix several occurrences of:

- defination   -> definition
- definations -> definitions

This change only updates comments and does not introduce any functional changes.

>From bdbd2ceeb8ce7569e2a1e0205de161d87295b2e3 Mon Sep 17 00:00:00 2001
From: gc <[email protected]>
Date: Wed, 8 Jul 2026 11:53:54 +0800
Subject: [PATCH] [NFC] Fix spelling of definition in comments

---
 .../test/clang-tidy/checkers/bugprone/argument-comment.cpp    | 2 +-
 clang/test/CodeGenCoroutines/coro-gro3.cpp                    | 2 +-
 llvm/lib/CodeGen/MachineSink.cpp                              | 4 ++--
 llvm/lib/MC/XCOFFObjectWriter.cpp                             | 2 +-
 llvm/lib/Target/PowerPC/PPCCTRLoops.cpp                       | 4 ++--
 mlir/include/mlir/IR/Interfaces.td                            | 4 ++--
 mlir/include/mlir/IR/Properties.td                            | 2 +-
 mlir/include/mlir/IR/Traits.td                                | 4 ++--
 8 files changed, 12 insertions(+), 12 deletions(-)

diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment.cpp 
b/clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment.cpp
index dd8221772a300..aed96a9d7a5ed 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment.cpp
@@ -150,5 +150,5 @@ void test() {
 
 void testInvalidSlocCxxConstructExpr() {
   __builtin_va_list __args;
-  // __builtin_va_list has no defination in any source file
+  // __builtin_va_list has no definition in any source file
 } 
diff --git a/clang/test/CodeGenCoroutines/coro-gro3.cpp 
b/clang/test/CodeGenCoroutines/coro-gro3.cpp
index 8c37b1e9838d3..7f5a8e2df1444 100644
--- a/clang/test/CodeGenCoroutines/coro-gro3.cpp
+++ b/clang/test/CodeGenCoroutines/coro-gro3.cpp
@@ -1,4 +1,4 @@
-// Tests defination of get-return-object-invocation [dcl.fct.def.coroutine] 
(and CWG2563)
+// Tests definition of get-return-object-invocation [dcl.fct.def.coroutine] 
(and CWG2563)
 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -emit-llvm %s 
-o - -disable-llvm-passes | FileCheck %s
 
 #include "Inputs/coroutine.h"
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index da9eaa68d22e0..6784752fba357 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -1343,8 +1343,8 @@ bool MachineSinking::isProfitableToSinkTo(Register Reg, 
MachineInstr &MI,
       MachineCycle *Cycle = CI->getCycle(DefMI->getParent());
       // DefMI is defined outside of cycle. There should be no live range
       // impact for this operand. Defination outside of cycle means:
-      // 1: defination is outside of cycle.
-      // 2: defination is in this cycle, but it is a PHI in the cycle header.
+      // 1: definition is outside of cycle.
+      // 2: definition is in this cycle, but it is a PHI in the cycle header.
       if (Cycle != MCycle || (DefMI->isPHI() && Cycle && Cycle->isReducible() 
&&
                               Cycle->getHeader() == DefMI->getParent()))
         continue;
diff --git a/llvm/lib/MC/XCOFFObjectWriter.cpp 
b/llvm/lib/MC/XCOFFObjectWriter.cpp
index d9f47d6f4ba25..c4900b47b8956 100644
--- a/llvm/lib/MC/XCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/XCOFFObjectWriter.cpp
@@ -100,7 +100,7 @@ struct XCOFFSection {
 using CsectGroup = std::deque<XCOFFSection>;
 using CsectGroups = std::deque<CsectGroup *>;
 
-// The basic section entry defination. This Section represents a section entry
+// The basic section entry definition. This Section represents a section entry
 // in XCOFF section header table.
 struct SectionEntry {
   char Name[XCOFF::NameSize];
diff --git a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp 
b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
index ef5f93d170408..74520a4d17207 100644
--- a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
+++ b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
@@ -115,8 +115,8 @@ bool PPCCTRLoops::isCTRClobber(MachineInstr *MI, bool 
CheckReads) const {
   if (!CheckReads) {
     // If we are only checking for defs, that is we are going to find
     // definitions before MTCTRloop, for this case:
-    // CTR defination inside the callee of a call instruction will not impact
-    // the defination of MTCTRloop, so we can use definesRegister() for the
+    // CTR definition inside the callee of a call instruction will not impact
+    // the definition of MTCTRloop, so we can use definesRegister() for the
     // check, no need to check the regmask.
     return MI->definesRegister(PPC::CTR, /*TRI=*/nullptr) ||
            MI->definesRegister(PPC::CTR8, /*TRI=*/nullptr);
diff --git a/mlir/include/mlir/IR/Interfaces.td 
b/mlir/include/mlir/IR/Interfaces.td
index e16de2942a043..4954b2a6a652d 100644
--- a/mlir/include/mlir/IR/Interfaces.td
+++ b/mlir/include/mlir/IR/Interfaces.td
@@ -1,4 +1,4 @@
-//===-- Interfaces.td - Interfaces defination file ------------------*- 
tablegen -*-===//
+//===-- Interfaces.td - Interfaces definition file ------------------*- 
tablegen -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM 
Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -6,7 +6,7 @@
 //
 
//===----------------------------------------------------------------------===//
 //
-// This file contains definations for Interfaces.
+// This file contains definitions for Interfaces.
 //
 
//===----------------------------------------------------------------------===//
 
diff --git a/mlir/include/mlir/IR/Properties.td 
b/mlir/include/mlir/IR/Properties.td
index 2830ba96fb787..89e232feee617 100644
--- a/mlir/include/mlir/IR/Properties.td
+++ b/mlir/include/mlir/IR/Properties.td
@@ -6,7 +6,7 @@
 //
 
//===----------------------------------------------------------------------===//
 //
-// This is the base properties defination file.
+// This is the base properties definition file.
 //
 
//===----------------------------------------------------------------------===//
 
diff --git a/mlir/include/mlir/IR/Traits.td b/mlir/include/mlir/IR/Traits.td
index 221f8633ad954..41e745674f605 100644
--- a/mlir/include/mlir/IR/Traits.td
+++ b/mlir/include/mlir/IR/Traits.td
@@ -1,4 +1,4 @@
-//===-- Traits.td - Trait definations file ------------------*- tablegen 
-*-===//
+//===-- Traits.td - Trait definitions file ------------------*- tablegen 
-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM 
Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -6,7 +6,7 @@
 //
 
//===----------------------------------------------------------------------===//
 //
-// This file contains definations for traits.
+// This file contains definitions for traits.
 //
 
//===----------------------------------------------------------------------===//
 

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to