Scaffolding for defining settings.

Settings can be defined globally or per-ISA. They are available to code through
a generated Settings struct with accessor methods per setting.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-05 13:38:43 -07:00
parent c679a2e746
commit 1925c1b2c2
7 changed files with 310 additions and 2 deletions

13
meta/cretonne/settings.py Normal file
View File

@@ -0,0 +1,13 @@
"""
Cretonne shared settings.
This module defines settings are are relevant for all code generators.
"""
from . import SettingGroup, BoolSetting
group = SettingGroup('shared')
enable_simd = BoolSetting("Enable the use of SIMD instructions", default=True)
group.close(globals())