blob: a2d23e7bcf9aabdb81adde7b5b570374be7e6a34 [file] [log] [blame]
Sean Silvad7fb3962012-12-05 00:26:32 +00001========================================
2Kaleidoscope: Code generation to LLVM IR
3========================================
4
5.. contents::
6 :local:
7
Sean Silvad7fb3962012-12-05 00:26:32 +00008Chapter 3 Introduction
9======================
10
11Welcome to Chapter 3 of the "`Implementing a language with
12LLVM <index.html>`_" tutorial. This chapter shows you how to transform
13the `Abstract Syntax Tree <LangImpl2.html>`_, built in Chapter 2, into
14LLVM IR. This will teach you a little bit about how LLVM does things, as
15well as demonstrate how easy it is to use. It's much more work to build
16a lexer and parser than it is to generate LLVM IR code. :)
17
18**Please note**: the code in this chapter and later require LLVM 2.2 or
19later. LLVM 2.1 and before will not work with it. Also note that you
20need to use a version of this tutorial that matches your LLVM release:
21If you are using an official LLVM release, use the version of the
22documentation included with your release or on the `llvm.org releases
23page <http://llvm.org/releases/>`_.
24
25Code Generation Setup
26=====================
27
28In order to generate LLVM IR, we want some simple setup to get started.
29First we define virtual code generation (codegen) methods in each AST
30class:
31
32.. code-block:: c++
33
34 /// ExprAST - Base class for all expression nodes.
35 class ExprAST {
36 public:
37 virtual ~ExprAST() {}
38 virtual Value *Codegen() = 0;
39 };
40
41 /// NumberExprAST - Expression class for numeric literals like "1.0".
42 class NumberExprAST : public ExprAST {
43 double Val;
Lang Hames59b0da82015-08-19 18:15:58 +000044
Sean Silvad7fb3962012-12-05 00:26:32 +000045 public:
Lang Hames09bf4c12015-08-18 18:11:06 +000046 NumberExprAST(double Val) : Val(Val) {}
Sean Silvad7fb3962012-12-05 00:26:32 +000047 virtual Value *Codegen();
48 };
49 ...
50
51The Codegen() method says to emit IR for that AST node along with all
52the things it depends on, and they all return an LLVM Value object.
53"Value" is the class used to represent a "`Static Single Assignment
54(SSA) <http://en.wikipedia.org/wiki/Static_single_assignment_form>`_
55register" or "SSA value" in LLVM. The most distinct aspect of SSA values
56is that their value is computed as the related instruction executes, and
57it does not get a new value until (and if) the instruction re-executes.
58In other words, there is no way to "change" an SSA value. For more
59information, please read up on `Static Single
60Assignment <http://en.wikipedia.org/wiki/Static_single_assignment_form>`_
61- the concepts are really quite natural once you grok them.
62
63Note that instead of adding virtual methods to the ExprAST class
64hierarchy, it could also make sense to use a `visitor
65pattern <http://en.wikipedia.org/wiki/Visitor_pattern>`_ or some other
66way to model this. Again, this tutorial won't dwell on good software
67engineering practices: for our purposes, adding a virtual method is
68simplest.
69
70The second thing we want is an "Error" method like we used for the
71parser, which will be used to report errors found during code generation
72(for example, use of an undeclared parameter):
73
74.. code-block:: c++
75
Lang Hames59b0da82015-08-19 18:15:58 +000076 Value *ErrorV(const char *Str) {
77 Error(Str);
78 return nullptr;
79 }
Sean Silvad7fb3962012-12-05 00:26:32 +000080
81 static Module *TheModule;
82 static IRBuilder<> Builder(getGlobalContext());
83 static std::map<std::string, Value*> NamedValues;
84
85The static variables will be used during code generation. ``TheModule``
86is the LLVM construct that contains all of the functions and global
87variables in a chunk of code. In many ways, it is the top-level
88structure that the LLVM IR uses to contain code.
89
90The ``Builder`` object is a helper object that makes it easy to generate
91LLVM instructions. Instances of the
Sean Silva78da1a52015-03-17 21:02:37 +000092`IRBuilder <http://llvm.org/doxygen/IRBuilder_8h-source.html>`_
Sean Silvad7fb3962012-12-05 00:26:32 +000093class template keep track of the current place to insert instructions
94and has methods to create new instructions.
95
96The ``NamedValues`` map keeps track of which values are defined in the
97current scope and what their LLVM representation is. (In other words, it
98is a symbol table for the code). In this form of Kaleidoscope, the only
99things that can be referenced are function parameters. As such, function
100parameters will be in this map when generating code for their function
101body.
102
103With these basics in place, we can start talking about how to generate
104code for each expression. Note that this assumes that the ``Builder``
105has been set up to generate code *into* something. For now, we'll assume
106that this has already been done, and we'll just use it to emit code.
107
108Expression Code Generation
109==========================
110
111Generating LLVM code for expression nodes is very straightforward: less
112than 45 lines of commented code for all four of our expression nodes.
113First we'll do numeric literals:
114
115.. code-block:: c++
116
117 Value *NumberExprAST::Codegen() {
118 return ConstantFP::get(getGlobalContext(), APFloat(Val));
119 }
120
121In the LLVM IR, numeric constants are represented with the
122``ConstantFP`` class, which holds the numeric value in an ``APFloat``
123internally (``APFloat`` has the capability of holding floating point
124constants of Arbitrary Precision). This code basically just creates
125and returns a ``ConstantFP``. Note that in the LLVM IR that constants
126are all uniqued together and shared. For this reason, the API uses the
127"foo::get(...)" idiom instead of "new foo(..)" or "foo::Create(..)".
128
129.. code-block:: c++
130
131 Value *VariableExprAST::Codegen() {
132 // Look this variable up in the function.
133 Value *V = NamedValues[Name];
134 return V ? V : ErrorV("Unknown variable name");
135 }
136
137References to variables are also quite simple using LLVM. In the simple
138version of Kaleidoscope, we assume that the variable has already been
139emitted somewhere and its value is available. In practice, the only
140values that can be in the ``NamedValues`` map are function arguments.
141This code simply checks to see that the specified name is in the map (if
142not, an unknown variable is being referenced) and returns the value for
143it. In future chapters, we'll add support for `loop induction
144variables <LangImpl5.html#for>`_ in the symbol table, and for `local
145variables <LangImpl7.html#localvars>`_.
146
147.. code-block:: c++
148
149 Value *BinaryExprAST::Codegen() {
150 Value *L = LHS->Codegen();
151 Value *R = RHS->Codegen();
Lang Hames59b0da82015-08-19 18:15:58 +0000152 if (!L || !R)
153 return nullptr;
Sean Silvad7fb3962012-12-05 00:26:32 +0000154
155 switch (Op) {
Lang Hames59b0da82015-08-19 18:15:58 +0000156 case '+':
157 return Builder.CreateFAdd(L, R, "addtmp");
158 case '-':
159 return Builder.CreateFSub(L, R, "subtmp");
160 case '*':
161 return Builder.CreateFMul(L, R, "multmp");
Sean Silvad7fb3962012-12-05 00:26:32 +0000162 case '<':
163 L = Builder.CreateFCmpULT(L, R, "cmptmp");
164 // Convert bool 0/1 to double 0.0 or 1.0
165 return Builder.CreateUIToFP(L, Type::getDoubleTy(getGlobalContext()),
166 "booltmp");
Lang Hames59b0da82015-08-19 18:15:58 +0000167 default:
168 return ErrorV("invalid binary operator");
Sean Silvad7fb3962012-12-05 00:26:32 +0000169 }
170 }
171
172Binary operators start to get more interesting. The basic idea here is
173that we recursively emit code for the left-hand side of the expression,
174then the right-hand side, then we compute the result of the binary
175expression. In this code, we do a simple switch on the opcode to create
176the right LLVM instruction.
177
178In the example above, the LLVM builder class is starting to show its
179value. IRBuilder knows where to insert the newly created instruction,
180all you have to do is specify what instruction to create (e.g. with
181``CreateFAdd``), which operands to use (``L`` and ``R`` here) and
182optionally provide a name for the generated instruction.
183
184One nice thing about LLVM is that the name is just a hint. For instance,
185if the code above emits multiple "addtmp" variables, LLVM will
186automatically provide each one with an increasing, unique numeric
187suffix. Local value names for instructions are purely optional, but it
188makes it much easier to read the IR dumps.
189
190`LLVM instructions <../LangRef.html#instref>`_ are constrained by strict
191rules: for example, the Left and Right operators of an `add
192instruction <../LangRef.html#i_add>`_ must have the same type, and the
193result type of the add must match the operand types. Because all values
194in Kaleidoscope are doubles, this makes for very simple code for add,
195sub and mul.
196
197On the other hand, LLVM specifies that the `fcmp
198instruction <../LangRef.html#i_fcmp>`_ always returns an 'i1' value (a
199one bit integer). The problem with this is that Kaleidoscope wants the
200value to be a 0.0 or 1.0 value. In order to get these semantics, we
201combine the fcmp instruction with a `uitofp
202instruction <../LangRef.html#i_uitofp>`_. This instruction converts its
203input integer into a floating point value by treating the input as an
204unsigned value. In contrast, if we used the `sitofp
205instruction <../LangRef.html#i_sitofp>`_, the Kaleidoscope '<' operator
206would return 0.0 and -1.0, depending on the input value.
207
208.. code-block:: c++
209
210 Value *CallExprAST::Codegen() {
211 // Look up the name in the global module table.
212 Function *CalleeF = TheModule->getFunction(Callee);
Lang Hames59b0da82015-08-19 18:15:58 +0000213 if (!CalleeF)
Sean Silvad7fb3962012-12-05 00:26:32 +0000214 return ErrorV("Unknown function referenced");
215
216 // If argument mismatch error.
217 if (CalleeF->arg_size() != Args.size())
218 return ErrorV("Incorrect # arguments passed");
219
Lang Hames59b0da82015-08-19 18:15:58 +0000220 std::vector<Value *> ArgsV;
Sean Silvad7fb3962012-12-05 00:26:32 +0000221 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
222 ArgsV.push_back(Args[i]->Codegen());
Lang Hames59b0da82015-08-19 18:15:58 +0000223 if (!ArgsV.back())
224 return nullptr;
Sean Silvad7fb3962012-12-05 00:26:32 +0000225 }
226
227 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
228 }
229
230Code generation for function calls is quite straightforward with LLVM.
231The code above initially does a function name lookup in the LLVM
232Module's symbol table. Recall that the LLVM Module is the container that
233holds all of the functions we are JIT'ing. By giving each function the
234same name as what the user specifies, we can use the LLVM symbol table
235to resolve function names for us.
236
237Once we have the function to call, we recursively codegen each argument
238that is to be passed in, and create an LLVM `call
239instruction <../LangRef.html#i_call>`_. Note that LLVM uses the native C
240calling conventions by default, allowing these calls to also call into
241standard library functions like "sin" and "cos", with no additional
242effort.
243
244This wraps up our handling of the four basic expressions that we have so
245far in Kaleidoscope. Feel free to go in and add some more. For example,
246by browsing the `LLVM language reference <../LangRef.html>`_ you'll find
247several other interesting instructions that are really easy to plug into
248our basic framework.
249
250Function Code Generation
251========================
252
253Code generation for prototypes and functions must handle a number of
254details, which make their code less beautiful than expression code
255generation, but allows us to illustrate some important points. First,
256lets talk about code generation for prototypes: they are used both for
257function bodies and external function declarations. The code starts
258with:
259
260.. code-block:: c++
261
262 Function *PrototypeAST::Codegen() {
263 // Make the function type: double(double,double) etc.
264 std::vector<Type*> Doubles(Args.size(),
265 Type::getDoubleTy(getGlobalContext()));
Lang Hames59b0da82015-08-19 18:15:58 +0000266 FunctionType *FT =
267 FunctionType::get(Type::getDoubleTy(getGlobalContext()), Doubles, false);
Sean Silvad7fb3962012-12-05 00:26:32 +0000268
Lang Hames59b0da82015-08-19 18:15:58 +0000269 Function *F =
270 Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
Sean Silvad7fb3962012-12-05 00:26:32 +0000271
272This code packs a lot of power into a few lines. Note first that this
273function returns a "Function\*" instead of a "Value\*". Because a
274"prototype" really talks about the external interface for a function
275(not the value computed by an expression), it makes sense for it to
276return the LLVM Function it corresponds to when codegen'd.
277
278The call to ``FunctionType::get`` creates the ``FunctionType`` that
279should be used for a given Prototype. Since all function arguments in
280Kaleidoscope are of type double, the first line creates a vector of "N"
281LLVM double types. It then uses the ``Functiontype::get`` method to
282create a function type that takes "N" doubles as arguments, returns one
283double as a result, and that is not vararg (the false parameter
284indicates this). Note that Types in LLVM are uniqued just like Constants
285are, so you don't "new" a type, you "get" it.
286
287The final line above actually creates the function that the prototype
288will correspond to. This indicates the type, linkage and name to use, as
289well as which module to insert into. "`external
290linkage <../LangRef.html#linkage>`_" means that the function may be
291defined outside the current module and/or that it is callable by
292functions outside the module. The Name passed in is the name the user
293specified: since "``TheModule``" is specified, this name is registered
294in "``TheModule``"s symbol table, which is used by the function call
295code above.
296
297.. code-block:: c++
298
299 // If F conflicted, there was already something named 'Name'. If it has a
300 // body, don't allow redefinition or reextern.
301 if (F->getName() != Name) {
302 // Delete the one we just made and get the existing one.
303 F->eraseFromParent();
304 F = TheModule->getFunction(Name);
305
306The Module symbol table works just like the Function symbol table when
307it comes to name conflicts: if a new function is created with a name
308that was previously added to the symbol table, the new function will get
309implicitly renamed when added to the Module. The code above exploits
310this fact to determine if there was a previous definition of this
311function.
312
313In Kaleidoscope, I choose to allow redefinitions of functions in two
314cases: first, we want to allow 'extern'ing a function more than once, as
315long as the prototypes for the externs match (since all arguments have
316the same type, we just have to check that the number of arguments
317match). Second, we want to allow 'extern'ing a function and then
318defining a body for it. This is useful when defining mutually recursive
319functions.
320
321In order to implement this, the code above first checks to see if there
322is a collision on the name of the function. If so, it deletes the
323function we just created (by calling ``eraseFromParent``) and then
324calling ``getFunction`` to get the existing function with the specified
325name. Note that many APIs in LLVM have "erase" forms and "remove" forms.
326The "remove" form unlinks the object from its parent (e.g. a Function
327from a Module) and returns it. The "erase" form unlinks the object and
328then deletes it.
329
330.. code-block:: c++
331
332 // If F already has a body, reject this.
333 if (!F->empty()) {
334 ErrorF("redefinition of function");
Lang Hames59b0da82015-08-19 18:15:58 +0000335 return nullptr;
Sean Silvad7fb3962012-12-05 00:26:32 +0000336 }
337
338 // If F took a different number of args, reject.
339 if (F->arg_size() != Args.size()) {
340 ErrorF("redefinition of function with different # args");
Lang Hames59b0da82015-08-19 18:15:58 +0000341 return nullptr;
Sean Silvad7fb3962012-12-05 00:26:32 +0000342 }
343 }
344
345In order to verify the logic above, we first check to see if the
346pre-existing function is "empty". In this case, empty means that it has
347no basic blocks in it, which means it has no body. If it has no body, it
348is a forward declaration. Since we don't allow anything after a full
349definition of the function, the code rejects this case. If the previous
350reference to a function was an 'extern', we simply verify that the
351number of arguments for that definition and this one match up. If not,
352we emit an error.
353
354.. code-block:: c++
355
356 // Set names for all arguments.
357 unsigned Idx = 0;
358 for (Function::arg_iterator AI = F->arg_begin(); Idx != Args.size();
359 ++AI, ++Idx) {
360 AI->setName(Args[Idx]);
361
362 // Add arguments to variable symbol table.
363 NamedValues[Args[Idx]] = AI;
364 }
Lang Hames59b0da82015-08-19 18:15:58 +0000365
Sean Silvad7fb3962012-12-05 00:26:32 +0000366 return F;
367 }
368
369The last bit of code for prototypes loops over all of the arguments in
370the function, setting the name of the LLVM Argument objects to match,
371and registering the arguments in the ``NamedValues`` map for future use
372by the ``VariableExprAST`` AST node. Once this is set up, it returns the
373Function object to the caller. Note that we don't check for conflicting
374argument names here (e.g. "extern foo(a b a)"). Doing so would be very
375straight-forward with the mechanics we have already used above.
376
377.. code-block:: c++
378
379 Function *FunctionAST::Codegen() {
380 NamedValues.clear();
381
382 Function *TheFunction = Proto->Codegen();
Lang Hames59b0da82015-08-19 18:15:58 +0000383 if (!TheFunction)
384 return nullptr;
Sean Silvad7fb3962012-12-05 00:26:32 +0000385
386Code generation for function definitions starts out simply enough: we
387just codegen the prototype (Proto) and verify that it is ok. We then
388clear out the ``NamedValues`` map to make sure that there isn't anything
389in it from the last function we compiled. Code generation of the
390prototype ensures that there is an LLVM Function object that is ready to
391go for us.
392
393.. code-block:: c++
394
395 // Create a new basic block to start insertion into.
396 BasicBlock *BB = BasicBlock::Create(getGlobalContext(), "entry", TheFunction);
397 Builder.SetInsertPoint(BB);
398
399 if (Value *RetVal = Body->Codegen()) {
400
401Now we get to the point where the ``Builder`` is set up. The first line
402creates a new `basic block <http://en.wikipedia.org/wiki/Basic_block>`_
403(named "entry"), which is inserted into ``TheFunction``. The second line
404then tells the builder that new instructions should be inserted into the
405end of the new basic block. Basic blocks in LLVM are an important part
406of functions that define the `Control Flow
407Graph <http://en.wikipedia.org/wiki/Control_flow_graph>`_. Since we
408don't have any control flow, our functions will only contain one block
409at this point. We'll fix this in `Chapter 5 <LangImpl5.html>`_ :).
410
411.. code-block:: c++
412
413 if (Value *RetVal = Body->Codegen()) {
414 // Finish off the function.
415 Builder.CreateRet(RetVal);
416
417 // Validate the generated code, checking for consistency.
418 verifyFunction(*TheFunction);
419
420 return TheFunction;
421 }
422
423Once the insertion point is set up, we call the ``CodeGen()`` method for
424the root expression of the function. If no error happens, this emits
425code to compute the expression into the entry block and returns the
426value that was computed. Assuming no error, we then create an LLVM `ret
427instruction <../LangRef.html#i_ret>`_, which completes the function.
428Once the function is built, we call ``verifyFunction``, which is
429provided by LLVM. This function does a variety of consistency checks on
430the generated code, to determine if our compiler is doing everything
431right. Using this is important: it can catch a lot of bugs. Once the
432function is finished and validated, we return it.
433
434.. code-block:: c++
435
436 // Error reading body, remove function.
437 TheFunction->eraseFromParent();
Lang Hames59b0da82015-08-19 18:15:58 +0000438 return nullptr;
Sean Silvad7fb3962012-12-05 00:26:32 +0000439 }
440
441The only piece left here is handling of the error case. For simplicity,
442we handle this by merely deleting the function we produced with the
443``eraseFromParent`` method. This allows the user to redefine a function
444that they incorrectly typed in before: if we didn't delete it, it would
445live in the symbol table, with a body, preventing future redefinition.
446
447This code does have a bug, though. Since the ``PrototypeAST::Codegen``
448can return a previously defined forward declaration, our code can
449actually delete a forward declaration. There are a number of ways to fix
450this bug, see what you can come up with! Here is a testcase:
451
452::
453
454 extern foo(a b); # ok, defines foo.
455 def foo(a b) c; # error, 'c' is invalid.
456 def bar() foo(1, 2); # error, unknown function "foo"
457
458Driver Changes and Closing Thoughts
459===================================
460
461For now, code generation to LLVM doesn't really get us much, except that
462we can look at the pretty IR calls. The sample code inserts calls to
463Codegen into the "``HandleDefinition``", "``HandleExtern``" etc
464functions, and then dumps out the LLVM IR. This gives a nice way to look
465at the LLVM IR for simple functions. For example:
466
467::
468
469 ready> 4+5;
470 Read top-level expression:
471 define double @0() {
472 entry:
473 ret double 9.000000e+00
474 }
475
476Note how the parser turns the top-level expression into anonymous
477functions for us. This will be handy when we add `JIT
478support <LangImpl4.html#jit>`_ in the next chapter. Also note that the
479code is very literally transcribed, no optimizations are being performed
480except simple constant folding done by IRBuilder. We will `add
481optimizations <LangImpl4.html#trivialconstfold>`_ explicitly in the next
482chapter.
483
484::
485
486 ready> def foo(a b) a*a + 2*a*b + b*b;
487 Read function definition:
488 define double @foo(double %a, double %b) {
489 entry:
490 %multmp = fmul double %a, %a
491 %multmp1 = fmul double 2.000000e+00, %a
492 %multmp2 = fmul double %multmp1, %b
493 %addtmp = fadd double %multmp, %multmp2
494 %multmp3 = fmul double %b, %b
495 %addtmp4 = fadd double %addtmp, %multmp3
496 ret double %addtmp4
497 }
498
499This shows some simple arithmetic. Notice the striking similarity to the
500LLVM builder calls that we use to create the instructions.
501
502::
503
504 ready> def bar(a) foo(a, 4.0) + bar(31337);
505 Read function definition:
506 define double @bar(double %a) {
507 entry:
508 %calltmp = call double @foo(double %a, double 4.000000e+00)
509 %calltmp1 = call double @bar(double 3.133700e+04)
510 %addtmp = fadd double %calltmp, %calltmp1
511 ret double %addtmp
512 }
513
514This shows some function calls. Note that this function will take a long
515time to execute if you call it. In the future we'll add conditional
516control flow to actually make recursion useful :).
517
518::
519
520 ready> extern cos(x);
521 Read extern:
522 declare double @cos(double)
523
524 ready> cos(1.234);
525 Read top-level expression:
526 define double @1() {
527 entry:
528 %calltmp = call double @cos(double 1.234000e+00)
529 ret double %calltmp
530 }
531
532This shows an extern for the libm "cos" function, and a call to it.
533
534.. TODO:: Abandon Pygments' horrible `llvm` lexer. It just totally gives up
535 on highlighting this due to the first line.
536
537::
538
539 ready> ^D
540 ; ModuleID = 'my cool jit'
541
542 define double @0() {
543 entry:
544 %addtmp = fadd double 4.000000e+00, 5.000000e+00
545 ret double %addtmp
546 }
547
548 define double @foo(double %a, double %b) {
549 entry:
550 %multmp = fmul double %a, %a
551 %multmp1 = fmul double 2.000000e+00, %a
552 %multmp2 = fmul double %multmp1, %b
553 %addtmp = fadd double %multmp, %multmp2
554 %multmp3 = fmul double %b, %b
555 %addtmp4 = fadd double %addtmp, %multmp3
556 ret double %addtmp4
557 }
558
559 define double @bar(double %a) {
560 entry:
561 %calltmp = call double @foo(double %a, double 4.000000e+00)
562 %calltmp1 = call double @bar(double 3.133700e+04)
563 %addtmp = fadd double %calltmp, %calltmp1
564 ret double %addtmp
565 }
566
567 declare double @cos(double)
568
569 define double @1() {
570 entry:
571 %calltmp = call double @cos(double 1.234000e+00)
572 ret double %calltmp
573 }
574
575When you quit the current demo, it dumps out the IR for the entire
576module generated. Here you can see the big picture with all the
577functions referencing each other.
578
579This wraps up the third chapter of the Kaleidoscope tutorial. Up next,
580we'll describe how to `add JIT codegen and optimizer
581support <LangImpl4.html>`_ to this so we can actually start running
582code!
583
584Full Code Listing
585=================
586
587Here is the complete code listing for our running example, enhanced with
588the LLVM code generator. Because this uses the LLVM libraries, we need
589to link them in. To do this, we use the
590`llvm-config <http://llvm.org/cmds/llvm-config.html>`_ tool to inform
591our makefile/command line about which options to use:
592
593.. code-block:: bash
594
595 # Compile
Lang Hamesaa0f6732014-11-06 00:31:04 +0000596 clang++ -g -O3 toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core` -o toy
Sean Silvad7fb3962012-12-05 00:26:32 +0000597 # Run
598 ./toy
599
600Here is the code:
601
Logan Chien855b17d2013-06-08 09:03:03 +0000602.. literalinclude:: ../../examples/Kaleidoscope/Chapter3/toy.cpp
603 :language: c++
Sean Silvad7fb3962012-12-05 00:26:32 +0000604
605`Next: Adding JIT and Optimizer Support <LangImpl4.html>`_
606