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/LangImpl7.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'llvm/docs/tutorial/LangImpl7.html') diff --git a/llvm/docs/tutorial/LangImpl7.html b/llvm/docs/tutorial/LangImpl7.html index fc49d070476..b2b26bdfa07 100644 --- a/llvm/docs/tutorial/LangImpl7.html +++ b/llvm/docs/tutorial/LangImpl7.html @@ -41,7 +41,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 @@ -69,7 +69,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, @@ -143,7 +143,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. @@ -324,7 +324,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 @@ -380,7 +380,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 @@ -649,7 +649,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 @@ -746,7 +746,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. @@ -979,7 +979,7 @@ anywhere in sight.

Full Code Listing

-
+

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