From 3cd5ca6c72787fa4e5fd2b8d880545f8863f35d1 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 11 Oct 2006 06:30:10 +0000 Subject: Put code example inside of "doc_code" divisions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30876 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CodeGenerator.html | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'docs/CodeGenerator.html') diff --git a/docs/CodeGenerator.html b/docs/CodeGenerator.html index 405c57b345..ebee043315 100644 --- a/docs/CodeGenerator.html +++ b/docs/CodeGenerator.html @@ -1227,7 +1227,16 @@ defining instruction is encountered.

-

To Be Written

+ +

We now have the information available to perform the liver intervals analysis +and build the live intervals themselves. We start off by numbering the basic +blocks and machine instructions. We then handle the "live-in" values. These +are in physical registers, so the physical register is assumed to be killed by +the end of the basic block. Live intervals for virtual registers are computed +for some ordering of the machine instructions [1,N]. A live interval +is an interval [i,j), where 1 <= i <= j < N, for which a +variable is live.

+
@@ -1239,14 +1248,14 @@ defining instruction is encountered.

-

The Register Allocation problem consists in mapping a -program Pv, that can use an unbounded number of -virtual registers, to a program Pp that contains a -finite (possibly small) number of physical registers. Each target -architecture has a different number of physical registers. If the -number of physical registers is not enough to accommodate all the -virtual registers, some of them will have to be mapped into -memory. These virtuals are called spilled virtuals.

+

The Register Allocation problem consists in mapping a program +Pv, that can use an unbounded number of virtual +registers, to a program Pp that contains a finite +(possibly small) number of physical registers. Each target architecture has +a different number of physical registers. If the number of physical +registers is not enough to accommodate all the virtual registers, some of +them will have to be mapped into memory. These virtuals are called +spilled virtuals.

-- cgit v1.2.3-70-g09d2