Exemple #1
0
 def __init__(self, pm, name, ctx, lambdas, imports, global_decls):
     Transformation.__init__(self)
     self.passmanager = pm
     self.ctx = ctx
     self.prefix = name
     self.lambda_functions = lambdas
     self.imports = imports
     self.global_declarations = global_decls
Exemple #2
0
 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)
Exemple #3
0
 def __init__(self, pm, name, ctx, lambdas, imports, global_decls):
     Transformation.__init__(self)
     self.passmanager = pm
     self.ctx = ctx
     self.prefix = name
     self.lambda_functions = lambdas
     self.imports = imports
     self.global_declarations = global_decls
Exemple #4
0
 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)
 def __init__(self):
     Transformation.__init__(self, NormalizeTuples,
                             OptimizableComprehension)
 def __init__(self):
     Transformation.__init__(self, Globals)
     self.imports = {'__builtin__': '__builtin__'}
     self.to_import = set()
 def __init__(self):
     """Gather required information."""
     Transformation.__init__(self, PotentialIterator, Aliases)
     self.use_itertools = False
Exemple #8
0
 def __init__(self):
     Transformation.__init__(self)
Exemple #9
0
 def __init__(self):
     Transformation.__init__(self, Identifiers)
Exemple #10
0
 def __init__(self):
     Transformation.__init__(self, RangeValues)
Exemple #11
0
 def __init__(self):
     Transformation.__init__(self)
     self.imports = set()
     self.symbols = dict()
 def __init__(self):
     """ Basic initialiser. """
     Transformation.__init__(self)
     self.imports = set()
     self.symbols = dict()
Exemple #13
0
 def __init__(self):
     Transformation.__init__(self, Aliases, PureExpressions)
Exemple #14
0
 def __init__(self, pm, ctx, global_declarations):
     Transformation.__init__(self)
     self.ctx = ctx
     self.passmanager = pm
     self.global_declarations = global_declarations
Exemple #15
0
 def __init__(self):
     Transformation.__init__(self, PotentialIterator)
Exemple #16
0
 def __init__(self):
     Transformation.__init__(self, Aliases, ConstantExpressions,
                             PureExpressions)
Exemple #17
0
 def __init__(self):
     Transformation.__init__(self, Locals, Globals)
Exemple #18
0
 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()
Exemple #19
0
 def __init__(self):
     Transformation.__init__(self)
     self.imports = set()
     self.symbols = dict()
 def __init__(self):
     self.renamings = dict()
     Transformation.__init__(self, Identifiers)
 def __init__(self):
     Transformation.__init__(self, PotentialIterator, Aliases)
Exemple #22
0
 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()
Exemple #23
0
 def __init__(self):
     Transformation.__init__(self, NormalizeTuples, PotentialIterator)
Exemple #24
0
 def __init__(self):
     Transformation.__init__(self, OptimizableComprehension)
Exemple #25
0
 def __init__(self):
     """ Basic initialiser. """
     Transformation.__init__(self)
     self.imports = set()
     self.symbols = dict()
 def __init__(self):
     Transformation.__init__(self, Globals)
     self.imports = set()
     self.to_import = set()
 def __init__(self):
     """ Gather required information. """
     Transformation.__init__(self, PotentialIterator, Aliases)
 def __init__(self):
     Transformation.__init__(self, RangeValues)
 def __init__(self, pm, ctx, global_declarations):
     Transformation.__init__(self)
     self.ctx = ctx
     self.passmanager = pm
     self.global_declarations = global_declarations
Exemple #30
0
 def __init__(self):
     Transformation.__init__(self, NormalizeTuples,
                             OptimizableComprehension)
Exemple #31
0
 def __init__(self, pm, ctx):
     Transformation.__init__(self)
     self.ctx = ctx
     self.passmanager = pm
     self.global_declarations = pm.gather(GlobalDeclarations, ctx.module)
Exemple #32
0
 def __init__(self):
     self.count = 0
     Transformation.__init__(self)
Exemple #33
0
 def __init__(self):
     Transformation.__init__(self, UseDefChains, Ancestors, Aliases,
                             RangeValues, Identifiers)
     self.loops_mod = dict()
Exemple #34
0
 def __init__(self):
     Transformation.__init__(self)
Exemple #35
0
 def __init__(self):
     Transformation.__init__(self, UseDefChain, Ancestors, Aliases,
                             RangeValues, Identifiers)
     self.loops_mod = dict()
Exemple #36
0
 def __init__(self):
     """ Gather required information. """
     Transformation.__init__(self, PotentialIterator, Aliases)
 def __init__(self):
     Transformation.__init__(self, Globals, Ancestors)
     self.imports = {'builtins': 'builtins'}
     self.to_import = set()
 def __init__(self):
     Transformation.__init__(self, Globals)
     self.imports = {'__builtin__': '__builtin__'}
     self.to_import = set()
Exemple #39
0
 def __init__(self):
     Transformation.__init__(self, TypeDependencies,
                             OrderedGlobalDeclarations)
 def __init__(self):
     Transformation.__init__(self, ConstantExpressions)
Exemple #41
0
 def __init__(self):
     Transformation.__init__(self, Identifiers)
 def __init__(self, pm, ctx):
     Transformation.__init__(self)
     self.ctx = ctx
     self.passmanager = pm
     self.global_declarations = pm.gather(GlobalDeclarations, ctx.module)
Exemple #43
0
 def __init__(self):
     Transformation.__init__(self, NormalizeTuples,
                             PotentialIterator)
Exemple #44
0
 def __init__(self):
     self.renamings = dict()
     Transformation.__init__(self, Identifiers)
Exemple #45
0
 def __init__(self, pm, ctx, global_declarations):
     Transformation.__init__(self)
     self.ctx = ctx
     self.passmanager = pm
     self.global_declarations = global_declarations
     self.identifiers = set(self.global_declarations.keys())
Exemple #46
0
 def __init__(self):
     Transformation.__init__(self, ConstantExpressions)
 def __init__(self):
     Transformation.__init__(self, Globals)
     self.imports = set()
     self.to_import = set()
 def __init__(self):
     self.count = 0
     Transformation.__init__(self)
 def __init__(self):
     Transformation.__init__(self, OptimizableComprehension)