annotate doc/ir.rst @ 304:fa99f36fabb5

Fix docs
author Windel Bouwman
date Fri, 06 Dec 2013 12:45:02 +0100
parents 674789d9ff37
children 0615b5308710
rev   line source
299
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
1
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
2
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
3 IR-code
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
4 =======
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
5
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
6 Front ends generate this IR-code. Backends transform it into machine code.
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
7
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
8 The IR-code is implemented in the ir package.
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
9
304
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
10 .. autoclass:: ppci.ir.Module
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
11
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
12 .. autoclass:: ppci.ir.Function
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
13
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
14 .. autoclass:: ppci.ir.Block
299
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
15
304
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
16 A block contains a sequence of statements.
299
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
17
304
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
18 .. autoclass:: ppci.ir.Statement
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
19
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
20 .. autoclass:: ppci.ir.Jump
299
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
21
304
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
22 .. autoclass:: ppci.ir.CJump
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
23
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
24 Statements can contain again expressions.
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
25
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
26 .. autoclass:: ppci.ir.Expression
299
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
27
304
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
28 .. autoclass:: ppci.ir.Const
299
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
29
304
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
30 .. autoclass:: ppci.ir.Binop
299
674789d9ff37 Added a doc
Windel Bouwman
parents:
diff changeset
31
304
fa99f36fabb5 Fix docs
Windel Bouwman
parents: 299
diff changeset
32