llgo/ssa: Alloca, ArrayAlloca

This commit is contained in:
xushiwei
2024-04-29 17:58:10 +08:00
parent 7a347d4563
commit 2b82af519c
7 changed files with 84 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
package c
import "C"
import "unsafe"
const (
@@ -38,4 +39,4 @@ func Malloc(size uintptr) unsafe.Pointer
func Memcpy(dst, src unsafe.Pointer, n uintptr) unsafe.Pointer
//go:linkname Printf C.printf
func Printf(format *int8, __llgo_va_list ...any)
func Printf(format *int8, __llgo_va_list ...any) C.int