Skip to content

Commit 5aafc6d

Browse files
authored
[Polly] Fix typos discovered by codespell (#124545)
Patch created using the following command line: ```bash codespell polly --skip="*.pdf,polly/lib/External/*" --write-changes \ --ignore-words-list=couter,createor,distribues,doble,identty,indention,indx,olt,ore,padd,sais,te,theses ```
1 parent 62340ff commit 5aafc6d

Some content is hidden

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

50 files changed

+60
-60
lines changed

polly/docs/Architecture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ executed in the so-called **Inliner cycle**, This is again a set of **Scalar
2727
Simplification** passes, a set of **Simple Loop Optimizations**, and the
2828
**Inliner** itself. Even though these passes make up the majority of the LLVM
2929
pass pipeline, the primary goal of these passes is still canonicalization
30-
without loosing semantic information that complicates later analysis. As part of
30+
without losing semantic information that complicates later analysis. As part of
3131
the inliner cycle, the LLVM inliner step-by-step tries to inline functions, runs
3232
canonicalization passes to exploit newly exposed simplification opportunities,
3333
and then tries to inline the further simplified functions. Some simple loop

polly/docs/doxygen.cfg.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ HTML_STYLESHEET =
10661066
# defined cascading style sheet that is included after the standard style sheets
10671067
# created by doxygen. Using this option one can overrule certain style aspects.
10681068
# This is preferred over using HTML_STYLESHEET since it does not replace the
1069-
# standard style sheet and is therefor more robust against future updates.
1069+
# standard style sheet and is therefore more robust against future updates.
10701070
# Doxygen will copy the style sheet file to the output directory. For an example
10711071
# see the documentation.
10721072
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1950,7 +1950,7 @@ PREDEFINED =
19501950
EXPAND_AS_DEFINED =
19511951

19521952
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
1953-
# remove all refrences to function-like macros that are alone on a line, have an
1953+
# remove all references to function-like macros that are alone on a line, have an
19541954
# all uppercase name, and do not end with a semicolon. Such function macros are
19551955
# typically used for boiler-plate code, and will confuse the parser if not
19561956
# removed.

polly/include/polly/CodeGen/RuntimeDebugBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct RuntimeDebugBuilder {
118118

119119
/// Call fflush
120120
///
121-
/// @parma Builder The builder used to insert the code.
121+
/// @param Builder The builder used to insert the code.
122122
static void createFlush(PollyIRBuilder &Builder);
123123
};
124124
} // namespace polly

polly/include/polly/DependenceInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ struct DependenceAnalysis final : public AnalysisInfoMixin<DependenceAnalysis> {
211211

212212
/// Invalidate the dependence information and recompute it when needed
213213
/// again.
214-
/// May be required when the underlaying Scop was changed in a way that
214+
/// May be required when the underlying Scop was changed in a way that
215215
/// would add new dependencies (e.g. between new statement instances
216216
/// insierted into the SCoP) or intentionally breaks existing ones. It is
217217
/// not required when updating the schedule that conforms the existing
@@ -251,7 +251,7 @@ class DependenceInfo final : public ScopPass {
251251
const Dependences &recomputeDependences(Dependences::AnalysisLevel Level);
252252

253253
/// Invalidate the dependence information and recompute it when needed again.
254-
/// May be required when the underlaying Scop was changed in a way that would
254+
/// May be required when the underlying Scop was changed in a way that would
255255
/// add new dependencies (e.g. between new statement instances insierted into
256256
/// the SCoP) or intentionally breaks existing ones. It is not required when
257257
/// updating the schedule that conforms the existing dependencies.

polly/include/polly/ScopInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ class ScopStmt final {
14941494
/// @param Access The access to add.
14951495
/// @param Prepend If true, will add @p Access before all other instructions
14961496
/// (instead of appending it).
1497-
void addAccess(MemoryAccess *Access, bool Preprend = false);
1497+
void addAccess(MemoryAccess *Access, bool Prepend = false);
14981498

14991499
/// Remove a MemoryAccess from this statement.
15001500
///

polly/include/polly/Support/SCEVAffinator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class SCEVAffinator final : public llvm::SCEVVisitor<SCEVAffinator, PWACtx> {
5050
/// Check an <nsw> AddRec for the loop @p L is cached.
5151
bool hasNSWAddRecForLoop(llvm::Loop *L) const;
5252

53-
/// Return the LoopInfo used by thi object.
53+
/// Return the LoopInfo used by the object.
5454
llvm::LoopInfo *getLI() const { return &LI; }
5555

5656
private:

polly/include/polly/Support/ScopHelper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ using RecordedAssumptionsTy = llvm::SmallVector<Assumption, 8>;
8383
///
8484
/// This function will add the assumption to the RecordedAssumptions. This
8585
/// collection will be added (@see addAssumption) to the assumed context once
86-
/// all paramaters are known and the context is fully built.
86+
/// all parameters are known and the context is fully built.
8787
///
8888
/// @param RecordedAssumption container which keeps all recorded assumptions.
8989
/// @param Kind The assumption kind describing the underlying cause.
@@ -132,7 +132,7 @@ using BoxedLoopsSetTy = llvm::SetVector<const llvm::Loop *>;
132132
/// isNull(), isInstruction(), isLoad(), isStore(), ..., isMemTransferInst(),
133133
/// operator bool(), operator!()
134134
///
135-
/// The functions isa, cast, cast_or_null, dyn_cast are modeled te resemble
135+
/// The functions isa, cast, cast_or_null, dyn_cast are modeled to resemble
136136
/// those from llvm/Support/Casting.h. Partial template function specialization
137137
/// is currently not supported in C++ such that those cannot be used directly.
138138
/// (llvm::isa could, but then llvm:cast etc. would not have the expected

polly/lib/Analysis/ScopBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,7 @@ combineReductionType(MemoryAccess::ReductionType RT0,
25222522
return MemoryAccess::RT_NONE;
25232523
}
25242524

2525-
/// True if @p AllAccs intersects with @p MemAccs execpt @p LoadMA and @p
2525+
/// True if @p AllAccs intersects with @p MemAccs except @p LoadMA and @p
25262526
/// StoreMA
25272527
bool hasIntersectingAccesses(isl::set AllAccs, MemoryAccess *LoadMA,
25282528
MemoryAccess *StoreMA, isl::set Domain,

polly/lib/Analysis/ScopDetectionDiagnostic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static Statistic RejectStatistics[] = {
7171
SCOP_STAT(LoopOnlySomeLatches, "Not all loop latches in scop"),
7272
SCOP_STAT(FuncCall, "Function call with side effects"),
7373
SCOP_STAT(NonSimpleMemoryAccess,
74-
"Compilated access semantics (volatile or atomic)"),
74+
"Complicated access semantics (volatile or atomic)"),
7575
SCOP_STAT(Alias, "Base address aliasing"),
7676
SCOP_STAT(Other, ""),
7777
SCOP_STAT(IntToPtr, "Integer to pointer conversions"),

polly/lib/CodeGen/IslNodeBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ bool IslNodeBuilder::preloadInvariantEquivClass(
11591159
// For an equivalence class of invariant loads we pre-load the representing
11601160
// element with the unified execution context. However, we have to map all
11611161
// elements of the class to the one preloaded load as they are referenced
1162-
// during the code generation and therefor need to be mapped.
1162+
// during the code generation and therefore need to be mapped.
11631163
const MemoryAccessList &MAs = IAClass.InvariantAccesses;
11641164
if (MAs.empty())
11651165
return true;

0 commit comments

Comments
 (0)