KhronosGroup / KhronosGroup/SPIRV-LLVM-Translator
Support for global constructors and destructors
Open
enhancement
SPIRV-1.1
- Dominant language
- LLVM
- Stars
- 625
- Forks
- 279
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 34
Description
All kernel functions in `@llvm.global_ctors` and `@llvm.global_dtors` should have their execution mode marked as, respectively, `Initializer` or `Finalizer`. Anything else?
This depends on SPIRV 1.1.
Contributor guide
Research direction
Locate the translator handling for `@llvm.global_ctors` and `@llvm.global_dtors`, then review how kernel functions receive execution modes. Confirm the implementation targets SPIR-V 1.1 and that constructors use `Initializer` while destructors use `Finalizer`; add or run coverage for both cases if the project provides it.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100