annotate python/cortexm3desc.py @ 272:e64bae57cda8

refactor ir
author Windel Bouwman
date Sat, 31 Aug 2013 17:58:54 +0200
parents 444b9df2ed99
children
rev   line source
261
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
1
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
2 # Patterns
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
3
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
4 import cortexm3
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
5 import ir
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
6
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
7
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
8 {
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
9 """
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
10 v3 = const1
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
11 v1 = v2 + v3
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
12 [v1] = v3
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
13 """: cortexm3.
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
14 }
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
15
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
16
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
17