Commit d7b85c6a authored by Matthias Braun's avatar Matthias Braun
Browse files

gen_ir: make pinned="no" the default

parent abd2d8db
...@@ -18,7 +18,6 @@ class Binop(object): ...@@ -18,7 +18,6 @@ class Binop(object):
("right", "second operand"), ("right", "second operand"),
] ]
op_index = 0 op_index = 0
pinned = "no"
arity_override = "oparity_binary" arity_override = "oparity_binary"
@abstract @abstract
...@@ -27,7 +26,6 @@ class EntConst(object): ...@@ -27,7 +26,6 @@ class EntConst(object):
"""Symbolic constant that represents an aspect of an entity""" """Symbolic constant that represents an aspect of an entity"""
name = "entconst" name = "entconst"
flags = [ "constlike", "start_block" ] flags = [ "constlike", "start_block" ]
pinned = "no"
attrs = [ attrs = [
Attribute("entity", type="ir_entity*", comment="entity to operate on"), Attribute("entity", type="ir_entity*", comment="entity to operate on"),
] ]
...@@ -40,7 +38,6 @@ class TypeConst(object): ...@@ -40,7 +38,6 @@ class TypeConst(object):
"""A symbolic constant that represents an aspect of a type""" """A symbolic constant that represents an aspect of a type"""
name = "typeconst" name = "typeconst"
flags = [ "constlike", "start_block" ] flags = [ "constlike", "start_block" ]
pinned = "no"
attrs = [ attrs = [
Attribute("type", type="ir_type*", comment="type to operate on"), Attribute("type", type="ir_type*", comment="type to operate on"),
] ]
...@@ -360,7 +357,6 @@ class Const: ...@@ -360,7 +357,6 @@ class Const:
"""Returns a constant value.""" """Returns a constant value."""
flags = [ "constlike", "start_block" ] flags = [ "constlike", "start_block" ]
mode = "get_tarval_mode(tarval)" mode = "get_tarval_mode(tarval)"
pinned = "no"
attrs = [ attrs = [
Attribute("tarval", type="ir_tarval*", Attribute("tarval", type="ir_tarval*",
comment="constant value (a tarval object)"), comment="constant value (a tarval object)"),
...@@ -372,7 +368,6 @@ class Const: ...@@ -372,7 +368,6 @@ class Const:
class Conv: class Conv:
"""Converts values between modes""" """Converts values between modes"""
flags = [] flags = []
pinned = "no"
ins = [ ins = [
("op", "operand") ("op", "operand")
] ]
...@@ -382,7 +377,6 @@ class Bitcast: ...@@ -382,7 +377,6 @@ class Bitcast:
"""Converts a value between modes with different arithmetics but same """Converts a value between modes with different arithmetics but same
number of bits by reinterpreting the bits in the new mode""" number of bits by reinterpreting the bits in the new mode"""
flags = [] flags = []
pinned = "no"
ins = [ ins = [
("op", "operand") ("op", "operand")
] ]
...@@ -409,7 +403,6 @@ class CopyB: ...@@ -409,7 +403,6 @@ class CopyB:
Attribute("flags", type="ir_cons_flags", Attribute("flags", type="ir_cons_flags",
comment="specifies volatility"), comment="specifies volatility"),
] ]
pinned = "no"
@op @op
class Div: class Div:
...@@ -485,7 +478,6 @@ class Id: ...@@ -485,7 +478,6 @@ class Id:
ins = [ ins = [
("pred", "the value which is returned unchanged") ("pred", "the value which is returned unchanged")
] ]
pinned = "no"
flags = [] flags = []
@op @op
...@@ -549,7 +541,6 @@ class Load: ...@@ -549,7 +541,6 @@ class Load:
class Minus: class Minus:
"""returns the additive inverse of its operand""" """returns the additive inverse of its operand"""
flags = [] flags = []
pinned = "no"
ins = [ ins = [
("op", "operand") ("op", "operand")
] ]
...@@ -605,7 +596,6 @@ class Mux: ...@@ -605,7 +596,6 @@ class Mux:
("true", "selected if sel input is true"), ("true", "selected if sel input is true"),
] ]
flags = [] flags = []
pinned = "no"
@op @op
class NoMem: class NoMem:
...@@ -619,7 +609,6 @@ class NoMem: ...@@ -619,7 +609,6 @@ class NoMem:
class Not: class Not:
"""returns the bitwise complement of a value. Works for boolean values, too.""" """returns the bitwise complement of a value. Works for boolean values, too."""
flags = [] flags = []
pinned = "no"
ins = [ ins = [
("op", "operand") ("op", "operand")
] ]
...@@ -670,7 +659,6 @@ class Proj: ...@@ -670,7 +659,6 @@ class Proj:
("pred", "the tuple value from which a part is extracted"), ("pred", "the tuple value from which a part is extracted"),
] ]
flags = [] flags = []
pinned = "no"
block = "get_nodes_block(irn_pred)" block = "get_nodes_block(irn_pred)"
usesGraph = False usesGraph = False
attrs = [ attrs = [
...@@ -720,7 +708,6 @@ class Sel: ...@@ -720,7 +708,6 @@ class Sel:
] ]
flags = [] flags = []
mode = "mode_P" mode = "mode_P"
pinned = "no"
attrs = [ attrs = [
Attribute("type", type="ir_type*", Attribute("type", type="ir_type*",
comment="array type"), comment="array type"),
...@@ -738,7 +725,6 @@ class Member: ...@@ -738,7 +725,6 @@ class Member:
] ]
flags = [] flags = []
mode = "mode_P" mode = "mode_P"
pinned = "no"
attrs = [ attrs = [
Attribute("entity", type="ir_entity*", Attribute("entity", type="ir_entity*",
comment="entity which is selected"), comment="entity which is selected"),
...@@ -839,7 +825,6 @@ class Sync: ...@@ -839,7 +825,6 @@ class Sync:
entrance by unifying the memories with a preceding Sync operation.""" entrance by unifying the memories with a preceding Sync operation."""
mode = "mode_M" mode = "mode_M"
flags = [] flags = []
pinned = "no"
arity = "dynamic" arity = "dynamic"
input_name = "pred" input_name = "pred"
...@@ -856,7 +841,6 @@ class Tuple: ...@@ -856,7 +841,6 @@ class Tuple:
arity = "variable" arity = "variable"
input_name = "pred" input_name = "pred"
mode = "mode_T" mode = "mode_T"
pinned = "no"
flags = [] flags = []
@op @op
......
...@@ -41,9 +41,7 @@ def inout_contains(l, name): ...@@ -41,9 +41,7 @@ def inout_contains(l, name):
return False return False
def verify_node(node): def verify_node(node):
if not hasattr(node, "pinned"): if node.pinned not in ["yes", "no", "exception"]:
print("%s: NO PINNED SET" % node.name)
elif node.pinned not in ["yes", "no", "exception"]:
print("%s: UNKNOWN PINNED MODE: %s" % (node.name, node.pinned)) print("%s: UNKNOWN PINNED MODE: %s" % (node.name, node.pinned))
if not hasattr(node, "flags"): if not hasattr(node, "flags"):
...@@ -98,6 +96,7 @@ def Output(name, comment=None): ...@@ -98,6 +96,7 @@ def Output(name, comment=None):
def setnodedefaults(node): def setnodedefaults(node):
setldefault(node, "name", node.__name__) setldefault(node, "name", node.__name__)
setdefault(node, "pinned", "no")
if isAbstract(node): if isAbstract(node):
return return
......
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