Commit 3cfc2618 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove UnOp (as there is not get_unop_op/set_unop_op anymore)

parent 5d1afe77
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment