mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Documentation: Perform automated correction of common typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -183,7 +183,7 @@ Value *VariableExprAST::Codegen() {
|
||||
</div>
|
||||
|
||||
<p>References to variables are also quite simple using LLVM. In the simple version
|
||||
of Kaleidoscope, we assume that the variable has already been emited somewhere
|
||||
of Kaleidoscope, we assume that the variable has already been emitted somewhere
|
||||
and its value is available. In practice, the only values that can be in the
|
||||
<tt>NamedValues</tt> map are function arguments. This
|
||||
code simply checks to see that the specified name is in the map (if not, an
|
||||
@@ -362,7 +362,7 @@ definition of this function.</p>
|
||||
first, we want to allow 'extern'ing a function more than once, as long as the
|
||||
prototypes for the externs match (since all arguments have the same type, we
|
||||
just have to check that the number of arguments match). Second, we want to
|
||||
allow 'extern'ing a function and then definining a body for it. This is useful
|
||||
allow 'extern'ing a function and then defining a body for it. This is useful
|
||||
when defining mutually recursive functions.</p>
|
||||
|
||||
<p>In order to implement this, the code above first checks to see if there is
|
||||
|
@@ -209,7 +209,7 @@ requires a pointer to the <tt>Module</tt> (through the <tt>ModuleProvider</tt>)
|
||||
to construct itself. Once it is set up, we use a series of "add" calls to add
|
||||
a bunch of LLVM passes. The first pass is basically boilerplate, it adds a pass
|
||||
so that later optimizations know how the data structures in the program are
|
||||
layed out. The "<tt>TheExecutionEngine</tt>" variable is related to the JIT,
|
||||
laid out. The "<tt>TheExecutionEngine</tt>" variable is related to the JIT,
|
||||
which we will get to in the next section.</p>
|
||||
|
||||
<p>In this case, we choose to add 4 optimization passes. The passes we chose
|
||||
|
@@ -159,7 +159,7 @@ uses "the foo::get(..)" idiom instead of "new foo(..)" or "foo::Create(..)".</p>
|
||||
</div>
|
||||
|
||||
<p>References to variables are also quite simple using LLVM. In the simple
|
||||
version of Kaleidoscope, we assume that the variable has already been emited
|
||||
version of Kaleidoscope, we assume that the variable has already been emitted
|
||||
somewhere and its value is available. In practice, the only values that can be
|
||||
in the <tt>Codegen.named_values</tt> map are function arguments. This code
|
||||
simply checks to see that the specified name is in the map (if not, an unknown
|
||||
@@ -323,7 +323,7 @@ code above.</p>
|
||||
first, we want to allow 'extern'ing a function more than once, as long as the
|
||||
prototypes for the externs match (since all arguments have the same type, we
|
||||
just have to check that the number of arguments match). Second, we want to
|
||||
allow 'extern'ing a function and then definining a body for it. This is useful
|
||||
allow 'extern'ing a function and then defining a body for it. This is useful
|
||||
when defining mutually recursive functions.</p>
|
||||
|
||||
<div class="doc_code">
|
||||
|
@@ -224,7 +224,7 @@ requires a pointer to the <tt>the_module</tt> (through the
|
||||
<tt>the_module_provider</tt>) to construct itself. Once it is set up, we use a
|
||||
series of "add" calls to add a bunch of LLVM passes. The first pass is
|
||||
basically boilerplate, it adds a pass so that later optimizations know how the
|
||||
data structures in the program are layed out. The
|
||||
data structures in the program are laid out. The
|
||||
"<tt>the_execution_engine</tt>" variable is related to the JIT, which we will
|
||||
get to in the next section.</p>
|
||||
|
||||
|
Reference in New Issue
Block a user