var compilequeue … func enqueueFunc(fn *ir.Func) { … } // prepareFunc handles any remaining frontend compilation tasks that // aren't yet safe to perform concurrently. func prepareFunc(fn *ir.Func) { … } // compileFunctions compiles all functions in compilequeue. // It fans out nBackendWorkers to do the work // and waits for them to complete. func compileFunctions(profile *pgoir.Profile) { … }