Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
b40ce510
Commit
b40ce510
authored
Apr 02, 2011
by
Stefan Behnel
Committed by
Vitja Makarov
May 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speed up flow control implementation by compiling it
parent
e8d1cca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
Cython/Compiler/FlowControl.pxd
Cython/Compiler/FlowControl.pxd
+44
-0
No files found.
Cython/Compiler/FlowControl.pxd
0 → 100644
View file @
b40ce510
cimport
cython
cdef
class
ControlBlock
:
cdef
public
set
children
cdef
public
set
parents
cdef
public
set
positions
cdef
public
list
stats
cdef
public
dict
gen
cdef
public
set
bounded
cdef
public
dict
input
cdef
public
dict
output
cpdef
bint
empty
(
self
)
cpdef
detach
(
self
)
cpdef
add_child
(
self
,
block
)
cdef
class
ExitBlock
(
ControlBlock
):
cpdef
bint
empty
(
self
)
cdef
class
ControlFlow
:
cdef
public
set
blocks
cdef
public
set
entries
cdef
public
list
loops
cdef
public
list
exceptions
cdef
public
ControlBlock
entry_point
cdef
public
ExitBlock
exit_point
cdef
public
ControlBlock
block
cpdef
newblock
(
self
,
parent
=*
)
cpdef
nextblock
(
self
,
parent
=*
)
cpdef
bint
is_tracked
(
self
,
entry
)
cpdef
mark_position
(
self
,
node
)
cpdef
mark_assignment
(
self
,
lhs
,
rhs
,
entry
=*
)
cpdef
mark_argument
(
self
,
lhs
,
rhs
,
entry
)
cpdef
mark_deletion
(
self
,
node
,
entry
)
cpdef
mark_reference
(
self
,
node
,
entry
)
cpdef
normalize
(
self
)
cdef
class
Uninitialized
:
pass
@
cython
.
locals
(
dirty
=
bint
,
block
=
ControlBlock
,
parent
=
ControlBlock
)
cdef
check_definitions
(
ControlFlow
flow
,
dict
compiler_directives
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment