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
ad25c558
Commit
ad25c558
authored
12 years ago
by
Kirill Yukhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding missed in r194086 file.
From-SVN: r194088
parent
52f2e7e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
0 deletions
+67
-0
gcc/genmddump.c
+67
-0
No files found.
gcc/genmddump.c
0 → 100644
View file @
ad25c558
/* Generate code from machine description to recognize rtl as insns.
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010,
2012 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
/* This program is used to produce tmp-mddump.md, which represents
md-file with expanded iterators and after define_subst transformation
is performed.
The only argument of the program is a source md-file (e.g.
config/i386/i386.md). STDERR is used for the program output. */
#include "bconfig.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "errors.h"
#include "read-md.h"
#include "gensupport.h"
extern
int
main
(
int
,
char
**
);
int
main
(
int
argc
,
char
**
argv
)
{
rtx
desc
;
int
pattern_lineno
;
int
code
;
/* not used */
progname
=
"genmddump"
;
if
(
!
init_rtx_reader_args
(
argc
,
argv
))
return
(
FATAL_EXIT_CODE
);
/* Read the machine description. */
while
(
1
)
{
desc
=
read_md_rtx
(
&
pattern_lineno
,
&
code
);
if
(
desc
==
NULL
)
break
;
printf
(
";; %s: %d
\n
"
,
read_md_filename
,
pattern_lineno
);
print_inline_rtx
(
stdout
,
desc
,
0
);
printf
(
"
\n\n
"
);
}
fflush
(
stdout
);
return
(
ferror
(
stdout
)
!=
0
?
FATAL_EXIT_CODE
:
SUCCESS_EXIT_CODE
);
}
This diff is collapsed.
Click to expand it.
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