Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/f/l/flypy-HEAD/flypy/compiler/optimizations/reg2mem.py   flypy(Download)
from __future__ import print_function, division, absolute_import
from pykit.transform import reg2mem
from .utils import update_context
 
# TODO: This is not an optimization, move it elsewhere?
 
    if context is not None:
        update_context(env, env, vars)
        update_context(env, env, loads)

src/f/l/flypy-HEAD/flypy/compiler/optimizations/inlining.py   flypy(Download)
from pykit.transform import inline
 
from .utils import update_context
 
#===------------------------------------------------------------------===
def inline_callee(func, call, env, callee_env):
    valuemap = inline.inline(func, call)
    update_context(env, callee_env, valuemap)
    return valuemap