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