Skip to content

Commit

Permalink
Fix a ton of comment typos found by codespell. Patch by
Browse files Browse the repository at this point in the history
Luis Felipe Strano Moraes!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129558 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Apr 15, 2011
1 parent bcb8c6d commit 7a2bdde
Show file tree
Hide file tree
Showing 193 changed files with 266 additions and 267 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ else()
option(LLVM_ENABLE_ASSERTIONS "Enable assertions" ON)
endif()

# All options refered to from HandleLLVMOptions have to be specified
# All options referred to from HandleLLVMOptions have to be specified
# BEFORE this include, otherwise options will not be correctly set on
# first cmake run
include(config-ix)
Expand Down
2 changes: 1 addition & 1 deletion Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ $(DistZip) : $(TopDistDir)/.makedistdir
$(Verb) cd $(PROJ_OBJ_ROOT) ; $(ZIP) -rq $(DistZip) $(DistName)

dist :: $(DistTarGZip) $(DistTarBZ2) $(DistZip)
$(Echo) ===== DISTRIBUTION PACKAGING SUCESSFUL =====
$(Echo) ===== DISTRIBUTION PACKAGING SUCCESSFUL =====

DistCheckDir := $(PROJ_OBJ_ROOT)/_distcheckdir

Expand Down
2 changes: 1 addition & 1 deletion autoconf/m4/libtool.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
# We can hardcode non-existant directories.
# We can hardcode non-existent directories.
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
# If the only mechanism to avoid hardcoding is shlibpath_var, we
# have to relink, otherwise we might link with an installed library
Expand Down
2 changes: 1 addition & 1 deletion autoconf/m4/ltdl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
osf[[1234]]*)
# dlopen did load deplibs (at least at 4.x), but until the 5.x series,
# it did *not* use an RPATH in a shared library to find objects the
# library depends on, so we explictly say `no'.
# library depends on, so we explicitly say `no'.
libltdl_cv_sys_dlopen_deplibs=no
;;
osf5.0|osf5.0a|osf5.1)
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/LLVM-Config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function(explicit_map_components_to_libraries out_libs)
string(TOUPPER "${c}" capitalized)
list(FIND capitalized_libs LLVM${capitalized} lib_idx)
if( lib_idx LESS 0 )
# The component is unkown. Maybe is an ommitted target?
# The component is unknown. Maybe is an omitted target?
is_llvm_target_library(${c} iltl_result)
if( NOT iltl_result )
message(FATAL_ERROR "Library `${c}' not found in list of llvm libraries.")
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -11723,7 +11723,7 @@ else
osf[1234]*)
# dlopen did load deplibs (at least at 4.x), but until the 5.x series,
# it did *not* use an RPATH in a shared library to find objects the
# library depends on, so we explictly say `no'.
# library depends on, so we explicitly say `no'.
libltdl_cv_sys_dlopen_deplibs=no
;;
osf5.0|osf5.0a|osf5.1)
Expand Down
2 changes: 1 addition & 1 deletion docs/CommandGuide/llvm-bcanalyzer.pod
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ The number of bytes consumed by instructions in the function.

=item B<Average Instruction Size>

The average number of bytes consumed by the instructions in the funtion. This
The average number of bytes consumed by the instructions in the function. This
value is computed by dividing Instruction Size by Instructions.

=item B<Bytes Per Instruction>
Expand Down
4 changes: 2 additions & 2 deletions docs/CompilerDriver.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,13 @@ <h1><a class="toc-backref" href="#id14">Describing options</a></h1>
<tt class="docutils literal"><span class="pre">-std=c99</span></tt>. It is also allowed to use spaces instead of the equality
sign: <tt class="docutils literal"><span class="pre">-std</span> <span class="pre">c99</span></tt>. At most one occurrence is allowed.</li>
<li><tt class="docutils literal"><span class="pre">parameter_list_option</span></tt> - same as the above, but more than one option
occurence is allowed.</li>
occurrence is allowed.</li>
<li><tt class="docutils literal"><span class="pre">prefix_option</span></tt> - same as the parameter_option, but the option name and
argument do not have to be separated. Example: <tt class="docutils literal"><span class="pre">-ofile</span></tt>. This can be also
specified as <tt class="docutils literal"><span class="pre">-o</span> <span class="pre">file</span></tt>; however, <tt class="docutils literal"><span class="pre">-o=file</span></tt> will be parsed incorrectly
(<tt class="docutils literal"><span class="pre">=file</span></tt> will be interpreted as option value). At most one occurrence is
allowed.</li>
<li><tt class="docutils literal"><span class="pre">prefix_list_option</span></tt> - same as the above, but more than one occurence of
<li><tt class="docutils literal"><span class="pre">prefix_list_option</span></tt> - same as the above, but more than one occurrence of
the option is allowed; example: <tt class="docutils literal"><span class="pre">-lm</span> <span class="pre">-lpthread</span></tt>.</li>
<li><tt class="docutils literal"><span class="pre">alias_option</span></tt> - a special option type for creating aliases. Unlike other
option types, aliases are not allowed to have any properties besides the
Expand Down
2 changes: 1 addition & 1 deletion docs/ExceptionHandling.html
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@
style exception handling. The single parameter is a pointer to a
buffer populated by <a href="#llvm_eh_sjlj_setjmp">
<tt>llvm.eh.sjlj.setjmp</tt></a>. The frame pointer and stack pointer
are restored from the buffer, then control is transfered to the
are restored from the buffer, then control is transferred to the
destination address.</p>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/HistoricalNotes/2000-11-18-EarlyDesignIdeasResp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ Understood. :)

Yup, I think that this makes a lot of sense. I am still intrigued,
however, by the prospect of a minimally allocated VM representation... I
think that it could have definate advantages for certain applications
think that it could have definite advantages for certain applications
(think very small machines, like PDAs). I don't, however, think that our
initial implementations should focus on this. :)

Here are some other auxilliary goals that I think we should consider:
Here are some other auxiliary goals that I think we should consider:

1. Primary goal: Support a high performance dynamic compilation
system. This means that we have an "ideal" division of labor between
Expand Down
2 changes: 1 addition & 1 deletion docs/HistoricalNotes/2000-12-06-MeetingSummary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ IDEAS TO CONSIDER
packaged with the bytecodes themselves. As a conceptual implementation
idea, we could include an immediate dominator number for each basic block
in the LLVM bytecode program. Basic blocks could be numbered according
to the order of occurance in the bytecode representation.
to the order of occurrence in the bytecode representation.

2. Including loop header and body information. This would facilitate
detection of intervals and natural loops.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declaration and calling syntax.

Very true. If you're implementing an object oriented language, however,
remember that you have to do all the pointer to member function stuff
yourself.... so everytime you invoke a virtual method one is involved
yourself.... so every time you invoke a virtual method one is involved
(instead of having C++ hide it for you behind "syntactic sugar").

> And the old array syntax:
Expand Down
6 changes: 3 additions & 3 deletions docs/HistoricalNotes/2001-02-09-AdveCommentsResponse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ suggested, as specified below:

Very true. We should discuss this more, but my reasoning is more of a
consistency argument. There are VERY few instructions that can have all
of the types eliminated, and doing so when available unnecesarily makes
of the types eliminated, and doing so when available unnecessarily makes
the language more difficult to handle. Especially when you see 'int
%this' and 'bool %that' all over the place, I think it would be
disorienting to see:
Expand All @@ -44,7 +44,7 @@ branches).

No. This was something I was debating for a while, and didn't really feel
strongly about either way. It is common to switch on other types in HLL's
(for example signed int's are particually common), but in this case, all
(for example signed int's are particularly common), but in this case, all
that will be added is an additional 'cast' instruction. I removed that
from the spec.

Expand Down Expand Up @@ -160,7 +160,7 @@ that can be trivally translated into a conditional move...
> I agree that we need a static data space. Otherwise, emulating global
> data gets unnecessarily complex.

Definately. Also a later item though. :)
Definitely. Also a later item though. :)

> We once talked about adding a symbolic thread-id field to each
> ..
Expand Down
2 changes: 1 addition & 1 deletion docs/HistoricalNotes/2001-06-01-GCCOptimizations2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Does using GCC's backend buy us anything?
> optimization (step 16 in your list). Do you have a breakdown of that?

Not really. The irritating part of GCC is that it mixes it all up and
doesn't have a clean seperation of concerns. A lot of the "back end
doesn't have a clean separation of concerns. A lot of the "back end
optimization" happens right along with other data optimizations (ie, CSE
of machine specific things).

Expand Down
2 changes: 1 addition & 1 deletion docs/HistoricalNotes/2002-05-12-InstListChange.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ iterator to an instruction, which, given just an Instruction*, requires a
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 propogation), because they aren't actually sparse anymore,
simple constant propagation), because they aren't actually sparse anymore,
they have to traverse basic blocks to remove constant propogated
instructions.

Expand Down
4 changes: 2 additions & 2 deletions docs/LangRef.html
Original file line number Diff line number Diff line change
Expand Up @@ -2369,11 +2369,11 @@ <h5>Examples:</h5>
<a href="#terminators">terminator instruction</a>
if the terminator instruction has multiple successors and the instruction
is always executed when control transfers to one of the successors, and
may not be executed when control is transfered to another.</li>
may not be executed when control is transferred to another.</li>

<li>Additionally, an instruction also <i>control-depends</i> on a terminator
instruction if the set of instructions it otherwise depends on would be
different if the terminator had transfered control to a different
different if the terminator had transferred control to a different
successor.</li>

<li>Dependence is transitive.</li>
Expand Down
2 changes: 1 addition & 1 deletion examples/ExceptionDemo/ExceptionDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ void throwCppException (int32_t ignoreIt) {
typedef void (*OurExceptionThrowFunctType) (int32_t typeToThrow);

/// This is a test harness which runs test by executing generated
/// function with a type info type to throw. Harness wraps the excecution
/// function with a type info type to throw. Harness wraps the execution
/// of generated function in a C++ try catch clause.
/// @param engine execution engine to use for executing generated function.
/// This demo program expects this to be a JIT instance for demo
Expand Down
6 changes: 3 additions & 3 deletions include/llvm-c/Disassembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef void *LLVMDisasmContextRef;
* the call back in the DisInfo parameter. The instruction containing operand
* is at the PC parameter. For some instruction sets, there can be more than
* one operand with symbolic information. To determine the symbolic operand
* infomation for each operand, the bytes for the specific operand in the
* information for each operand, the bytes for the specific operand in the
* instruction are specified by the Offset parameter and its byte widith is the
* size parameter. For instructions sets with fixed widths and one symbolic
* operand per instruction, the Offset parameter will be zero and Size parameter
Expand Down Expand Up @@ -109,7 +109,7 @@ extern "C" {
* Create a disassembler for the TripleName. Symbolic disassembly is supported
* by passing a block of information in the DisInfo parameter and specifing the
* TagType and call back functions as described above. These can all be passed
* as NULL. If successfull this returns a disassembler context if not it
* as NULL. If successful this returns a disassembler context if not it
* returns NULL.
*/
extern LLVMDisasmContextRef
Expand All @@ -127,7 +127,7 @@ LLVMDisasmDispose(LLVMDisasmContextRef DC);

/**
* Disassmble a single instruction using the disassembler context specified in
* the parameter DC. The bytes of the instuction are specified in the parameter
* the parameter DC. The bytes of the instruction are specified in the parameter
* Bytes, and contains at least BytesSize number of bytes. The instruction is
* at the address specified by the PC parameter. If a valid instruction can be
* disassembled its string is returned indirectly in OutString which whos size
Expand Down
4 changes: 2 additions & 2 deletions include/llvm-c/lto.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ lto_get_version(void);


/**
* Returns the last error string or NULL if last operation was sucessful.
* Returns the last error string or NULL if last operation was successful.
*/
extern const char*
lto_get_error_message(void);
Expand Down Expand Up @@ -263,7 +263,7 @@ lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);

/**
* Generates code for all added modules into one native object file.
* On sucess returns a pointer to a generated mach-o/ELF buffer and
* On success returns a pointer to a generated mach-o/ELF buffer and
* length set to the buffer size. The buffer is owned by the
* lto_code_gen_t and will be freed when lto_codegen_dispose()
* is called, or lto_codegen_compile() is called again.
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/ADT/StringExtras.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void SplitString(StringRef Source,
SmallVectorImpl<StringRef> &OutFragments,
StringRef Delimiters = " \t\n\v\f\r");

/// HashString - Hash funtion for strings.
/// HashString - Hash function for strings.
///
/// This is the Bernstein hash function.
//
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/ADT/ilist.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ template<typename NodeTy> struct simplify_type<const ilist_iterator<NodeTy> > {
//===----------------------------------------------------------------------===//
//
/// iplist - The subset of list functionality that can safely be used on nodes
/// of polymorphic types, i.e. a heterogenous list with a common base class that
/// of polymorphic types, i.e. a heterogeneous list with a common base class that
/// holds the next/prev pointers. The only state of the list itself is a single
/// pointer to the head of the list.
///
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Analysis/InlineCost.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace llvm {
/// InlineCost - Represent the cost of inlining a function. This
/// supports special values for functions which should "always" or
/// "never" be inlined. Otherwise, the cost represents a unitless
/// amount; smaller values increase the likelyhood of the function
/// amount; smaller values increase the likelihood of the function
/// being inlined.
class InlineCost {
enum Kind {
Expand Down
4 changes: 2 additions & 2 deletions include/llvm/Analysis/RegionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ inline Region* RegionNode::getNodeAs<Region>() const {
/// two connections to the remaining graph. It can be used to analyze or
/// optimize parts of the control flow graph.
///
/// A <em> simple Region </em> is connected to the remaing graph by just two
/// A <em> simple Region </em> is connected to the remaining graph by just two
/// edges. One edge entering the Region and another one leaving the Region.
///
/// An <em> extended Region </em> (or just Region) is a subgraph that can be
Expand Down Expand Up @@ -443,7 +443,7 @@ class Region : public RegionNode {

/// @brief Move all direct child nodes of this Region to another Region.
///
/// @param To The Region the child nodes will be transfered to.
/// @param To The Region the child nodes will be transferred to.
void transferChildrenTo(Region *To);

/// @brief Verify if the region is a correct region.
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Analysis/RegionIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace llvm {
//===----------------------------------------------------------------------===//
/// @brief Hierachical RegionNode successor iterator.
/// @brief Hierarchical RegionNode successor iterator.
///
/// This iterator iterates over all successors of a RegionNode.
///
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Analysis/RegionPass.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class RegionPass : public Pass {
/// @brief Get a pass to print the LLVM IR in the region.
///
/// @param O The ouput stream to print the Region.
/// @param Banner The banner to seperate different printed passes.
/// @param Banner The banner to separate different printed passes.
///
/// @return The pass to print the LLVM IR in the region.
Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const;
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Bitcode/Archive.h
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class Archive {
/// to determine just enough information to create an ArchiveMember object
/// which is then inserted into the Archive object's ilist at the location
/// given by \p where.
/// @returns true if an error occured, false otherwise
/// @returns true if an error occurred, false otherwise
/// @brief Add a file to the archive.
bool addFileBefore(
const sys::Path& filename, ///< The file to be added
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/CodeGen/ISDOpcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ namespace ISD {
// RESULT, BOOL = [SU]ADDO(LHS, RHS) - Overflow-aware nodes for addition.
// These nodes take two operands: the normal LHS and RHS to the add. They
// produce two results: the normal result of the add, and a boolean that
// indicates if an overflow occured (*not* a flag, because it may be stored
// indicates if an overflow occurred (*not* a flag, because it may be stored
// to memory, etc.). If the type of the boolean is not i1 then the high
// bits conform to getBooleanContents.
// These nodes are generated from the llvm.[su]add.with.overflow intrinsics.
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/CodeGen/JITCodeEmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GlobalValue;
class Function;

/// JITCodeEmitter - This class defines two sorts of methods: those for
/// emitting the actual bytes of machine code, and those for emitting auxillary
/// emitting the actual bytes of machine code, and those for emitting auxiliary
/// structures, such as jump tables, relocations, etc.
///
/// Emission of machine code is complicated by the fact that we don't (in
Expand Down
4 changes: 2 additions & 2 deletions include/llvm/CodeGen/MachineCodeEmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Function;
class MCSymbol;

/// MachineCodeEmitter - This class defines two sorts of methods: those for
/// emitting the actual bytes of machine code, and those for emitting auxillary
/// emitting the actual bytes of machine code, and those for emitting auxiliary
/// structures, such as jump tables, relocations, etc.
///
/// Emission of machine code is complicated by the fact that we don't (in
Expand All @@ -54,7 +54,7 @@ class MachineCodeEmitter {
/// allocated for this code buffer.
uint8_t *BufferBegin, *BufferEnd;
/// CurBufferPtr - Pointer to the next byte of memory to fill when emitting
/// code. This is guranteed to be in the range [BufferBegin,BufferEnd]. If
/// code. This is guaranteed to be in the range [BufferBegin,BufferEnd]. If
/// this pointer is at BufferEnd, it will never move due to code emission, and
/// all code emission requests will be ignored (this is the buffer overflow
/// condition).
Expand Down
4 changes: 2 additions & 2 deletions include/llvm/CodeGen/ScheduleDAG.h
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,11 @@ namespace llvm {
/// will create a cycle.
bool WillCreateCycle(SUnit *SU, SUnit *TargetSU);

/// AddPred - Updates the topological ordering to accomodate an edge
/// AddPred - Updates the topological ordering to accommodate an edge
/// to be added from SUnit X to SUnit Y.
void AddPred(SUnit *Y, SUnit *X);

/// RemovePred - Updates the topological ordering to accomodate an
/// RemovePred - Updates the topological ordering to accommodate an
/// an edge to be removed from the specified node N from the predecessors
/// of the current node M.
void RemovePred(SUnit *M, SUnit *N);
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/CodeGen/SelectionDAG.h
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ class SelectionDAG {
/// These functions only replace all existing uses. It's possible that as
/// these replacements are being performed, CSE may cause the From node
/// to be given new uses. These new uses of From are left in place, and
/// not automatically transfered to To.
/// not automatically transferred to To.
///
void ReplaceAllUsesWith(SDValue From, SDValue Op,
DAGUpdateListener *UpdateListener = 0);
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/CodeGen/SelectionDAGISel.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class SelectionDAGISel : public MachineFunctionPass {
}

virtual SDValue RunSDNodeXForm(SDValue V, unsigned XFormNo) {
assert(0 && "Tblgen shoudl generate this!");
assert(0 && "Tblgen should generate this!");
return SDValue();
}

Expand Down
2 changes: 1 addition & 1 deletion include/llvm/CodeGen/SelectionDAGNodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ class TernarySDNode : public SDNode {


/// HandleSDNode - This class is used to form a handle around another node that
/// is persistant and is updated across invocations of replaceAllUsesWith on its
/// is persistent and is updated across invocations of replaceAllUsesWith on its
/// operand. This node should be directly created by end-users and not added to
/// the AllNodes list.
class HandleSDNode : public SDNode {
Expand Down
Loading

0 comments on commit 7a2bdde

Please sign in to comment.