Lines Matching refs:symtab
343 cil_symtab_array_init(r->symtab, cil_sym_sizes[CIL_SYM_ARRAY_ROOT]); in cil_root_init()
353 cil_symtab_array_destroy(root->symtab); in cil_root_destroy()
1710 void cil_symtab_array_init(symtab_t symtab[], int symtab_sizes[CIL_SYM_NUM]) in cil_symtab_array_init() argument
1714 cil_symtab_init(&symtab[i], symtab_sizes[i]); in cil_symtab_array_init()
1718 void cil_symtab_array_destroy(symtab_t symtab[]) in cil_symtab_array_destroy() argument
1722 cil_symtab_destroy(&symtab[i]); in cil_symtab_array_destroy()
1731 cil_symtab_array_destroy(((struct cil_block*)current->data)->symtab); in cil_destroy_ast_symtabs()
1734 cil_symtab_array_destroy(((struct cil_in*)current->data)->symtab); in cil_destroy_ast_symtabs()
1742 cil_symtab_array_destroy(((struct cil_macro*)current->data)->symtab); in cil_destroy_ast_symtabs()
1745 cil_symtab_array_destroy(((struct cil_condblock*)current->data)->symtab); in cil_destroy_ast_symtabs()
1759 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index) in cil_get_symtab() argument
1762 *symtab = NULL; in cil_get_symtab()
1768 *symtab = &((struct cil_class*)node->data)->perms; in cil_get_symtab()
1779 while (node != NULL && *symtab == NULL) { in cil_get_symtab()
1782 *symtab = &((struct cil_root *)node->data)->symtab[sym_index]; in cil_get_symtab()
1785 *symtab = &((struct cil_block*)node->data)->symtab[sym_index]; in cil_get_symtab()
1788 *symtab = &((struct cil_macro*)node->data)->symtab[sym_index]; in cil_get_symtab()
1792 *symtab = &((struct cil_in*)node->data)->symtab[sym_index]; in cil_get_symtab()
1797 *symtab = &((struct cil_condblock*)node->data)->symtab[sym_index]; in cil_get_symtab()
1808 if (*symtab == NULL) { in cil_get_symtab()
1918 cil_symtab_array_init((*block)->symtab, cil_sym_sizes[CIL_SYM_ARRAY_BLOCK]); in cil_block_init()
1942 cil_symtab_array_init((*in)->symtab, cil_sym_sizes[CIL_SYM_ARRAY_IN]); in cil_in_init()
2173 cil_symtab_array_init((*cb)->symtab, cil_sym_sizes[CIL_SYM_ARRAY_CONDBLOCK]); in cil_condblock_init()
2597 cil_symtab_array_init((*macro)->symtab, cil_sym_sizes[CIL_SYM_ARRAY_MACRO]); in cil_macro_init()