llvm.org GIT mirror llvm / c2e48fb
Further typo fixes in kaleidoscope tutorial. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263697 91177308-0d34-0410-b5e6-96231b3b80d8 Wilfred Hughes 3 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
257257 Mutable Variables in Kaleidoscope
258258 =================================
259259
260 Now that we know the sort of problem we want to tackle, lets see what
260 Now that we know the sort of problem we want to tackle, let's see what
261261 this looks like in the context of our little Kaleidoscope language.
262262 We're going to add two features:
263263
305305 The symbol table in Kaleidoscope is managed at code generation time by
306306 the '``NamedValues``' map. This map currently keeps track of the LLVM
307307 "Value\*" that holds the double value for the named variable. In order
308 to support mutation, we need to change this slightly, so that it
308 to support mutation, we need to change this slightly, so that
309309 ``NamedValues`` holds the *memory location* of the variable in question.
310310 Note that this change is a refactoring: it changes the structure of the
311311 code, but does not (by itself) change the behavior of the compiler. All
631631 actually mutate the value! Okay, we have now officially implemented our
632632 goal: getting this to work requires SSA construction in the general
633633 case. However, to be really useful, we want the ability to define our
634 own local variables, lets add this next!
634 own local variables, let's add this next!
635635
636636 User-defined Local Variables
637637 ============================