Skip to content
Snippets Groups Projects
Commit d9866baf authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Rename preambles.py to generation.py

It is the genral code generation infrastructure after all.
parent 0a8a7cd5
No related branches found
No related tags found
No related merge requests found
from dune.perftool.preambles import dune_preamble, dune_symbol, loop_domain, loopy_iname, temporary_variable, loopy_c_instruction, loopy_expr_instruction from dune.perftool.generation import dune_preamble, dune_symbol, loop_domain, loopy_iname, temporary_variable, loopy_c_instruction, loopy_expr_instruction
from dune.perftool.pdelab_names import name from dune.perftool.pdelab_names import name
@dune_symbol @dune_symbol
...@@ -36,7 +36,7 @@ def quadrature_iname(): ...@@ -36,7 +36,7 @@ def quadrature_iname():
quadrature_loop_domain("q") quadrature_loop_domain("q")
return "q" return "q"
from dune.perftool.preambles import _dune_decorator_factory, CInstructionCacheItem from dune.perftool.generation import _dune_decorator_factory, CInstructionCacheItem
quadrature_preamble = _dune_decorator_factory(cache_item_type=CInstructionCacheItem, inames=quadrature_iname()) quadrature_preamble = _dune_decorator_factory(cache_item_type=CInstructionCacheItem, inames=quadrature_iname())
@dune_symbol @dune_symbol
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment