Skip to content

Commit

Permalink
Merge pull request #117 from coneoproject/new_opt_level
Browse files Browse the repository at this point in the history
New optimisation level 'Ov'
  • Loading branch information
miklos1 committed Apr 28, 2017
2 parents bdbc5fc + 20820a0 commit 029d2af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coffee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from coffee.system import set_architecture, set_compiler, set_isa


__all__ = ['options', 'initialized', 'O0', 'O1', 'O2', 'O3']
__all__ = ['options', 'initialized', 'O0', 'O1', 'O2', 'O3', 'Ov']


class Options(dict):
Expand Down Expand Up @@ -174,6 +174,7 @@ def set_opt_level(optlevel):
O1 = OptimizationLevel('O1', rewrite=1)
O2 = OptimizationLevel('O2', rewrite=2, dead_ops_elimination=True)
O3 = OptimizationLevel('O3', align_pad=True, **O2)
Ov = OptimizationLevel('Ov', align_pad=True)

initialized = False

Expand Down

0 comments on commit 029d2af

Please sign in to comment.