Cthulhu  0.2.10
Cthulhu compiler collection
common.h File Reference
#include "cthulhu/ssa/ssa.h"
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  names_t
 
struct  emit_t
 target code emitter options More...
 

Functions

CT_LOCAL char * begin_module (emit_t *emit, fs_t *fs, const ssa_module_t *mod)
 
CT_LOCAL void end_module (emit_t *emit)
 
CT_LOCAL names_t names_new (size_t size, arena_t *arena)
 
CT_LOCAL void counter_reset (emit_t *emit)
 
CT_LOCAL char * get_step_name (emit_t *emit, const ssa_step_t *step)
 
CT_LOCAL char * get_block_name (emit_t *emit, const ssa_block_t *block)
 
CT_LOCAL char * get_anon_symbol_name (emit_t *emit, const ssa_symbol_t *symbol, const char *prefix)
 
CT_LOCAL char * get_anon_local_name (emit_t *emit, const ssa_local_t *local, const char *prefix)
 
CT_LOCAL char * get_step_from_block (emit_t *emit, const ssa_block_t *block, size_t index)
 
CT_LOCAL const char * type_to_string (const ssa_type_t *type, arena_t *arena)
 
CT_LOCAL char * c89_format_integer_literal (arena_t *arena, const mpz_t value)
 

Function Documentation

◆ begin_module()

CT_LOCAL char* begin_module ( emit_t emit,
fs_t fs,
const ssa_module_t mod 
)

Definition at line 17 of file common.c.

◆ c89_format_integer_literal()

CT_LOCAL char* c89_format_integer_literal ( arena_t arena,
const mpz_t  value 
)

Definition at line 309 of file emit.c.

◆ counter_reset()

CT_LOCAL void counter_reset ( emit_t emit)

Definition at line 49 of file common.c.

◆ end_module()

CT_LOCAL void end_module ( emit_t emit)

◆ get_anon_local_name()

CT_LOCAL char* get_anon_local_name ( emit_t emit,
const ssa_local_t local,
const char *  prefix 
)

Definition at line 98 of file common.c.

◆ get_anon_symbol_name()

CT_LOCAL char* get_anon_symbol_name ( emit_t emit,
const ssa_symbol_t symbol,
const char *  prefix 
)

Definition at line 93 of file common.c.

◆ get_block_name()

CT_LOCAL char* get_block_name ( emit_t emit,
const ssa_block_t block 
)

Definition at line 77 of file common.c.

◆ get_step_from_block()

CT_LOCAL char* get_step_from_block ( emit_t emit,
const ssa_block_t block,
size_t  index 
)

Definition at line 103 of file common.c.

◆ get_step_name()

CT_LOCAL char* get_step_name ( emit_t emit,
const ssa_step_t step 
)

Definition at line 72 of file common.c.

◆ names_new()

CT_LOCAL names_t names_new ( size_t  size,
arena_t arena 
)

Definition at line 39 of file common.c.

◆ type_to_string()

CT_LOCAL const char* type_to_string ( const ssa_type_t type,
arena_t arena 
)

Definition at line 176 of file common.c.