diff python/testir.py @ 180:25a0753da4cf

Re-organized files
author Windel Bouwman
date Thu, 09 May 2013 17:35:19 +0200
parents 460db5669efa
children de3a68f677a5
line wrap: on
line diff
--- a/python/testir.py	Sat May 04 18:50:36 2013 +0200
+++ b/python/testir.py	Thu May 09 17:35:19 2013 +0200
@@ -52,7 +52,7 @@
 if __name__ == '__main__':
    diag = ppci.DiagnosticsManager()
    builder = c3.Builder(diag)
-   cgenx86 = x86.X86CodeGen(diag)
+   cgenx86 = x86.X86CodeGenSimple(diag)
    ir = builder.build(testsrc)
    diag.printErrors(testsrc)
    #ir.dump()
@@ -65,8 +65,6 @@
    dcd.run(ir)
    clr.run(ir)
    m2r.run(ir)
-   for bb in ir.BasicBlocks:
-      bb.dag = x86.Dag(bb)
    #ir.dump()
 
    # Dump a graphiz file:
@@ -81,3 +79,5 @@
       f.write('BITS 64\n')
       for a in asm:
          f.write(str(a) + '\n')
+         print(a)
+