Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
8c9921a1
Commit
8c9921a1
authored
Dec 08, 2011
by
Matthias Braun
Browse files
clarify some node comments
parent
52e7ec50
Changes
1
Show whitespace changes
Inline
Side-by-side
scripts/ir_spec.py
View file @
8c9921a1
...
...
@@ -31,8 +31,10 @@ class Add(Binop):
class
Alloc
(
Op
):
"""allocates a block of memory.
It can be specified whether the variable should be allocated to the stack
or to the heap."""
It can be specified whether the memory should be allocated to the stack
or to the heap.
Allocates memory for one or more objects (depending on value on count input).
"""
ins
=
[
(
"mem"
,
"memory dependency"
),
(
"count"
,
"number of objects to allocate"
),
...
...
@@ -47,7 +49,7 @@ class Alloc(Op):
dict
(
name
=
"type"
,
type
=
"ir_type*"
,
comment
=
"type of the
allocated variabl
e"
,
comment
=
"type of the
objects to allocat
e"
,
),
dict
(
name
=
"where"
,
...
...
@@ -425,7 +427,7 @@ class Conv(Unop):
attr_struct
=
"conv_attr"
class
CopyB
(
Op
):
"""Copies a block of memory"""
"""Copies a block of memory
with statically known size/type.
"""
ins
=
[
(
"mem"
,
"memory dependency"
),
(
"dst"
,
"destination address"
),
...
...
@@ -503,7 +505,9 @@ class End(Op):
singleton
=
True
class
Eor
(
Binop
):
"""returns the result of a bitwise exclusive or operation of its operands"""
"""returns the result of a bitwise exclusive or operation of its operands.
This is also known as the Xor operation."""
flags
=
[
"commutative"
]
class
Free
(
Op
):
...
...
@@ -531,7 +535,10 @@ class Free(Op):
attr_struct
=
"free_attr"
class
Id
(
Op
):
"""Returns its operand unchanged."""
"""Returns its operand unchanged.
This is mainly used when exchanging nodes. Usually you shouldn't see Id
nodes since the getters/setters for node inputs skip them automatically."""
ins
=
[
(
"pred"
,
"the value which is returned unchanged"
)
]
...
...
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