OpenCilk / opencilk-project

Monorepo for the OpenCilk compiler. Forked from llvm/llvm-project and based on Tapir/LLVM.
Other
93 stars 29 forks source link

New builtin to get stack_frame object #208

Open VoxSciurorum opened 1 year ago

VoxSciurorum commented 1 year ago

This pairs with a pull request to cheetah.

Add a C builtin __tapir_frame and IR intrinsic tapir_frame to get the current stack_frame object. These builtins return null if used outside of a Cilk region. Add a pointer to the stack_frame object as an argument when looking up a hyperobject view to avoid a TLS reference in the runtime.