Mercurial > lcfOS
comparison test/testcg.py @ 309:68b01c8abf8a
Added start of ir read and write
author | Windel Bouwman |
---|---|
date | Fri, 13 Dec 2013 13:51:02 +0100 |
parents | 6753763d3bec |
children | e30a77ae359b |
comparison
equal
deleted
inserted
replaced
308:2e7f55319858 | 309:68b01c8abf8a |
---|---|
7 | 7 |
8 | 8 |
9 def genTestFunction(): | 9 def genTestFunction(): |
10 m = ir.Module('tst') | 10 m = ir.Module('tst') |
11 f = ir.Function('tst') | 11 f = ir.Function('tst') |
12 m.addFunction(f) | 12 m.add_function(f) |
13 return m, f, f.entry | 13 return m, f, f.entry |
14 | 14 |
15 | 15 |
16 class testCodeGeneration(unittest.TestCase): | 16 class testCodeGeneration(unittest.TestCase): |
17 def setUp(self): | 17 def setUp(self): |