Skip to content

[llvm-project] Fix typo "propogate" #114795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang/test/Analysis/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lld/test/Unit/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
8 changes: 4 additions & 4 deletions llvm/docs/HistoricalNotes/2001-05-18-ExceptionHandling.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion llvm/docs/HistoricalNotes/2002-05-12-InstListChange.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/IPO/IROutliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/AArch64/i128-fast-isel-fallback.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/IROutliner/included-phi-nodes-end.ll
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
Original file line number Diff line number Diff line change
@@ -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
;
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Unit/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/jupyter/tablegen_kernel/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
//===----------------------------------------------------------------------===//
Expand Down
4 changes: 2 additions & 2 deletions mlir/test/Dialect/Linalg/canonicalize.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]]
Expand Down
4 changes: 2 additions & 2 deletions mlir/test/Dialect/Tensor/canonicalize.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
Loading