compiler: implement func value and builtin defers

Co-authored-by: Justin A. Wilson <maker.pro.game@gmail.com>
This commit is contained in:
waj334
2020-07-30 18:48:57 -05:00
committed by GitHub
parent 3650c2c739
commit 848c3e55a9
4 changed files with 167 additions and 14 deletions
+7
View File
@@ -74,7 +74,14 @@ type builder struct {
deferFuncs map[*ir.Function]int
deferInvokeFuncs map[string]int
deferClosureFuncs map[*ir.Function]int
deferExprFuncs map[ssa.Value]int
selectRecvBuf map[*ssa.Select]llvm.Value
deferBuiltinFuncs map[ssa.Value]deferBuiltin
}
type deferBuiltin struct {
funcName string
callback int
}
type phiNode struct {