Skip to content

Commit 730b16c

Browse files
committed
Spelling siloptimizer
* access * accessed * accesses * accessor * acquiring * across * activated * additive * address * addresses' * aggregated * analysis * and * appropriately * archetype * argument * associated * availability * barriers * because * been * beginning * belongs * beneficial * blocks * borrow * builtin * cannot * canonical * canonicalize * clazz * cleanup * coalesceable * coalesced * comparisons * completely * component * computed * concrete * conjunction * conservatively * constituent * construct * consuming * containing * covered * creates * critical * dataflow * declaration * defined * defining * definition * deinitialization * deliberately * dependencies * dependent * deserialized * destroy * deterministic * deterministically * devirtualizes * diagnostic * diagnostics * differentiation * disable * discipline * dominate * dominates * don't * element * eliminate * eliminating * elimination * embedded * encounter * epilogue * epsilon * escape * escaping * essential * evaluating * evaluation * evaluator * executing * existential * existentials * explicit * expression * extended * extension * extract * for * from * function * generic * guarantee * guaranteed * happened * heuristic * however * identifiable * immediately * implementation * improper * include * infinite * initialize * initialized * initializer * inside * instruction * interference * interferes * interleaved * internal * intersection * intractable * intrinsic * invalidates * irreducible * irrelevant * language * lifetime * literal * looks * materialize * meaning * mergeable * might * mimics * modification * modifies * multiple * mutating * necessarily * necessary * needsmultiplecopies * nonetheless * nothing * occurred * occurs * optimization * optimizing * original * outside * overflow * overlapping * overridden * owned * ownership * parallel * parameter * paths * patterns * pipeline * plottable * possible * potentially * practically * preamble * precede * preceding * predecessor * preferable * preparation * probably * projection * properties * property * protocol * reabstraction * reachable * recognized * recursive * recursively * redundant * reentrancy * referenced * registry * reinitialization * reload * represent * requires * response * responsible * retrieving * returned * returning * returns * rewriting * rewritten * sample * scenarios * scope * should * sideeffects * similar * simplify * simplifycfg * somewhat * spaghetti * specialization * specializations * specialized * specially * statistically * substitute * substitution * succeeds * successful * successfully * successor * superfluous * surprisingly * suspension * swift * targeted * that * that our * the * therefore * this * those * threshold * through * transform * transformation * truncated * ultimate * unchecked * uninitialized * unlikely * unmanaged * unoptimized key * updataflow * usefulness * utilities * villain * whenever * writes Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
1 parent de59784 commit 730b16c

File tree

202 files changed

+481
-481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+481
-481
lines changed

include/swift/SILOptimizer/Analysis/ARCAnalysis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ valueHasARCDecrementOrCheckInInstructionRange(SILValue Op,
117117
/// in the predecessors.
118118
///
119119
/// The search stop when we encounter an instruction that may decrement
120-
/// the return'ed value, as we do not want to create a lifetime gap once the
120+
/// the returned value, as we do not want to create a lifetime gap once the
121121
/// retain is moved.
122122
class ConsumedResultToEpilogueRetainMatcher {
123123
public:

include/swift/SILOptimizer/Analysis/AccessStorageAnalysis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ namespace swift {
125125
using AccessStorageSet = llvm::SmallDenseSet<StorageAccessInfo, 8>;
126126

127127
/// Records each unique AccessStorage in a set of StorageAccessInfo
128-
/// objects. Hashing and equality only sees the AccesedStorage data. The
128+
/// objects. Hashing and equality only sees the AccessedStorage data. The
129129
/// additional StorageAccessInfo bits are recorded as results of this analysis.
130130
///
131131
/// Any unidentified accesses are summarized as a single unidentifiedAccess

include/swift/SILOptimizer/Analysis/AccessSummaryAnalysis.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class AccessSummaryAnalysis : public BottomUpIPAnalysis {
108108
public:
109109
FunctionSummary(unsigned argCount) : ArgAccesses(argCount) {}
110110

111-
/// Returns of summary of the the function accesses that argument at the
111+
/// Returns of summary of the function accesses that argument at the
112112
/// given index.
113113
ArgumentSummary &getAccessForArgument(unsigned argument) {
114114
return ArgAccesses[argument];
@@ -229,7 +229,7 @@ class AccessSummaryAnalysis : public BottomUpIPAnalysis {
229229
void processFunction(FunctionInfo *info, FunctionOrder &order);
230230

231231
/// Summarize how the function uses the given argument.
232-
void processArgument(FunctionInfo *info, SILFunctionArgument *argment,
232+
void processArgument(FunctionInfo *info, SILFunctionArgument *argument,
233233
ArgumentSummary &summary, FunctionOrder &order);
234234

235235
/// Summarize a partial_apply instruction.

include/swift/SILOptimizer/Analysis/AliasAnalysis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class AliasAnalysis {
9898

9999
/// Set of instructions inside immutable-scopes.
100100
///
101-
/// Contains pairs of intructions: the first instruction is the begin-scope
101+
/// Contains pairs of instructions: the first instruction is the begin-scope
102102
/// instruction (e.g. begin_access), the second instruction is an
103103
/// instruction inside the scope (only may-write instructions are considered).
104104
llvm::DenseSet<ScopeCacheKey> instsInImmutableScopes;

include/swift/SILOptimizer/Analysis/ArraySemantic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class ArraySemanticsCall {
196196
bool canInlineEarly() const;
197197

198198
/// If this is a call to ArrayUninitialized (or
199-
/// ArrayUninitializedInstrinsic), identify the instructions that store
199+
/// ArrayUninitializedIntrinsic), identify the instructions that store
200200
/// elements into the array indices. For every index, add the store
201201
/// instruction that stores to that index to \p ElementStoreMap.
202202
///

include/swift/SILOptimizer/Analysis/ClosureScope.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
///
2121
/// Like CallerAnalysis, ClosureScope is top-down, but unlike CallerAnalysis, it
2222
/// does not require complex invalidation and recomputation. The underlying
23-
/// assumption is that no trasformation will add new references to existing
23+
/// assumption is that no transformation will add new references to existing
2424
/// non-escaping closures, with some exceptions like SILCloner.
2525
///
2626
/// TODO: When this analysis is used across passes, fix SILCloner to update or
@@ -43,7 +43,7 @@
4343
/// cyclic because there's no way to name a non-escaping closure. So, in the
4444
/// long term the acyclic assumption made by this analysis is protected by
4545
/// non-reentrant semantics, and in the short-term it's safe because of the
46-
/// lanuguage's practical limitations.
46+
/// language's practical limitations.
4747
///
4848
//===----------------------------------------------------------------------===//
4949

include/swift/SILOptimizer/Analysis/DifferentiableActivityAnalysis.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class DominanceAnalysis;
6565
class PostDominanceAnalysis;
6666
class DominanceInfo;
6767
class PostDominanceInfo;
68-
class SILFunciton;
68+
class SILFunction;
6969

7070
class DifferentiableActivityCollection;
7171
class DifferentiableActivityAnalysis
@@ -166,7 +166,7 @@ class DifferentiableActivityInfo {
166166
/// - Incoming values, if the value is a basic block argument.
167167
void setUsefulAndPropagateToOperands(SILValue value,
168168
unsigned dependentVariableIndex);
169-
/// Propagates usefulnesss to the operands of the given instruction.
169+
/// Propagates usefulness to the operands of the given instruction.
170170
void propagateUseful(SILInstruction *inst, unsigned dependentVariableIndex);
171171
/// Marks the given address or class-typed value as useful and recursively
172172
/// propagates usefulness inwards (to operands) through projections. Skips

include/swift/SILOptimizer/Analysis/EpilogueARCAnalysis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class EpilogueARCContext {
8383
/// The exit blocks of the function.
8484
llvm::SmallPtrSet<SILBasicBlock *, 2> ExitBlocks;
8585

86-
/// Returns the EpligoyeARCBlockState for \p BB. If \p BB is unreachable,
86+
/// Returns the EpilogueARCBlockState for \p BB. If \p BB is unreachable,
8787
/// returns None
8888
Optional<EpilogueARCBlockState *> getState(SILBasicBlock *BB) {
8989
// poNumber will be None for unreachable blocks

include/swift/SILOptimizer/Analysis/EscapeAnalysis.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -860,14 +860,14 @@ class EscapeAnalysis : public BottomUpIPAnalysis {
860860

861861
/// Returns true if the graph could be computed.
862862
///
863-
/// For very large functions (> 10000 nodes), graphs are not cumputed to
863+
/// For very large functions (> 10000 nodes), graphs are not computed to
864864
/// avoid quadratic complexity of the node merging algorithm.
865865
bool isValid() const {
866866
assert((valid || isEmpty()) && "invalid graph must not contain nodes");
867867
return valid;
868868
}
869869

870-
/// Invalides the graph in case it's getting too large.
870+
/// Invalidates the graph in case it's getting too large.
871871
void invalidate() {
872872
clear();
873873
valid = false;

include/swift/SILOptimizer/Analysis/Reachability.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class BackwardReachability {
8181
}
8282
}
8383

84-
// Data flow "meet": interesection of successor reachability.
84+
// Data flow "meet": intersection of successor reachability.
8585
void solveBackward() {
8686
while (SILBasicBlock *block = cfgWorklist.popAndForget()) {
8787
if (!meetOverSuccessors(block))

include/swift/SILOptimizer/Differentiation/Common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ raw_ostream &getADDebugStream();
4848
/// Given an element address from an `array.uninitialized_intrinsic` `apply`
4949
/// instruction, returns the `apply` instruction. The element address is either
5050
/// a `pointer_to_address` or `index_addr` instruction to the `RawPointer`
51-
/// result of the instrinsic:
51+
/// result of the intrinsic:
5252
///
5353
/// %result = apply %array.uninitialized_intrinsic : $(Array<T>, RawPointer)
5454
/// (%array, %ptr) = destructure_tuple %result

include/swift/SILOptimizer/Differentiation/LinearMapInfo.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212
//
13-
// Linear map struct and branching trace enum information for differentation.
13+
// Linear map struct and branching trace enum information for differentiation.
1414
//
1515
//===----------------------------------------------------------------------===//
1616

@@ -33,7 +33,7 @@ namespace autodiff {
3333
class ADContext;
3434

3535
/// Linear map struct and branching trace enum information for an original
36-
/// function and and derivative function (JVP or VJP).
36+
/// function and derivative function (JVP or VJP).
3737
///
3838
/// Linear map structs contain all callee linear maps produced in a JVP/VJP
3939
/// basic block. A linear map struct is created for each basic block in the
@@ -81,7 +81,7 @@ class LinearMapInfo {
8181
/// corresponding linear map field declaration in the linear map struct.
8282
llvm::DenseMap<ApplyInst *, VarDecl *> linearMapFieldMap;
8383

84-
/// Mapping from predecessor-succcessor basic block pairs in the original
84+
/// Mapping from predecessor-successor basic block pairs in the original
8585
/// function to the corresponding branching trace enum case.
8686
llvm::DenseMap<std::pair<SILBasicBlock *, SILBasicBlock *>, EnumElementDecl *>
8787
branchingTraceEnumCases;

include/swift/SILOptimizer/Differentiation/TangentBuilder.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@ class TangentBuilder: public SILBuilder {
4848
IsInitialization_t isInit);
4949

5050
/// Emits an `AdditiveArithmetic.zero` of the given type. The type must be a
51-
/// loadable type, and must conform to `AddditiveArithmetic` or be a tuple
51+
/// loadable type, and must conform to `AdditiveArithmetic` or be a tuple
5252
/// thereof.
5353
SILValue emitZero(SILLocation loc, CanType type);
5454

5555
/// Emits an `AdditiveArithmetic.+=` for the given destination buffer and
5656
/// operand. The type of the buffer and the operand must conform to
57-
/// `AddditiveArithmetic` or be a tuple thereof. The operand will not be
57+
/// `AdditiveArithmetic` or be a tuple thereof. The operand will not be
5858
/// consumed.
5959
void emitInPlaceAdd(SILLocation loc, SILValue destinationBuffer,
6060
SILValue operand);
6161

6262
/// Emits an `AdditiveArithmetic.+` for the given operands. The type of the
63-
/// operands must conform to `AddditiveArithmetic` or be a tuple thereof. The
63+
/// operands must conform to `AdditiveArithmetic` or be a tuple thereof. The
6464
/// operands will not be consumed.
6565
void emitAddIntoBuffer(SILLocation loc, SILValue destinationBuffer,
6666
SILValue lhsAddress, SILValue rhsAddress);
6767

6868
/// Emits an `AdditiveArithmetic.+` for the given operands. The type of the
6969
/// operands must be a loadable type, and must conform to
70-
/// `AddditiveArithmetic` or be a tuple thereof. The operands will not be
70+
/// `AdditiveArithmetic` or be a tuple thereof. The operands will not be
7171
/// consumed.
7272
SILValue emitAdd(SILLocation loc, SILValue lhs, SILValue rhs);
7373
};

include/swift/SILOptimizer/PassManager/Passes.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
/// This macro follows the same conventions as PASS(Id, Tag, Description),
5959
/// but is used for function passes which are implemented in Swift.
6060
///
61-
/// No further code is need on the C++ side. On the swift swift a function
61+
/// No further code is need on the C++ side. On the swift function
6262
/// pass with the same name must be registered with 'registerPass()'.
6363
///
6464
#ifndef SWIFT_FUNCTION_PASS

include/swift/SILOptimizer/Utils/BasicBlockOptUtils.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ReachableBlocks {
5656
};
5757

5858
/// Computes the set of blocks from which a path to the return-block exists.
59-
/// This does not include pathes to a throw-block.
59+
/// This does not include paths to a throw-block.
6060
class ReachingReturnBlocks {
6161
BasicBlockWorklist worklist;
6262

@@ -182,7 +182,7 @@ class SinkAddressProjections {
182182
/// instead.
183183
///
184184
/// After cloning, call updateSSAAfterCloning. This is decoupled from cloning
185-
/// becaused some clients perform CFG edges updates after cloning but before
185+
/// because some clients perform CFG edges updates after cloning but before
186186
/// splitting CFG edges.
187187
class BasicBlockCloner : public SILCloner<BasicBlockCloner> {
188188
using SuperTy = SILCloner<BasicBlockCloner>;
@@ -195,7 +195,7 @@ class BasicBlockCloner : public SILCloner<BasicBlockCloner> {
195195
/// Will cloning require an SSA update?
196196
bool needsSSAUpdate = false;
197197

198-
/// Transient object for analyzing a single address projction chain. It's
198+
/// Transient object for analyzing a single address projection chain. It's
199199
/// state is reset each time analyzeAddressProjections is called.
200200
SinkAddressProjections sinkProj;
201201

include/swift/SILOptimizer/Utils/CanonicalOSSALifetime.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/// The "extended lifetime" of the references defined by 'def' transitively
2020
/// includes the uses of 'def' itself along with the uses of any copies of
2121
/// 'def'. Canonicalization provably minimizes the OSSA lifetime and its copies
22-
/// by rewriting all copies and destroys. Only consusming uses that are not on
22+
/// by rewriting all copies and destroys. Only consuming uses that are not on
2323
/// the liveness boundary require a copy.
2424
///
2525
/// Example #1: The last consuming use ends the reference lifetime.
@@ -281,7 +281,7 @@ class CanonicalizeOSSALifetime {
281281

282282
/// Record all interesting debug_value instructions here rather then treating
283283
/// them like a normal use. An interesting debug_value is one that may lie
284-
/// outisde the pruned liveness at the time it is discovered.
284+
/// outside the pruned liveness at the time it is discovered.
285285
llvm::SmallPtrSet<DebugValueInst *, 8> debugValues;
286286

287287
/// Visited set for general def-use traversal that prevents revisiting values.

include/swift/SILOptimizer/Utils/CanonicalizeInstruction.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
///
1919
/// Unlike SILCombine, these peepholes must work on 'raw' SIL form and should be
2020
/// limited to those necessary to aid in diagnostics and other mandatory
21-
/// pipelin/e passes. Optimization may only be done to the extent that it
21+
/// pipeline passes. Optimization may only be done to the extent that it
2222
/// neither interferes with diagnostics nor increases compile time.
2323
///
2424
//===----------------------------------------------------------------------===//
@@ -37,7 +37,7 @@ namespace swift {
3737
/// Abstract base class. Implements all canonicalization transforms. Extended by
3838
/// passes to be notified of each SIL modification.
3939
struct CanonicalizeInstruction {
40-
// May be overriden by passes.
40+
// May be overridden by passes.
4141
static constexpr const char *defaultDebugType = "sil-canonicalize";
4242
const char *debugType = defaultDebugType;
4343
DeadEndBlocks &deadEndBlocks;

include/swift/SILOptimizer/Utils/ConstExpr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class ConstExprStepEvaluator {
170170
/// Try evaluating an instruction and if the evaluation fails, skip the
171171
/// instruction and make it effects non constant. Note that it may not always
172172
/// be possible to skip an instruction whose evaluation failed and
173-
/// continue evalution (e.g. a conditional branch).
173+
/// continue evaluation (e.g. a conditional branch).
174174
/// See `evaluate` and `skipByMakingEffectsNonConstant` functions for their
175175
/// semantics.
176176
/// \param instI instruction to be evaluated in the current interpreter state.

include/swift/SILOptimizer/Utils/Devirtualize.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void getAllSubclasses(ClassHierarchyAnalysis *CHA,
5353
/// to the witness method.
5454
///
5555
/// \p Module SILModule
56-
/// \p AI ApplySite that applies a procotol method
56+
/// \p AI ApplySite that applies a protocol method
5757
/// \p F SILFunction with convention @convention(witness_method)
5858
/// \p CRef a concrete ProtocolConformanceRef
5959
SubstitutionMap getWitnessMethodSubstitutions(SILModule &Module, ApplySite AI,

include/swift/SILOptimizer/Utils/Existential.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace swift {
3030
/// : $@convention(method) <τ_0_0 where τ_0_0 : P, τ_0_0 : Q>
3131
/// (@guaranteed τ_0_0) -> @owned τ_0_0
3232
///
33-
/// When successfull, ConcreteExistentialInfo can be used to determine the
33+
/// When successful, ConcreteExistentialInfo can be used to determine the
3434
/// concrete type of the opened existential.
3535
struct OpenedArchetypeInfo {
3636
OpenedArchetypeType *OpenedArchetype = nullptr;
@@ -85,15 +85,15 @@ struct ConcreteExistentialInfo {
8585

8686
// Search for a recognized pattern in which the given existential value is
8787
// initialized to a concrete type. Constructs a valid ConcreteExistentialInfo
88-
// object if successfull.
88+
// object if successful.
8989
ConcreteExistentialInfo(SILValue existential, SILInstruction *user);
9090

9191
// This constructor initializes a ConcreteExistentialInfo based on already
9292
// known ConcreteType and ProtocolDecl pair.
9393
ConcreteExistentialInfo(SILValue existential, SILInstruction *user,
9494
CanType ConcreteType, ProtocolDecl *Protocol);
9595

96-
/// For scenerios where ConcreteExistentialInfo is created using a known
96+
/// For scenarios where ConcreteExistentialInfo is created using a known
9797
/// ConcreteType and ProtocolDecl, the ConcreteValue can be null.
9898
bool isValid() const { return ConcreteType && !ExistentialSubs.empty(); }
9999

include/swift/SILOptimizer/Utils/Generics.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ void checkCompletenessOfPrespecializations(SILModule &M);
409409
ApplySite replaceWithSpecializedFunction(ApplySite AI, SILFunction *NewF,
410410
const ReabstractionInfo &ReInfo);
411411

412-
/// Returns a SILFunction for the symbol specified by FunctioName if it is
412+
/// Returns a SILFunction for the symbol specified by FunctionName if it is
413413
/// visible to the current SILModule. This is used to link call sites to
414414
/// externally defined specialization and should only be used when the function
415415
/// body is not required for further optimization or inlining (-Onone).

include/swift/SILOptimizer/Utils/InstModCallbacks.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- InstModCallbacks.h - intruction modification callbacks -*- C++ -*-===//
1+
//===--- InstModCallbacks.h - instruction modification callbacks -*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -13,7 +13,7 @@
1313
/// InstModCallbacks: callbacks for instruction modification.
1414
///
1515
/// Callbacks are generally problematic because a pass cannot anticipate the
16-
/// state that SIL will be in when lower-level utilties invoke the
16+
/// state that SIL will be in when lower-level utilities invoke the
1717
/// callback. This creates implicit coupling across the layers of SIL utilities.
1818
///
1919
/// Alternatives:
@@ -98,7 +98,7 @@ struct InstModCallbacks {
9898
///
9999
/// instToDelete->eraseFromParent();
100100
///
101-
/// The reason this callback is reponsible for deleting the instruction is to
101+
/// The reason this callback is responsible for deleting the instruction is to
102102
/// interoperate more easily with
103103
/// CanonicalizeInstruction::killInstruction(). This allows updates to choose
104104
/// whether to happen before or after deleting the instruction and possibly

include/swift/SILOptimizer/Utils/InstructionDeleter.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/// is highly bug prone and infeasible.
2525
///
2626
/// 3. Fixup OSSA after deletion so SIL remains valid. Allowing OSSA to be
27-
/// invalid across API boundaries creates an intractible problem and makes it
27+
/// invalid across API boundaries creates an intractable problem and makes it
2828
/// impossible to design composable OSSA utilities.
2929
///
3030
/// Strategies for SIL transformation:
@@ -53,7 +53,7 @@
5353
/// instruction iterators during deletion. This is because deleting a single
5454
/// instruction may require deleting other instructions, such as debug info and
5555
/// scope-ending instructions. In OSSA code, deleting an instruction may even
56-
/// cause new instructions to be inserted. This is best handled by aquiring an
56+
/// cause new instructions to be inserted. This is best handled by acquiring an
5757
/// UpdatingInstructionIterator from the InstructionDeleter. This is usually
5858
/// done via InstructionDeleter::updatingRange(SILBasicBlock *).
5959
/// InstructionDeleter::getIteratorRegistry().makeIterator() offers more
@@ -64,7 +64,7 @@
6464
/// For data structures that contain instruction pointers and persist across
6565
/// calls to forceDelete* or cleanupDeadInstructions... There is no need to
6666
/// create an updating iterator. Simply check Instruction::isDeleted() when
67-
/// retriving a pointer from the data structure.
67+
/// retrieving a pointer from the data structure.
6868
///
6969
/// Using InstModCallbacks:
7070
///
@@ -192,7 +192,7 @@ class InstructionDeleter {
192192
/// lifetimes of the operands of \c inst once it is deleted. This function
193193
/// will not clean up dead code resulting from the instruction's removal. To
194194
/// do so, invoke the method \c cleanupDeadCode of this instance, once the SIL
195-
/// of the contaning function is made consistent.
195+
/// of the containing function is made consistent.
196196
///
197197
/// \pre the instruction to be deleted must not have any use other than
198198
/// incidental uses.
@@ -213,7 +213,7 @@ class InstructionDeleter {
213213
/// Clean up dead instructions that are tracked by this instance and all
214214
/// instructions that transitively become dead.
215215
///
216-
/// \pre the function contaning dead instructions must be consistent (i.e., no
216+
/// \pre the function containing dead instructions must be consistent (i.e., no
217217
/// under or over releases). Note that if \c forceDelete call leaves the
218218
/// function body in an inconsistent state, it needs to be made consistent
219219
/// before this method is invoked.

include/swift/SILOptimizer/Utils/KeyPathProjector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class KeyPathProjector {
6262
/// Projects the key path to an address. Sets up the projection,
6363
/// invokes the callback, then tears down the projection.
6464
/// \param accessType The access type of the projected address.
65-
/// \param callback A callback to invoke with the projected adddress.
65+
/// \param callback A callback to invoke with the projected address.
6666
/// The projected address is only valid from within \p callback.
6767
/// If accessType is Get or Modify, the projected addres is an
6868
/// initialized address type. If accessType is set, the projected

0 commit comments

Comments
 (0)