github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/transform/testdata/stacksize.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  declare i32 @"internal/task.getGoroutineStackSize"(i32, ptr, ptr)
     5  
     6  declare void @"runtime.run$1$gowrapper"(ptr)
     7  
     8  declare void @"internal/task.start"(i32, ptr, i32)
     9  
    10  define void @Reset_Handler() {
    11  entry:
    12    %stacksize = call i32 @"internal/task.getGoroutineStackSize"(i32 ptrtoint (ptr @"runtime.run$1$gowrapper" to i32), ptr undef, ptr undef)
    13    call void @"internal/task.start"(i32 ptrtoint (ptr @"runtime.run$1$gowrapper" to i32), ptr undef, i32 %stacksize)
    14    ret void
    15  }