Commit 8558f0f3 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

irspec: Turn the negative flag noconstructor into a positive one called constructor.

parent 9c38a6c8
...@@ -99,7 +99,7 @@ class Anchor: ...@@ -99,7 +99,7 @@ class Anchor:
flags = [ "dump_noblock" ] flags = [ "dump_noblock" ]
pinned = "yes" pinned = "yes"
singleton = True singleton = True
noconstructor = True constructor = False
customSerializer = True customSerializer = True
@op @op
...@@ -163,7 +163,7 @@ class ASM: ...@@ -163,7 +163,7 @@ class ASM:
] ]
# constructor is written manually at the moment, because of the clobbers+ # constructor is written manually at the moment, because of the clobbers+
# constraints arrays needing special handling (2 arguments for 1 attribute) # constraints arrays needing special handling (2 arguments for 1 attribute)
noconstructor = True constructor = False
@op @op
class Bad: class Bad:
...@@ -197,7 +197,7 @@ class Deleted: ...@@ -197,7 +197,7 @@ class Deleted:
mode = "mode_Bad" mode = "mode_Bad"
flags = [ ] flags = [ ]
pinned = "yes" pinned = "yes"
noconstructor = True constructor = False
customSerializer = True # this has no serializer customSerializer = True # this has no serializer
@op @op
......
...@@ -104,6 +104,7 @@ def setnodedefaults(node): ...@@ -104,6 +104,7 @@ def setnodedefaults(node):
setdefault(node, "ins", []) setdefault(node, "ins", [])
setdefault(node, "arity", len(node.ins)) setdefault(node, "arity", len(node.ins))
setdefault(node, "attrs", []) setdefault(node, "attrs", [])
setdefault(node, "constructor", True)
setdefault(node, "constructor_args", []) setdefault(node, "constructor_args", [])
setdefault(node, "customSerializer", False) setdefault(node, "customSerializer", False)
setdefault(node, "block", None) setdefault(node, "block", None)
......
...@@ -40,7 +40,7 @@ int is_{{spec.name}}_node(const ir_node *node) ...@@ -40,7 +40,7 @@ int is_{{spec.name}}_node(const ir_node *node)
{% for node in nodes %} {% for node in nodes %}
{%- if not node.noconstructor %} {%- if node.constructor %}
ir_node *new_rd_{{node.name}}( ir_node *new_rd_{{node.name}}(
{%- filter parameters %} {%- filter parameters %}
dbg_info *dbgi dbg_info *dbgi
......
...@@ -60,7 +60,7 @@ typedef enum { ...@@ -60,7 +60,7 @@ typedef enum {
pn_{{node.name}}_max = pn_{{node.name}}_{{node.outs[-1].name}} pn_{{node.name}}_max = pn_{{node.name}}_{{node.outs[-1].name}}
} pn_{{node.name}}; } pn_{{node.name}};
{% endif %} {% endif %}
{%- if not node.noconstructor %} {%- if node.constructor %}
/** /**
* Construct {{node.name|a_an}} node. * Construct {{node.name|a_an}} node.
* *
......
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