21#ifndef INCLUDE_SHL_NODE_H_
22#define INCLUDE_SHL_NODE_H_
27 struct shl_node **out;
37 int restricted_map_num;
41struct shl_node *shl_node_alloc(
int node_type,
char *name,
int in_num,
int out_num,
void *data);
42struct shl_node *shl_node_var_alloc(
char *name,
void *data);
43struct shl_node *shl_node_const_var_alloc(
char *name,
void *data);
44int shl_node_free(
struct shl_node *node);
45int shl_node_add_in(
struct shl_node *node,
struct shl_node *in,
int index);
46int shl_node_add_out(
struct shl_node *node,
struct shl_node *out,
int index);
47int shl_node_get_in_number(
struct shl_node *node);
48int shl_node_get_out_number(
struct shl_node *node);
49int shl_node_get_non_const_in_number(
struct shl_node *node);
50struct shl_node *shl_node_get_in(
struct shl_node *node,
int index);
51struct shl_node *shl_node_get_out(
struct shl_node *node,
int index);
52int shl_node_restrict_map_insert(
int value,
struct shl_node *node);
53int shl_node_find(
struct shl_node **list,
int len,
struct shl_node *node);