aboutsummaryrefslogtreecommitdiffstats
path: root/awlsim/core/blocks.pxd.in
blob: b1283854d416007ebf6e18ab5b754347f2570238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from awlsim.common.cython_support cimport *
from awlsim.core.lstack cimport *

cdef class Block(object):
	cdef public int32_t index
	cdef public object sourceRef
	cdef public object __identHash

cdef class CodeBlock(Block):
	cdef public _Bool isOB
	cdef public _Bool isFC
	cdef public _Bool isFB
	cdef public _Bool isSystemBlock
	cdef public _Bool isLibraryBlock

	cdef public list insns
	cdef public uint32_t nrInsns
	cdef public list labels
	cdef public uint32_t nrLabels
	cdef public object interface
	cdef public uint32_t tempAllocation

cdef class StaticCodeBlock(CodeBlock):
	pass

cdef class OB(CodeBlock):
	cdef public LStackAllocator lstack

cdef class FB(CodeBlock):
	pass

cdef class FC(CodeBlock):
	pass
bues.ch cgit interface