From aa3d6242cfb3a21922f7ec13cbd5b65303a51f80 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 23 Apr 2011 00:30:22 +0000 Subject: docs: Introduce cascading style
and

continued on .

Section Example

Section preamble.

Subsection Example

Subsection body

FIXME: Care H5 better. llvm-svn: 130040 --- llvm/docs/tutorial/OCamlLangImpl7.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'llvm/docs/tutorial/OCamlLangImpl7.html') diff --git a/llvm/docs/tutorial/OCamlLangImpl7.html b/llvm/docs/tutorial/OCamlLangImpl7.html index aebc81c08e7..51986b51a11 100644 --- a/llvm/docs/tutorial/OCamlLangImpl7.html +++ b/llvm/docs/tutorial/OCamlLangImpl7.html @@ -45,7 +45,7 @@

Chapter 7 Introduction

-
+

Welcome to Chapter 7 of the "Implementing a language with LLVM" tutorial. In chapters 1 through 6, we've built a very @@ -73,7 +73,7 @@ support for this, though the way it works is a bit unexpected for some.

Why is this a hard problem?

-
+

To understand why mutable variables cause complexities in SSA construction, @@ -147,7 +147,7 @@ logic.

Memory in LLVM

-
+

The 'trick' here is that while LLVM does require all register values to be in SSA form, it does not require (or permit) memory objects to be in SSA form. @@ -328,7 +328,7 @@ variables now!

Mutable Variables in Kaleidoscope

-
+

Now that we know the sort of problem we want to tackle, lets see what this looks like in the context of our little Kaleidoscope language. We're going to @@ -384,7 +384,7 @@ Kaleidoscope to support new variable definitions.

Adjusting Existing Variables for Mutation

-
+

The symbol table in Kaleidoscope is managed at code generation time by the @@ -673,7 +673,7 @@ we'll add the assignment operator.

New Assignment Operator

-
+

With our current framework, adding a new assignment operator is really simple. We will parse it just like any other binary operator, but handle it @@ -774,7 +774,7 @@ add this next!

User-defined Local Variables

-
+

Adding var/in is just like any other other extensions we made to Kaleidoscope: we extend the lexer, the parser, the AST and the code generator. @@ -956,7 +956,7 @@ anywhere in sight.

Full Code Listing

-
+

Here is the complete code listing for our running example, enhanced with mutable -- cgit v1.2.3