Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ce4a5723
Commit
ce4a5723
authored
Aug 27, 2001
by
Richard Henderson
Committed by
Richard Henderson
Aug 27, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* genautomata.c (expand_automata): Always create a description.
From-SVN: r45211
parent
859cb4d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
38 deletions
+38
-38
gcc/ChangeLog
+4
-0
gcc/genautomata.c
+34
-38
No files found.
gcc/ChangeLog
View file @
ce4a5723
2001
-
08
-
27
Richard
Henderson
<
rth
@redhat
.
com
>
*
genautomata
.
c
(
expand_automata
)
:
Always
create
a
description
.
2001
-
08
-
27
Geoffrey
Keating
<
geoffk
@redhat
.
com
>
*
optabs
.
c
(
expand_binop
)
:
Correctly
handle
the
carry
in
multiword
...
...
gcc/genautomata.c
View file @
ce4a5723
...
...
@@ -8625,48 +8625,44 @@ expand_automata ()
{
int
i
;
if
(
VLA_PTR_LENGTH
(
decls
)
!=
0
)
{
description
=
create_node
(
sizeof
(
struct
description
)
+
sizeof
(
decl_t
)
/* One entry for cycle advancing insn. */
*
VLA_PTR_LENGTH
(
decls
));
description
->
decls_num
=
VLA_PTR_LENGTH
(
decls
);
description
->
query_units_num
=
0
;
for
(
i
=
0
;
i
<
description
->
decls_num
;
i
++
)
{
description
->
decls
[
i
]
=
VLA_PTR
(
decls
,
i
);
if
(
description
->
decls
[
i
]
->
mode
==
dm_unit
&&
description
->
decls
[
i
]
->
decl
.
unit
.
query_p
)
description
->
decls
[
i
]
->
decl
.
unit
.
query_num
=
description
->
query_units_num
++
;
}
all_time
=
create_ticker
();
check_time
=
create_ticker
();
fprintf
(
stderr
,
"Check description..."
);
fflush
(
stderr
);
check_all_description
();
fprintf
(
stderr
,
"done
\n
"
);
ticker_off
(
&
check_time
);
generation_time
=
create_ticker
();
description
=
create_node
(
sizeof
(
struct
description
)
/* One entry for cycle advancing insn. */
+
sizeof
(
decl_t
)
*
VLA_PTR_LENGTH
(
decls
));
description
->
decls_num
=
VLA_PTR_LENGTH
(
decls
);
description
->
query_units_num
=
0
;
for
(
i
=
0
;
i
<
description
->
decls_num
;
i
++
)
{
description
->
decls
[
i
]
=
VLA_PTR
(
decls
,
i
);
if
(
description
->
decls
[
i
]
->
mode
==
dm_unit
&&
description
->
decls
[
i
]
->
decl
.
unit
.
query_p
)
description
->
decls
[
i
]
->
decl
.
unit
.
query_num
=
description
->
query_units_num
++
;
}
all_time
=
create_ticker
();
check_time
=
create_ticker
();
fprintf
(
stderr
,
"Check description..."
);
fflush
(
stderr
);
check_all_description
();
fprintf
(
stderr
,
"done
\n
"
);
ticker_off
(
&
check_time
);
generation_time
=
create_ticker
();
if
(
!
have_error
)
{
generate
();
check_automata
();
if
(
!
have_error
)
{
generate
();
check_automata
();
if
(
!
have_error
)
{
fprintf
(
stderr
,
"Generation of attributes..."
);
fflush
(
stderr
);
make_internal_dfa_insn_code_attr
();
make_insn_alts_attr
();
make_default_insn_latency_attr
();
make_bypass_attr
();
fprintf
(
stderr
,
"done
\n
"
);
}
fprintf
(
stderr
,
"Generation of attributes..."
);
fflush
(
stderr
);
make_internal_dfa_insn_code_attr
();
make_insn_alts_attr
();
make_default_insn_latency_attr
();
make_bypass_attr
();
fprintf
(
stderr
,
"done
\n
"
);
}
ticker_off
(
&
generation_time
);
ticker_off
(
&
all_time
);
}
ticker_off
(
&
generation_time
);
ticker_off
(
&
all_time
);
fprintf
(
stderr
,
"All other genattrtab stuff..."
);
fflush
(
stderr
);
}
...
...
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