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
8558f0f3
Commit
8558f0f3
authored
Dec 27, 2014
by
Christoph Mallon
Browse files
irspec: Turn the negative flag noconstructor into a positive one called constructor.
parent
9c38a6c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
scripts/ir_spec.py
View file @
8558f0f3
...
...
@@ -99,7 +99,7 @@ class Anchor:
flags
=
[
"dump_noblock"
]
pinned
=
"yes"
singleton
=
True
no
constructor
=
Tru
e
constructor
=
Fals
e
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)
no
constructor
=
Tru
e
constructor
=
Fals
e
@
op
class
Bad
:
...
...
@@ -197,7 +197,7 @@ class Deleted:
mode
=
"mode_Bad"
flags
=
[
]
pinned
=
"yes"
no
constructor
=
Tru
e
constructor
=
Fals
e
customSerializer
=
True
# this has no serializer
@
op
...
...
scripts/spec_util.py
View file @
8558f0f3
...
...
@@ -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
)
...
...
scripts/templates/gen_irnode.c
View file @
8558f0f3
...
...
@@ -40,7 +40,7 @@ int is_{{spec.name}}_node(const ir_node *node)
{
%
for
node
in
nodes
%
}
{
%-
if
not
node
.
no
constructor
%
}
{
%-
if
node
.
constructor
%
}
ir_node
*
new_rd_
{{
node
.
name
}}(
{
%-
filter
parameters
%
}
dbg_info
*
dbgi
...
...
scripts/templates/nodes.h
View file @
8558f0f3
...
...
@@ -60,7 +60,7 @@ typedef enum {
pn_
{{
node
.
name
}}
_max
=
pn_
{{
node
.
name
}}
_
{{
node
.
outs
[
-
1
].
name
}}
}
pn_
{{
node
.
name
}};
{
%
endif
%
}
{
%-
if
not
node
.
no
constructor
%
}
{
%-
if
node
.
constructor
%
}
/**
* Construct {{node.name|a_an}} node.
*
...
...
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