Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
35dd3dfd
Commit
35dd3dfd
authored
Apr 24, 2016
by
Christoph Mallon
Browse files
be: Simply use 'undef' instead of additional special handling for empty strings.
parent
8bedb69b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_spec.pl
View file @
35dd3dfd
...
...
@@ -805,7 +805,7 @@ Cmc => {
out_reqs
=>
[
"
flags
"
],
fixed
=>
"
x86_condition_code_t condition_code = x86_cc_carry;
\n
"
.
"
\t
x86_insn_size_t const size = X86_SIZE_32;
",
attr
=>
""
,
attr
=>
undef
,
emit
=>
"
cmc
",
encode
=>
"
ia32_enc_simple(0xF5)
",
latency
=>
1
,
...
...
@@ -946,7 +946,7 @@ IJmp => {
Const
=>
{
template
=>
$valueop
,
emit
=>
"
movl %I, %D0
",
fixed
=>
""
,
fixed
=>
undef
,
attr
=>
"
const x86_imm32_t *imm
",
fixed
=>
"
x86_insn_size_t const size = X86_SIZE_32;
",
attr_type
=>
"
ia32_immediate_attr_t
",
...
...
ir/be/scripts/generate_new_opcodes.pl
View file @
35dd3dfd
...
...
@@ -182,9 +182,7 @@ sub create_constructor
}
# we have additional attribute arguments
if
(
defined
(
my
$attr
=
$n
->
{
attr
}))
{
if
(
$attr
ne
"")
{
$complete_args
.=
"
,
$attr
";
}
$complete_args
.=
"
,
$attr
";
}
my
$suffix
=
$name
ne
""
?
"
_
$name
"
:
"";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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