Skip to content

v2.gen.c #

fn Gen.new #

fn Gen.new(mod &ssa.Module) &Gen

struct Gen #

struct Gen {
	mod &ssa.Module
mut:
	sb                    strings.Builder
	current_fn_name       string
	current_fn_ret        int
	current_fn_idx        int
	global_c_names        []string
	edge_zero_inits       map[string][]int
	assign_dests          map[int]bool
	nonconst_assign_dests map[int]bool
	block_assign_dests    map[int][]int
	fn_lookup             map[string]int
	fn_exact_lookup       map[string][]int
	fn_suffix_lookup      map[string][]int
	fn_mangled_names      []string
	signature_params_map  map[int][]ssa.ValueID
	effective_params_map  map[int][]ssa.ValueID
}

fn (Gen) gen #

fn (mut g Gen) gen() string