MCPcopy Create free account
hub / github.com/akyoto/q / Function

Struct Function

src/codegen/Function.go:11–25  ·  view source on GitHub ↗

Function contains the state that is required to produce assembly code.

Source from the content-addressed store, hash-verified

9
10// Function contains the state that is required to produce assembly code.
11type Function struct {
12 IR
13 CPU *cpu.CPU
14 build *config.Build
15 FullName string
16 Assembler asm.Assembler
17 Preserved set.Ordered[cpu.Register]
18 Count count
19 stackSize uint
20 IsExit bool
21 needsFramePointer bool
22 hasStackFrame bool
23 hasExternCalls bool
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected