]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/fortran/target-memory.h
[multiple changes]
[thirdparty/gcc.git] / gcc / fortran / target-memory.h
CommitLineData
7433458d
PT
1/* Simulate storage of variables into target memory, header.
2 Copyright (C) 2007
3 Free Software Foundation, Inc.
4 Contributed by Paul Thomas and Brooks Moses
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
10Software Foundation; either version 2, or (at your option) any later
11version.
12
13GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
17
18You should have received a copy of the GNU General Public License
19along with GCC; see the file COPYING. If not, write to the Free
20Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
2102110-1301, USA. */
22
23#ifndef GFC_TARGET_MEMORY_H
24#define GFC_TARGET_MEMORY_H
25
26#include "gfortran.h"
27
28/* Return the size of an expression in its target representation. */
29size_t gfc_target_expr_size (gfc_expr *);
30
31/* Write a constant expression in binary form to a target buffer. */
32int gfc_target_encode_expr (gfc_expr *, unsigned char *, size_t);
33
34/* Read a target buffer into a constant expression. */
35int gfc_target_interpret_expr (unsigned char *, size_t, gfc_expr *);
36
37#endif /* GFC_TARGET_MEMORY_H */