[clang] [lld] [llvm] [mlir] [llvm-project] Fix typo "propogate" (PR #114795)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 05:47:55 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: Jay Foad (jayfoad)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/114795.diff


22 Files Affected:

- (modified) clang/test/Analysis/malloc.c (+1-1) 
- (modified) lld/test/Unit/lit.cfg.py (+1-1) 
- (modified) llvm/docs/HistoricalNotes/2001-05-18-ExceptionHandling.txt (+4-4) 
- (modified) llvm/docs/HistoricalNotes/2002-05-12-InstListChange.txt (+1-1) 
- (modified) llvm/lib/Transforms/IPO/AttributorAttributes.cpp (+2-2) 
- (modified) llvm/lib/Transforms/IPO/IROutliner.cpp (+1-1) 
- (modified) llvm/test/CodeGen/AArch64/i128-fast-isel-fallback.ll (+1-1) 
- (modified) llvm/test/CodeGen/AMDGPU/waitcnt-loop-single-basic-block.mir (+1-1) 
- (modified) llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond.mir (+1-1) 
- (modified) llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_clobber.mir (+1-1) 
- (modified) llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_move.mir (+1-1) 
- (modified) llvm/test/DebugInfo/MIR/X86/livedebugvalues_loop_within_loop_outer_moved.mir (+1-1) 
- (modified) llvm/test/Transforms/IROutliner/included-phi-nodes-end.ll (+1-1) 
- (modified) llvm/test/Transforms/IROutliner/region-inputs-in-phi-nodes.ll (+1-1) 
- (modified) llvm/test/Transforms/InstSimplify/ConstProp/2002-03-11-ConstPropCrash.ll (+1-1) 
- (modified) llvm/test/Transforms/InstSimplify/ConstProp/2002-05-03-DivideByZeroException.ll (+1-1) 
- (modified) llvm/test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll (+4-4) 
- (modified) llvm/test/Unit/lit.cfg.py (+1-1) 
- (modified) llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py (+1-1) 
- (modified) mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp (+1-1) 
- (modified) mlir/test/Dialect/Linalg/canonicalize.mlir (+2-2) 
- (modified) mlir/test/Dialect/Tensor/canonicalize.mlir (+2-2) 


``````````diff
diff --git a/clang/test/Analysis/malloc.c b/clang/test/Analysis/malloc.c
index 57f8561a74da66..f2f8975b5f0e21 100644
--- a/clang/test/Analysis/malloc.c
+++ b/clang/test/Analysis/malloc.c
@@ -1829,7 +1829,7 @@ void testConstEscapeThroughAnotherField(void) {
 } // no-warning
 
 // PR15623
-int testNoCheckerDataPropogationFromLogicalOpOperandToOpResult(void) {
+int testNoCheckerDataPropagationFromLogicalOpOperandToOpResult(void) {
    char *param = malloc(10);
    char *value = malloc(10);
    int ok = (param && value);
diff --git a/lld/test/Unit/lit.cfg.py b/lld/test/Unit/lit.cfg.py
index ffbbddeeed5ec9..1cf890a05cb28c 100644
--- a/lld/test/Unit/lit.cfg.py
+++ b/lld/test/Unit/lit.cfg.py
@@ -38,7 +38,7 @@
     config.environment["PATH"] = os.path.pathsep.join((
             config.shlibdir, config.environment["PATH"]))
 
-# Win32 may use %SYSTEMDRIVE% during file system shell operations, so propogate.
+# Win32 may use %SYSTEMDRIVE% during file system shell operations, so propagate.
 if sys.platform == "win32" and "SYSTEMDRIVE" in os.environ:
     config.environment["SYSTEMDRIVE"] = os.environ["SYSTEMDRIVE"]
 
diff --git a/llvm/docs/HistoricalNotes/2001-05-18-ExceptionHandling.txt b/llvm/docs/HistoricalNotes/2001-05-18-ExceptionHandling.txt
index b546301d35a404..04b40acd0f8305 100644
--- a/llvm/docs/HistoricalNotes/2001-05-18-ExceptionHandling.txt
+++ b/llvm/docs/HistoricalNotes/2001-05-18-ExceptionHandling.txt
@@ -70,7 +70,7 @@ void TestFunction(...) {
     // execution continues after the try block: the exception is consumed
   } catch (double) {
     ...double stuff...
-   throw;            // Exception is propogated
+   throw;            // Exception is propagated
   }
 }
 
@@ -83,14 +83,14 @@ Func:
   %b = alloca B   // minor detail for this example
   B::B(%b)
 
-  call foo() with fooCleanup // An exception in foo is propogated to fooCleanup
-  call bar() with barCleanup // An exception in bar is propogated to barCleanup
+  call foo() with fooCleanup // An exception in foo is propagated to fooCleanup
+  call bar() with barCleanup // An exception in bar is propagated to barCleanup
 
   %c = alloca C
   C::C(c)
   %d = alloca D
   D::D(d)
-  call baz() with bazCleanup // An exception in baz is propogated to bazCleanup
+  call baz() with bazCleanup // An exception in baz is propagated to bazCleanup
   d->~D();
 EndTry:                   // This label corresponds to the end of the try block
   c->~C()       // These could also throw, these are also ignored
diff --git a/llvm/docs/HistoricalNotes/2002-05-12-InstListChange.txt b/llvm/docs/HistoricalNotes/2002-05-12-InstListChange.txt
index 638682b49fda0b..79629077619644 100644
--- a/llvm/docs/HistoricalNotes/2002-05-12-InstListChange.txt
+++ b/llvm/docs/HistoricalNotes/2002-05-12-InstListChange.txt
@@ -18,7 +18,7 @@ linear search of the basic block the instruction is contained in... just
 to insert an instruction before another instruction, or to delete an 
 instruction!  This complicates algorithms that should be very simple (like 
 simple constant propagation), because they aren't actually sparse anymore,
-they have to traverse basic blocks to remove constant propogated 
+they have to traverse basic blocks to remove constant propagated
 instructions.
 
 Additionally, adding or removing instructions to a basic block 
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index adcd0b9213e098..eb45df34771d32 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -9240,12 +9240,12 @@ struct AAValueConstantRangeReturned
     : AAReturnedFromReturnedValues<AAValueConstantRange,
                                    AAValueConstantRangeImpl,
                                    AAValueConstantRangeImpl::StateType,
-                                   /* PropogateCallBaseContext */ true> {
+                                   /* PropagateCallBaseContext */ true> {
   using Base =
       AAReturnedFromReturnedValues<AAValueConstantRange,
                                    AAValueConstantRangeImpl,
                                    AAValueConstantRangeImpl::StateType,
-                                   /* PropogateCallBaseContext */ true>;
+                                   /* PropagateCallBaseContext */ true>;
   AAValueConstantRangeReturned(const IRPosition &IRP, Attributor &A)
       : Base(IRP, A) {}
 
diff --git a/llvm/lib/Transforms/IPO/IROutliner.cpp b/llvm/lib/Transforms/IPO/IROutliner.cpp
index 20d2d46e79ebcc..6cc218e63a0129 100644
--- a/llvm/lib/Transforms/IPO/IROutliner.cpp
+++ b/llvm/lib/Transforms/IPO/IROutliner.cpp
@@ -1513,7 +1513,7 @@ CallInst *replaceCalledFunction(Module &M, OutlinableRegion &Region) {
   // Transfer any debug information.
   Call->setDebugLoc(Region.Call->getDebugLoc());
   // Since our output may determine which branch we go to, we make sure to
-  // propogate this new call value through the module.
+  // propagate this new call value through the module.
   OldCall->replaceAllUsesWith(Call);
 
   // Remove the old instruction.
diff --git a/llvm/test/CodeGen/AArch64/i128-fast-isel-fallback.ll b/llvm/test/CodeGen/AArch64/i128-fast-isel-fallback.ll
index 80c83bd4823efe..03e296c2b9aa3c 100644
--- a/llvm/test/CodeGen/AArch64/i128-fast-isel-fallback.ll
+++ b/llvm/test/CodeGen/AArch64/i128-fast-isel-fallback.ll
@@ -6,7 +6,7 @@ define void @test1() {
   call void  @test2(i128 %1)
   ret void
 
-; The i128 is 0 so the we can test to make sure it is propogated into the x
+; The i128 is 0 so the we can test to make sure it is propagated into the x
 ; registers that make up the i128 pair
 
 ; CHECK:  mov  x0, xzr
diff --git a/llvm/test/CodeGen/AMDGPU/waitcnt-loop-single-basic-block.mir b/llvm/test/CodeGen/AMDGPU/waitcnt-loop-single-basic-block.mir
index 5ff9e8a6c5f4fe..3cd27210800c9c 100644
--- a/llvm/test/CodeGen/AMDGPU/waitcnt-loop-single-basic-block.mir
+++ b/llvm/test/CodeGen/AMDGPU/waitcnt-loop-single-basic-block.mir
@@ -1,6 +1,6 @@
 # RUN: llc -mtriple=amdgcn -mcpu=gfx900 -run-pass=si-insert-waitcnts -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s
 
-# Check that the waitcnt propogates info in the case of a single basic block loop
+# Check that the waitcnt propagates info in the case of a single basic block loop
 
 # GCN-LABEL: waitcnt-loop-single-basic-block
 # GCN: bb.0
diff --git a/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond.mir b/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond.mir
index b5b2fe4a463f08..ace5cbf407702f 100644
--- a/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond.mir
+++ b/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond.mir
@@ -1,7 +1,7 @@
 --- |
   ; RUN: llc %s -march=x86-64 -run-pass=livedebugvalues -o - | FileCheck %s -implicit-check-not=DBG_VALUE
 
-  ; Check that DBG_VALUE instructions are propogated through a CFG containing
+  ; Check that DBG_VALUE instructions are propagated through a CFG containing
   ; a diamond that doesn't move or clobber their locations.
 
   ; CHECK-LABEL: bb.0.entry:
diff --git a/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_clobber.mir b/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_clobber.mir
index 32ab6efa98155b..21c2875f32cdff 100644
--- a/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_clobber.mir
+++ b/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_clobber.mir
@@ -1,7 +1,7 @@
 --- |
   ; RUN: llc %s -march=x86-64 -run-pass=livedebugvalues -o - | FileCheck %s -implicit-check-not=DBG_VALUE
 
-  ; Check that DBG_VALUE instructions are only propogated into the top blocks of
+  ; Check that DBG_VALUE instructions are only propagated into the top blocks of
   ; a diamond when the location is clobbered and not into the successor block.
 
   ; CHECK-LABEL: bb.0.entry:
diff --git a/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_move.mir b/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_move.mir
index 4c3747be64706d..a8c0fab3374c44 100644
--- a/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_move.mir
+++ b/llvm/test/DebugInfo/MIR/X86/livedebugvalues_basic_diamond_match_move.mir
@@ -1,7 +1,7 @@
 --- |
   ; RUN: llc %s -march=x86-64 -run-pass=livedebugvalues -o - | FileCheck %s -implicit-check-not=DBG_VALUE
 
-  ; Check that DBG_VALUE instructions are propogated correctly through a
+  ; Check that DBG_VALUE instructions are propagated correctly through a
   ; diamond CFG when the location is moved by another instruction.
 
   ; CHECK-LABEL: bb.0.entry:
diff --git a/llvm/test/DebugInfo/MIR/X86/livedebugvalues_loop_within_loop_outer_moved.mir b/llvm/test/DebugInfo/MIR/X86/livedebugvalues_loop_within_loop_outer_moved.mir
index 013d9541516f03..44a1daf45deaba 100644
--- a/llvm/test/DebugInfo/MIR/X86/livedebugvalues_loop_within_loop_outer_moved.mir
+++ b/llvm/test/DebugInfo/MIR/X86/livedebugvalues_loop_within_loop_outer_moved.mir
@@ -1,7 +1,7 @@
 --- |
   ; RUN: llc %s -march=x86-64 -run-pass=livedebugvalues -o - | FileCheck %s -implicit-check-not=DBG_VALUE
 
-  ; Check that DBG_VALUE instructions are not propogated into loops with inner
+  ; Check that DBG_VALUE instructions are not propagated into loops with inner
   ; loops that move their locations.
 
   ; CHECK-LABEL: bb.0.entry:
diff --git a/llvm/test/Transforms/IROutliner/included-phi-nodes-end.ll b/llvm/test/Transforms/IROutliner/included-phi-nodes-end.ll
index 0d59a0bec11d80..d36c3dad41b3a9 100644
--- a/llvm/test/Transforms/IROutliner/included-phi-nodes-end.ll
+++ b/llvm/test/Transforms/IROutliner/included-phi-nodes-end.ll
@@ -1,7 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs
 ; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s
 
-; Show that we are able to propogate inputs to the region into the split PHINode
+; Show that we are able to propagate inputs to the region into the split PHINode
 ; outside of the region if necessary.
 
 define void @function1(ptr %a, ptr %b) {
diff --git a/llvm/test/Transforms/IROutliner/region-inputs-in-phi-nodes.ll b/llvm/test/Transforms/IROutliner/region-inputs-in-phi-nodes.ll
index b87ab4b78d6a48..f46035a883832a 100644
--- a/llvm/test/Transforms/IROutliner/region-inputs-in-phi-nodes.ll
+++ b/llvm/test/Transforms/IROutliner/region-inputs-in-phi-nodes.ll
@@ -1,7 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs
 ; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s
 
-; Show that we are able to propogate inputs to the region into the split PHINode
+; Show that we are able to propagate inputs to the region into the split PHINode
 ; outside of the region if necessary.
 
 define void @function1(ptr %a, ptr %b) {
diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/2002-03-11-ConstPropCrash.ll b/llvm/test/Transforms/InstSimplify/ConstProp/2002-03-11-ConstPropCrash.ll
index e45f76e7bef128..80374ef7b10beb 100644
--- a/llvm/test/Transforms/InstSimplify/ConstProp/2002-03-11-ConstPropCrash.ll
+++ b/llvm/test/Transforms/InstSimplify/ConstProp/2002-03-11-ConstPropCrash.ll
@@ -1,4 +1,4 @@
-; When constant propogating terminator instructions, the basic block iterator
+; When constant propagating terminator instructions, the basic block iterator
 ; was not updated to refer to the final position of the new terminator.  This
 ; can be bad, f.e. because constproping a terminator can lead to the
 ; destruction of PHI nodes, which invalidates the iterator!
diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/2002-05-03-DivideByZeroException.ll b/llvm/test/Transforms/InstSimplify/ConstProp/2002-05-03-DivideByZeroException.ll
index 683599a74f2a3a..e81bfb6cd3b17f 100644
--- a/llvm/test/Transforms/InstSimplify/ConstProp/2002-05-03-DivideByZeroException.ll
+++ b/llvm/test/Transforms/InstSimplify/ConstProp/2002-05-03-DivideByZeroException.ll
@@ -1,4 +1,4 @@
-; Make sure that the constant propogator doesn't divide by zero!
+; Make sure that the constant propagator doesn't divide by zero!
 ;
 ; RUN: opt < %s -passes=instsimplify
 ;
diff --git a/llvm/test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll b/llvm/test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll
index 95667ebcc9fb24..021af243b4dd62 100644
--- a/llvm/test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll
+++ b/llvm/test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll
@@ -154,8 +154,8 @@ exit:
 }
 
 ; Check that we can eliminate several dead blocks.
-define i32 @dead_block_propogate_test_branch_loop(i32 %end) {
-; CHECK-LABEL: @dead_block_propogate_test_branch_loop(
+define i32 @dead_block_propagate_test_branch_loop(i32 %end) {
+; CHECK-LABEL: @dead_block_propagate_test_branch_loop(
 ; CHECK-NEXT:  preheader:
 ; CHECK-NEXT:    br label [[HEADER:%.*]]
 ; CHECK:       header:
@@ -192,8 +192,8 @@ exit:
 }
 
 ; Check that we can eliminate several blocks while removing a switch.
-define i32 @dead_block_propogate_test_switch_loop(i32 %end) {
-; CHECK-LABEL: @dead_block_propogate_test_switch_loop(
+define i32 @dead_block_propagate_test_switch_loop(i32 %end) {
+; CHECK-LABEL: @dead_block_propagate_test_switch_loop(
 ; CHECK-NEXT:  preheader:
 ; CHECK-NEXT:    br label [[HEADER:%.*]]
 ; CHECK:       header:
diff --git a/llvm/test/Unit/lit.cfg.py b/llvm/test/Unit/lit.cfg.py
index f1646d1b894cde..e29fd76bd8dccf 100644
--- a/llvm/test/Unit/lit.cfg.py
+++ b/llvm/test/Unit/lit.cfg.py
@@ -60,6 +60,6 @@
         (config.shlibdir, config.environment["PATH"])
     )
 
-# Win32 may use %SYSTEMDRIVE% during file system shell operations, so propogate.
+# Win32 may use %SYSTEMDRIVE% during file system shell operations, so propagate.
 if sys.platform == "win32" and "SYSTEMDRIVE" in os.environ:
     config.environment["SYSTEMDRIVE"] = os.environ["SYSTEMDRIVE"]
diff --git a/llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py b/llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py
index f6d3297bd84d8b..24554ae86d3b24 100644
--- a/llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py
+++ b/llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py
@@ -308,7 +308,7 @@ def do_execute(
         except TableGenKernelException as e:
             return self.send_stderr(str(e))
 
-        # If we cannot find llvm-tblgen, propogate the error to the notebook.
+        # If we cannot find llvm-tblgen, propagate the error to the notebook.
         # (in case the user is not able to see the output from the Jupyter server)
         try:
             executable = self.get_executable()
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
index 358353eb955c16..d08d5fea66310e 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// Propogate shapes forward along TOSA operations to resolve dynamic shape
+// Propagate shapes forward along TOSA operations to resolve dynamic shape
 // operations.
 //
 //===----------------------------------------------------------------------===//
diff --git a/mlir/test/Dialect/Linalg/canonicalize.mlir b/mlir/test/Dialect/Linalg/canonicalize.mlir
index 5de007b390c51d..d8633f7bc59271 100644
--- a/mlir/test/Dialect/Linalg/canonicalize.mlir
+++ b/mlir/test/Dialect/Linalg/canonicalize.mlir
@@ -272,7 +272,7 @@ func.func @dead_linalg_tensor(%arg0 : tensor<7x7xi32>, %arg1 : tensor<7x7xf32>,
 
 // -----
 
-func.func @propogate_casts(%arg0 : tensor<?x?xf32>, %arg1 : f32, %arg2 : index,
+func.func @propagate_casts(%arg0 : tensor<?x?xf32>, %arg1 : f32, %arg2 : index,
     %arg3 : index) -> tensor<?x?xf32> {
   %c0 = arith.constant 0 : index
   %c1 = arith.constant 1 : index
@@ -285,7 +285,7 @@ func.func @propogate_casts(%arg0 : tensor<?x?xf32>, %arg1 : f32, %arg2 : index,
   %4 = tensor.insert_slice %arg0 into %1[%arg2, %arg3] [%2, %3] [1, 1] : tensor<?x?xf32> into tensor<?x?xf32>
   return %4 : tensor<?x?xf32>
 }
-// CHECK-LABEL: func @propogate_casts
+// CHECK-LABEL: func @propagate_casts
 //       CHECK:   %[[INIT:.+]] = tensor.empty
 //       CHECK:   %[[FILL:.+]] = linalg.fill ins(%{{.+}}{{.*}}outs(%[[INIT]]
 //       CHECK:   %[[INSERTED:.+]] = tensor.insert_slice %{{.+}} into %[[FILL]]
diff --git a/mlir/test/Dialect/Tensor/canonicalize.mlir b/mlir/test/Dialect/Tensor/canonicalize.mlir
index 693079c3aa2fac..236d2a3e60eb2c 100644
--- a/mlir/test/Dialect/Tensor/canonicalize.mlir
+++ b/mlir/test/Dialect/Tensor/canonicalize.mlir
@@ -2091,8 +2091,8 @@ func.func @fold_expand_shape_from_elements(%arg0: i32) -> tensor<1xi32> {
 
 // -----
 
-// CHECK-LABEL: func @propogate_index_cast
-func.func @propogate_index_cast(%arg0: tensor<1xi32>) -> index {
+// CHECK-LABEL: func @propagate_index_cast
+func.func @propagate_index_cast(%arg0: tensor<1xi32>) -> index {
   // CHECK: %[[IDX:.+]] = arith.constant 0
   // CHECK: %[[EXT:.+]] = tensor.extract %arg0[%[[IDX]]] : tensor<1xi32>
   // CHECK: %[[CAST:.+]] = arith.index_cast %[[EXT]]

``````````

</details>


https://github.com/llvm/llvm-project/pull/114795


More information about the cfe-commits mailing list