Purple  0.1
Standard Language Specification
Functions
llvm_stack_entry.c File Reference
#include <stdlib.h>
#include "utils/llvm_stack_entry.h"
#include "utils/logging.h"
Include dependency graph for llvm_stack_entry.c:

Functions

void initialize_stack_entry_linked_list (LLVMStackEntryNode **head)
 Initialize a stack entry linked list. More...
 
void prepend_stack_entry_linked_list (LLVMStackEntryNode **head, type_register register_index)
 Add a stack entry to a stack entry linked list. More...
 
type_register pop_stack_entry_linked_list (LLVMStackEntryNode **head)
 Pop and free a stack entry from a Stack Entry Node linked list and get its type. More...
 
void free_llvm_stack_entry_node_list (LLVMStackEntryNode *head)
 Free memory used by LLVMStackEntryNode linked lists. More...
 

Detailed Description

Author
Charles Averill
Date
15-Sep-2022

Function Documentation

◆ free_llvm_stack_entry_node_list()

void free_llvm_stack_entry_node_list ( LLVMStackEntryNode head)

Free memory used by LLVMStackEntryNode linked lists.

Parameters
headHead of list to free

◆ initialize_stack_entry_linked_list()

void initialize_stack_entry_linked_list ( LLVMStackEntryNode **  head)

Initialize a stack entry linked list.

Parameters
headHead of linked list

◆ pop_stack_entry_linked_list()

type_register pop_stack_entry_linked_list ( LLVMStackEntryNode **  head)

Pop and free a stack entry from a Stack Entry Node linked list and get its type.

Parameters
headHead of linked list to pop from
Returns
type_register Register number from first entry in linked list

◆ prepend_stack_entry_linked_list()

void prepend_stack_entry_linked_list ( LLVMStackEntryNode **  head,
type_register  register_index 
)

Add a stack entry to a stack entry linked list.

Parameters
headHead of linked list
register_indexRegister number to push onto list