Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(30)  |  Call(10)  |  Derive(0)  |  Import(20)

src/p/a/parakeet-0.23.2/parakeet/transforms/clone_function.py   parakeet(Download)
from .. import names 
from .. syntax import (TypedFn, Var, Const, Attribute, Index, PrimCall, 
                       If, Assign, While, ExprStmt, Return, ForLoop, ParFor,  
                       Slice, Struct, Tuple, TupleProj, Cast, Alloc, Closure, 
                       Map, Reduce, Scan, IndexMap, IndexReduce, IndexScan, 
    elif c is Struct: 
      new_args = self.transform_expr_list(expr.args)
      return Struct(args = new_args, type = expr.type)
 
    elif c is TupleProj: 

src/p/a/parakeet-HEAD/parakeet/transforms/clone_function.py   parakeet(Download)
from .. import names 
from .. syntax import (TypedFn, Var, Const, Attribute, Index, PrimCall, 
                       If, Assign, While, ExprStmt, Return, ForLoop, ParFor,  
                       Slice, Struct, Tuple, TupleProj, Cast, Alloc, Closure, 
                       Map, Reduce, Scan, IndexMap, IndexReduce, IndexScan, 
    elif c is Struct: 
      new_args = self.transform_expr_list(expr.args)
      return Struct(args = new_args, type = expr.type)
 
    elif c is TupleProj: 

src/p/a/parakeet-0.23.2/parakeet/transforms/lower_structs.py   parakeet(Download)
from .. ndtypes import (ScalarT, ArrayT, make_array_type, TupleT, 
                        Int32, Int64,  ptr_type, PtrT, closure_type)  
from .. syntax import Struct, Assign, Const, Index, Attribute, Var, Tuple, Alloc  
from .. syntax.helpers import const_int, const_tuple, zero
from transform import Transform
  def transform_Tuple(self, expr):
    struct_args = self.transform_expr_list(expr.elts)
    return Struct(struct_args, type = expr.type)
 
  def transform_TupleProj(self, expr):
  def transform_Slice(self, expr):
    struct_args = self.transform_expr_list([expr.start, expr.stop, expr.step])
    return Struct(struct_args, type = expr.type)
 
  def transform_Assign(self, stmt):
    closure_id = closure_type.id_of_closure_type(expr.type)
    closure_id_node = Const(closure_id, type = Int64)
    return Struct([closure_id_node] + closure_args, type = expr.type)
 
  def transform_ClosureElt(self, expr):
        (rank, strides_rank)
    array_t = make_array_type(data_t.elt_type, rank)
    return Struct([data, shape, strides, offset, nelts], type = array_t)
 
  def transform_ArrayView(self, expr):

src/p/a/parakeet-HEAD/parakeet/transforms/lower_structs.py   parakeet(Download)
from .. ndtypes import (ScalarT, ArrayT, make_array_type, TupleT, 
                        Int32, Int64,  ptr_type, PtrT, closure_type)  
from .. syntax import Struct, Assign, Const, Index, Attribute, Var, Tuple, Alloc  
from .. syntax.helpers import const_int, const_tuple, zero
from transform import Transform
  def transform_Tuple(self, expr):
    struct_args = self.transform_expr_list(expr.elts)
    return Struct(struct_args, type = expr.type)
 
  def transform_TupleProj(self, expr):
  def transform_Slice(self, expr):
    struct_args = self.transform_expr_list([expr.start, expr.stop, expr.step])
    return Struct(struct_args, type = expr.type)
 
  def transform_Assign(self, stmt):
    closure_id = closure_type.id_of_closure_type(expr.type)
    closure_id_node = Const(closure_id, type = Int64)
    return Struct([closure_id_node] + closure_args, type = expr.type)
 
  def transform_ClosureElt(self, expr):
        (rank, strides_rank)
    array_t = make_array_type(data_t.elt_type, rank)
    return Struct([data, shape, strides, offset, nelts], type = array_t)
 
  def transform_ArrayView(self, expr):

src/p/a/parakeet-0.23.2/parakeet/analysis/syntax_visitor.py   parakeet(Download)
from .. syntax import (Expr, Assign, ExprStmt, ForLoop, If, Return, While, Comment, ParFor, 
                       TypedFn, UntypedFn,  Closure, ClosureElt, Select,  
                       Attribute, Const, Index, PrimCall, Tuple, Var, 
                       Alloc, Array, Call, Struct, Shape, Strides, Range, Ravel, Transpose,
                       AllocArray, ArrayView, Cast, Slice, TupleProj, TypeValue,  

src/p/a/parakeet-HEAD/parakeet/analysis/syntax_visitor.py   parakeet(Download)
from .. syntax import (Expr, Assign, ExprStmt, ForLoop, If, Return, While, Comment, ParFor, 
                       TypedFn, UntypedFn,  Closure, ClosureElt, Select,  
                       Attribute, Const, Index, PrimCall, Tuple, Var, 
                       Alloc, Array, Call, Struct, Shape, Strides, Range, Ravel, Transpose,
                       AllocArray, ArrayView, Cast, Slice, TupleProj, TypeValue,  

src/p/a/parakeet-0.23.2/parakeet/transforms/simplify.py   parakeet(Download)
from .. ndtypes import ArrayT,  ClosureT, NoneT, ScalarT, TupleT, ImmutableT, NoneType, SliceT, FnT
 
from .. syntax import (AllocArray, Assign, ExprStmt, Expr, 
                       Const, Var, Tuple, TupleProj, Closure, ClosureElt, Cast,
                       Slice, Index, Array, ArrayView, Attribute, Struct, Select, 

src/p/a/parakeet-HEAD/parakeet/transforms/simplify.py   parakeet(Download)
                        SliceT, FnT, FloatT)
 
from .. syntax import (AllocArray, Assign, ExprStmt, Expr, 
                       Const, Var, Tuple, TupleProj, Closure, ClosureElt, Cast,
                       Slice, Index, Array, ArrayView, Attribute, Struct, Select, 

src/p/a/parakeet-0.23.2/parakeet/transforms/transform.py   parakeet(Download)
from .. analysis import verify
from .. builder import Builder  
from .. syntax import (Expr, If, Assign, While, Return, ExprStmt, ForLoop, Comment, ParFor, 
                       Var, Tuple, Index, Attribute, Const, PrimCall, Struct, Alloc, Cast,  
                       TupleProj, Slice, ArrayView, Call, TypedFn,  AllocArray, Len, UntypedFn,  

src/p/a/parakeet-HEAD/parakeet/transforms/transform.py   parakeet(Download)
from .. analysis import verify
from .. builder import Builder  
from .. syntax import (Expr, If, Assign, While, Return, ExprStmt, ForLoop, Comment, ParFor, 
                       Var, Tuple, Index, Attribute, Const, PrimCall, Struct, Alloc, Cast,  
                       TupleProj, Slice, ArrayView, Call, TypedFn,  AllocArray, Len, UntypedFn,  

  1 | 2  Next