From f8559751fc2b15b45ac417be9abe865085af45ad Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Mon, 4 Nov 2024 15:33:19 +0000 Subject: [PATCH] [llvm-project] Fix typo "propogate" (#114795) --- clang/test/Analysis/malloc.c | 2 +- lld/test/Unit/lit.cfg.py | 2 +- .../docs/HistoricalNotes/2001-05-18-ExceptionHandling.txt | 8 ++++---- llvm/docs/HistoricalNotes/2002-05-12-InstListChange.txt | 2 +- llvm/lib/Transforms/IPO/AttributorAttributes.cpp | 4 ++-- llvm/lib/Transforms/IPO/IROutliner.cpp | 2 +- llvm/test/CodeGen/AArch64/i128-fast-isel-fallback.ll | 2 +- .../CodeGen/AMDGPU/waitcnt-loop-single-basic-block.mir | 2 +- .../DebugInfo/MIR/X86/livedebugvalues_basic_diamond.mir | 2 +- .../X86/livedebugvalues_basic_diamond_match_clobber.mir | 2 +- .../MIR/X86/livedebugvalues_basic_diamond_match_move.mir | 2 +- .../X86/livedebugvalues_loop_within_loop_outer_moved.mir | 2 +- llvm/test/Transforms/IROutliner/included-phi-nodes-end.ll | 2 +- .../Transforms/IROutliner/region-inputs-in-phi-nodes.ll | 2 +- .../InstSimplify/ConstProp/2002-03-11-ConstPropCrash.ll | 2 +- .../ConstProp/2002-05-03-DivideByZeroException.ll | 2 +- .../Transforms/LoopSimplifyCFG/constant-fold-branch.ll | 8 ++++---- llvm/test/Unit/lit.cfg.py | 2 +- llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py | 2 +- mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp | 2 +- mlir/test/Dialect/Linalg/canonicalize.mlir | 4 ++-- mlir/test/Dialect/Tensor/canonicalize.mlir | 4 ++-- 22 files changed, 31 insertions(+), 31 deletions(-) diff --git a/clang/test/Analysis/malloc.c b/clang/test/Analysis/malloc.c index 57f8561a74da..f2f8975b5f0e 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 ffbbddeeed5e..1cf890a05cb2 100644 --- a/lld/test/Unit/lit.cfg.py +++ b/lld/test/Unit/lit.cfg.py @@ -38,7 +38,7 @@ if sys.platform in ["win32", "cygwin"] and os.path.isdir(config.shlibdir): 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 b546301d35a4..04b40acd0f83 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 638682b49fda..796290776196 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 adcd0b9213e0..eb45df34771d 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -9240,12 +9240,12 @@ struct AAValueConstantRangeReturned : AAReturnedFromReturnedValues { + /* PropagateCallBaseContext */ true> { using Base = AAReturnedFromReturnedValues; + /* 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 20d2d46e79eb..6cc218e63a01 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 80c83bd4823e..03e296c2b9aa 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 5ff9e8a6c5f4..3cd27210800c 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 b5b2fe4a463f..ace5cbf40770 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 32ab6efa9815..21c2875f32cd 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 4c3747be6470..a8c0fab3374c 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 013d9541516f..44a1daf45dea 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 0d59a0bec11d..d36c3dad41b3 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 b87ab4b78d6a..f46035a88383 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 e45f76e7bef1..80374ef7b10b 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 683599a74f2a..e81bfb6cd3b1 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 95667ebcc9fb..021af243b4dd 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 f1646d1b894c..e29fd76bd8dc 100644 --- a/llvm/test/Unit/lit.cfg.py +++ b/llvm/test/Unit/lit.cfg.py @@ -60,6 +60,6 @@ if sys.platform in ["win32", "cygwin"] and os.path.isdir(config.shlibdir): (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 f6d3297bd84d..24554ae86d3b 100644 --- a/llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py +++ b/llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py @@ -308,7 +308,7 @@ class TableGenKernel(Kernel): 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 358353eb955c..d08d5fea6631 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 5de007b390c5..d8633f7bc592 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, %arg1 : f32, %arg2 : index, +func.func @propagate_casts(%arg0 : tensor, %arg1 : f32, %arg2 : index, %arg3 : index) -> tensor { %c0 = arith.constant 0 : index %c1 = arith.constant 1 : index @@ -285,7 +285,7 @@ func.func @propogate_casts(%arg0 : tensor, %arg1 : f32, %arg2 : index, %4 = tensor.insert_slice %arg0 into %1[%arg2, %arg3] [%2, %3] [1, 1] : tensor into tensor return %4 : tensor } -// 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 693079c3aa2f..236d2a3e60eb 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]]