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
abd2d8db
Commit
abd2d8db
authored
Nov 14, 2014
by
Matthias Braun
Browse files
gen_ir: Only set default mode to mode_T if multiple outputs are specified
parent
459c0c85
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/ir_spec.py
View file @
abd2d8db
...
...
@@ -232,6 +232,7 @@ class Builtin:
(
"M"
,
"memory result"
),
# results follow here
]
mode
=
"mode_T"
flags
=
[
"uses_memory"
]
attrs
=
[
Attribute
(
"kind"
,
type
=
"ir_builtin_kind"
,
comment
=
"kind of builtin"
),
...
...
@@ -318,6 +319,7 @@ class Switch:
outs
=
[
(
"default"
,
"control flow if no other case matches"
),
]
mode
=
"mode_T"
flags
=
[
"cfopcode"
,
"forking"
]
pinned
=
"yes"
attrs
=
[
...
...
scripts/spec_util.py
View file @
abd2d8db
...
...
@@ -111,7 +111,7 @@ def setnodedefaults(node):
node
.
doc
=
trim_docstring
(
node
.
__doc__
)
else
:
node
.
doc
=
""
if
hasattr
(
node
,
"outs"
):
if
hasattr
(
node
,
"outs"
)
and
len
(
node
.
outs
)
>
1
:
node
.
mode
=
"mode_T"
if
"start_block"
in
node
.
flags
:
node
.
block
=
"get_irg_start_block(irg)"
...
...
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