KhronosGroup / KhronosGroup/SPIRV-LLVM-Translator

Support for global constructors and destructors

Open
#184 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.