Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
3cfc2618
Commit
3cfc2618
authored
Apr 29, 2013
by
Matthias Braun
Browse files
remove UnOp (as there is not get_unop_op/set_unop_op anymore)
parent
5d1afe77
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/ir_spec.py
View file @
3cfc2618
...
...
@@ -8,16 +8,6 @@ from spec_util import abstract, op
name
=
"ir"
@
abstract
@
op
class
Unop
(
object
):
"""Unary nodes have exactly 1 input"""
name
=
"unop"
ins
=
[
(
"op"
,
"operand"
),
]
pinned
=
"no"
@
abstract
@
op
class
Binop
(
object
):
...
...
@@ -420,9 +410,13 @@ class Const:
attrs_name
=
"con"
@
op
class
Conv
(
Unop
)
:
class
Conv
:
"""Converts values between modes"""
flags
=
[]
flags
=
[]
pinned
=
"no"
ins
=
[
(
"op"
,
"operand"
)
]
@
op
class
CopyB
:
...
...
@@ -644,9 +638,13 @@ class Load:
throws_init
=
"(flags & cons_throws_exception) != 0"
@
op
class
Minus
(
Unop
)
:
class
Minus
:
"""returns the additive inverse of its operand"""
flags
=
[]
flags
=
[]
pinned
=
"no"
ins
=
[
(
"op"
,
"operand"
)
]
@
op
class
Mod
:
...
...
@@ -716,9 +714,13 @@ class NoMem:
singleton
=
True
@
op
class
Not
(
Unop
)
:
class
Not
:
"""returns the bitwise complement of a value. Works for boolean values, too."""
flags
=
[]
flags
=
[]
pinned
=
"no"
ins
=
[
(
"op"
,
"operand"
)
]
@
op
class
Or
(
Binop
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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