github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/transform/testdata/stacksize.out.ll (about)

     1  target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
     2  target triple = "armv7m-none-eabi"
     3  
     4  @"internal/task.stackSizes" = global [1 x i32] [i32 1024], section ".tinygo_stacksizes", align 4
     5  @llvm.used = appending global [2 x ptr] [ptr @"internal/task.stackSizes", ptr @"runtime.run$1$gowrapper"]
     6  
     7  declare i32 @"internal/task.getGoroutineStackSize"(i32, ptr, ptr)
     8  
     9  declare void @"runtime.run$1$gowrapper"(ptr)
    10  
    11  declare void @"internal/task.start"(i32, ptr, i32)
    12  
    13  define void @Reset_Handler() {
    14  entry:
    15    %stacksize1 = load i32, ptr @"internal/task.stackSizes", align 4
    16    call void @"internal/task.start"(i32 ptrtoint (ptr @"runtime.run$1$gowrapper" to i32), ptr undef, i32 %stacksize1)
    17    ret void
    18  }