ACT Library
Loading...
Searching...
No Matches
finline.h
Go to the documentation of this file.
1/*************************************************************************
2 *
3 * This file is part of the ACT library
4 *
5 * Copyright (c) 2020 Rajit Manohar
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21 *
22 **************************************************************************
23 */
24#ifndef __ACT_PASS_FINLINE_H__
25#define __ACT_PASS_FINLINE_H__
26
27#include <act/act.h>
28
29class ActCHPFuncInline : public ActPass {
30public:
32 int run (Process *p = NULL);
33
34private:
35 void *local_op (Process *p, int mode = 0);
36 void free_local (void *);
37
39 Expr *_inline_funcs (list_t *, Expr *);
41
42 void _inline_funcs (list_t *, act_chp_lang_t *);
44
46 void _do_complex_inline (struct pHashtable *, list_t *, act_chp_lang_t *);
47 void _complex_inline_helper (struct pHashtable *, act_chp_lang_t *);
48
49 void _collect_complex_inlines (list_t *, Expr *);
50 act_chp_lang_t *_do_inline (struct pHashtable *, list_t *);
51 void _apply_complex_inlines (list_t *, Expr *);
52
54
55 int _get_fresh_idx (const char *prefix, int *idx);
57};
58
59#endif /* __ACT_PASS_FINLINE_H__ */
Definition: finline.h:29
Scope * _cursc
Definition: finline.h:38
int run(Process *p=NULL)
act_chp_lang_t * _do_inline(struct pHashtable *, list_t *)
void _do_complex_inline(struct pHashtable *, list_t *, act_chp_lang_t *)
ActCHPFuncInline(Act *a)
void _collect_complex_inlines(list_t *, Expr *)
void * local_op(Process *p, int mode=0)
void free_local(void *)
void _inline_funcs(list_t *, act_chp_lang_t *)
Expr ** _inline_funcs_general(list_t *, Expr *)
int _get_fresh_idx(const char *prefix, int *idx)
int _useidx
Definition: finline.h:56
void _apply_complex_inlines(list_t *, Expr *)
void _complex_inline_helper(struct pHashtable *, act_chp_lang_t *)
Expr * _inline_funcs(list_t *, Expr *)
void _full_inline(act_chp_lang_t *c)
void _structure_assign(act_chp_lang_t *c)
void _inline_funcs(list_t *, act_dataflow_element *)
The main Act class used to read in an ACT file and create basic data structures. All design informati...
Definition: act.h:334
The main ActPass class used to implement an ACT analysis/synthesis pass. All the core tools use this ...
Definition: act.h:791
Act * a
Definition: act.h:810
User-defined processes.
Definition: types.h:750
This is the data structure that holds all instances and their associated types within a scope....
Definition: namespaces.h:77
Data structure for the chp sub-language body.
Definition: lang.h:286
An individual dataflow element.
Definition: lang.h:545
Definition: expr.h:79