本文整理汇总了Python中pythran.passmanager.Transformation.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Transformation.__init__方法的具体用法?Python Transformation.__init__怎么用?Python Transformation.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pythran.passmanager.Transformation
的用法示例。
在下文中一共展示了Transformation.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self, pm, name, ctx, lambda_functions, imports):
Transformation.__init__(self)
self.passmanager = pm
self.ctx = ctx
self.prefix = name
self.lambda_functions = lambda_functions
self.imports = imports
self.global_declarations = pm.gather(GlobalDeclarations, ctx.module)
示例2: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self, RangeValues)
示例3: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self, OptimizableComprehension)
示例4: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self)
# Remap self.visit_XXXX() to self.attach_data() generic method
for s in GatherOMPData.statements:
setattr(self, "visit_" + s, self.attach_data)
self.current = list()
示例5: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self, ConstantExpressions)
示例6: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
""" Gather required information. """
Transformation.__init__(self, PotentialIterator, Aliases)
示例7: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
self.count = 0
Transformation.__init__(self)
示例8: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self, UseDefChains, Ancestors, Aliases,
RangeValues, Identifiers)
self.loops_mod = dict()
示例9: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self, pm, ctx, global_declarations):
Transformation.__init__(self)
self.ctx = ctx
self.passmanager = pm
self.global_declarations = global_declarations
示例10: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self, PotentialIterator, Aliases)
示例11: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self)
self.imports = set()
self.symbols = dict()
示例12: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
""" Basic initialiser. """
Transformation.__init__(self)
self.imports = set()
self.symbols = dict()
示例13: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self, Globals)
self.imports = {'__builtin__': '__builtin__'}
self.to_import = set()
示例14: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self, NormalizeTuples,
OptimizableComprehension)
示例15: __init__
# 需要导入模块: from pythran.passmanager import Transformation [as 别名]
# 或者: from pythran.passmanager.Transformation import __init__ [as 别名]
def __init__(self):
Transformation.__init__(self, TypeDependencies,
OrderedGlobalDeclarations)