Skip to content

Commit 25f4ead

Browse files
[flang] [lldb] [llvm] Fix 'destory' comment typos [NFC] (#93260)
1 parent 7d29718 commit 25f4ead

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ mlir::LogicalResult
11151115
hlfir::MatmulOp::canonicalize(MatmulOp matmulOp,
11161116
mlir::PatternRewriter &rewriter) {
11171117
// the only two uses of the transposed matrix should be for the hlfir.matmul
1118-
// and hlfir.destory
1118+
// and hlfir.destroy
11191119
auto isOtherwiseUnused = [&](hlfir::TransposeOp transposeOp) -> bool {
11201120
std::size_t numUses = 0;
11211121
for (mlir::Operation *user : transposeOp.getResult().getUsers()) {

flang/lib/Optimizer/HLFIR/Transforms/InlineElementals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace hlfir {
3232
} // namespace hlfir
3333

3434
/// If the elemental has only two uses and those two are an apply operation and
35-
/// a destory operation, return those two, otherwise return {}
35+
/// a destroy operation, return those two, otherwise return {}
3636
static std::optional<std::pair<hlfir::ApplyOp, hlfir::DestroyOp>>
3737
getTwoUses(hlfir::ElementalOp elemental) {
3838
mlir::Operation::user_range users = elemental->getUsers();

lldb/include/lldb/Target/Process.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,8 @@ class Process : public std::enable_shared_from_this<Process>,
915915
/// \param[in] force_kill
916916
/// Whether lldb should force a kill (instead of a detach) from
917917
/// the inferior process. Normally if lldb launched a binary and
918-
/// Destory is called, lldb kills it. If lldb attached to a
919-
/// running process and Destory is called, lldb detaches. If
918+
/// Destroy is called, lldb kills it. If lldb attached to a
919+
/// running process and Destroy is called, lldb detaches. If
920920
/// this behavior needs to be over-ridden, this is the bool that
921921
/// can be used.
922922
///

llvm/lib/ExecutionEngine/Orc/TargetProcess/SimpleExecutorMemoryManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Error SimpleExecutorMemoryManager::finalize(tpctypes::FinalizeRequest &FR) {
7575
auto BailOut = [&](Error Err) {
7676
std::pair<void *, Allocation> AllocToDestroy;
7777

78-
// Get allocation to destory.
78+
// Get allocation to destroy.
7979
{
8080
std::lock_guard<std::mutex> Lock(M);
8181
auto I = Allocations.find(Base.toPtr<void *>());
@@ -153,7 +153,7 @@ Error SimpleExecutorMemoryManager::deallocate(
153153
std::vector<std::pair<void *, Allocation>> AllocPairs;
154154
AllocPairs.reserve(Bases.size());
155155

156-
// Get allocation to destory.
156+
// Get allocation to destroy.
157157
Error Err = Error::success();
158158
{
159159
std::lock_guard<std::mutex> Lock(M);

llvm/test/Transforms/Coroutines/no-suspend.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ body:
325325
%save = call token @llvm.coro.save(ptr %hdl)
326326
%subfn = call ptr @llvm.coro.subfn.addr(ptr %hdl, i8 1)
327327
call fastcc void %subfn(ptr %hdl)
328-
; memcpy separates destory from suspend, therefore cannot simplify.
328+
; memcpy separates destroy from suspend, therefore cannot simplify.
329329
call void @llvm.memcpy.p0.p0.i64(ptr %dst, ptr %src, i64 1, i1 false)
330330
%0 = call i8 @llvm.coro.suspend(token %save, i1 false)
331331
switch i8 %0, label %suspend [i8 0, label %resume

0 commit comments

Comments
 (0)