You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
"""
|
|
|
|
Cretonne shared settings.
|
|
|
|
|
|
|
|
This module defines settings are are relevant for all code generators.
|
|
|
|
"""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
from . import SettingGroup, BoolSetting, EnumSetting
|
|
|
|
|
|
|
|
group = SettingGroup('shared')
|
|
|
|
|
|
|
|
opt_level = EnumSetting(
|
|
|
|
"""
|
|
|
|
Optimization level:
|
|
|
|
|
|
|
|
- default: Very profitable optimizations enabled, none slow.
|
|
|
|
- best: Enable all optimizations
|
|
|
|
- fastest: Optimize for compile time by disabling most optimizations.
|
|
|
|
""",
|
|
|
|
'default', 'best', 'fastest')
|
|
|
|
|
|
|
|
enable_simd = BoolSetting(
|
|
|
|
"""Enable the use of SIMD instructions.""",
|
|
|
|
default=True)
|
|
|
|
|
|
|
|
group.close(globals())
|