From 20820a001f5016f58deb94394f5700a8b330e6ae Mon Sep 17 00:00:00 2001 From: Tianjiao Sun Date: Wed, 29 Mar 2017 16:21:16 +0100 Subject: [PATCH] Add new optimisation level "Ov" - which only does vectorisation but not loop motion --- coffee/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coffee/__init__.py b/coffee/__init__.py index 1face273..f6a42734 100644 --- a/coffee/__init__.py +++ b/coffee/__init__.py @@ -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): @@ -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