David Malcolm
2014-10-07 17:28:47 UTC
jit/internal-api.c and .h were getting large, so I broke them out into:
* jit-common.h (forward decls of types)
* jit-recording.h/c (the gcc::jit::recording classes)
* jit-playback.h/c (the gcc::jit::playback classes)
Committed to branch dmalcolm/jit as 3071567787aef4a8ada8b38c890d01c19b4b998f
Not posting the full patch here as it's 400KB, but it can be seen at:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=3071567787aef4a8ada8b38c890d01c19b4b998f
gcc/jit/ChangeLog.jit:
* Make-lang.in (jit_OBJS): Drop jit/internal-api.o.
Add jit/jit-recording.o and jit/jit-playback.o.
* internal-api.c: Delete, moving content to new files jit-recording.c
and jit-playback.c.
* internal-api.h: Delete, moving content to new files
jit-common.h, jit-playback.h, jit-recording.h.
* jit-common.h: New file, containing the forward decls of classes
formerly in internal-api.h.
* jit-recording.c: New file, containing the gcc::jit::recording
code formerly in internal-api.c, and gcc::jit::dump.
* jit-recording.h: New file, containing the gcc::jit::recording
prototypes formerly in internal-api.h.
* jit-playback.c: New file, containing the gcc::jit::playback
code formerly in internal-api.c.
* jit-playback.h: New file, containing the gcc::jit::playback
prototypes formerly in internal-api.h.
* dummy-frontend.c: Don't include "internal-api.h". Add includes
of jit-common.h and jit-playback.h.
* jit-builtins.h: Replace include of internal-api.h with
jit-common.h.
* jit-builtins.c: Replace include of internal-api.h with
jit-common.h. Add include of jit-recording.h.
* libgccjit.c: Likewise.
* docs/internals/index.rst (Overview of code structure): Update
to reflect the above changes.
---
gcc/jit/ChangeLog.jit | 31 +
gcc/jit/Make-lang.in | 6 +-
gcc/jit/docs/internals/index.rst | 18 +-
gcc/jit/dummy-frontend.c | 3 +-
gcc/jit/internal-api.c | 5473 --------------------------------------
gcc/jit/internal-api.h | 2264 ----------------
gcc/jit/jit-builtins.c | 3 +-
gcc/jit/jit-builtins.h | 2 +-
gcc/jit/jit-common.h | 180 ++
gcc/jit/jit-playback.c | 2098 +++++++++++++++
gcc/jit/jit-playback.h | 564 ++++
gcc/jit/jit-recording.c | 3415 ++++++++++++++++++++++++
gcc/jit/jit-recording.h | 1593 +++++++++++
gcc/jit/libgccjit.c | 3 +-
14 files changed, 7902 insertions(+), 7751 deletions(-)
delete mode 100644 gcc/jit/internal-api.c
delete mode 100644 gcc/jit/internal-api.h
create mode 100644 gcc/jit/jit-common.h
create mode 100644 gcc/jit/jit-playback.c
create mode 100644 gcc/jit/jit-playback.h
create mode 100644 gcc/jit/jit-recording.c
create mode 100644 gcc/jit/jit-recording.h
* jit-common.h (forward decls of types)
* jit-recording.h/c (the gcc::jit::recording classes)
* jit-playback.h/c (the gcc::jit::playback classes)
Committed to branch dmalcolm/jit as 3071567787aef4a8ada8b38c890d01c19b4b998f
Not posting the full patch here as it's 400KB, but it can be seen at:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=3071567787aef4a8ada8b38c890d01c19b4b998f
gcc/jit/ChangeLog.jit:
* Make-lang.in (jit_OBJS): Drop jit/internal-api.o.
Add jit/jit-recording.o and jit/jit-playback.o.
* internal-api.c: Delete, moving content to new files jit-recording.c
and jit-playback.c.
* internal-api.h: Delete, moving content to new files
jit-common.h, jit-playback.h, jit-recording.h.
* jit-common.h: New file, containing the forward decls of classes
formerly in internal-api.h.
* jit-recording.c: New file, containing the gcc::jit::recording
code formerly in internal-api.c, and gcc::jit::dump.
* jit-recording.h: New file, containing the gcc::jit::recording
prototypes formerly in internal-api.h.
* jit-playback.c: New file, containing the gcc::jit::playback
code formerly in internal-api.c.
* jit-playback.h: New file, containing the gcc::jit::playback
prototypes formerly in internal-api.h.
* dummy-frontend.c: Don't include "internal-api.h". Add includes
of jit-common.h and jit-playback.h.
* jit-builtins.h: Replace include of internal-api.h with
jit-common.h.
* jit-builtins.c: Replace include of internal-api.h with
jit-common.h. Add include of jit-recording.h.
* libgccjit.c: Likewise.
* docs/internals/index.rst (Overview of code structure): Update
to reflect the above changes.
---
gcc/jit/ChangeLog.jit | 31 +
gcc/jit/Make-lang.in | 6 +-
gcc/jit/docs/internals/index.rst | 18 +-
gcc/jit/dummy-frontend.c | 3 +-
gcc/jit/internal-api.c | 5473 --------------------------------------
gcc/jit/internal-api.h | 2264 ----------------
gcc/jit/jit-builtins.c | 3 +-
gcc/jit/jit-builtins.h | 2 +-
gcc/jit/jit-common.h | 180 ++
gcc/jit/jit-playback.c | 2098 +++++++++++++++
gcc/jit/jit-playback.h | 564 ++++
gcc/jit/jit-recording.c | 3415 ++++++++++++++++++++++++
gcc/jit/jit-recording.h | 1593 +++++++++++
gcc/jit/libgccjit.c | 3 +-
14 files changed, 7902 insertions(+), 7751 deletions(-)
delete mode 100644 gcc/jit/internal-api.c
delete mode 100644 gcc/jit/internal-api.h
create mode 100644 gcc/jit/jit-common.h
create mode 100644 gcc/jit/jit-playback.c
create mode 100644 gcc/jit/jit-playback.h
create mode 100644 gcc/jit/jit-recording.c
create mode 100644 gcc/jit/jit-recording.h