llvm-project
e40062c0 - [OFFLOAD][L0] Add support to run ctor/dtor code (#187510)

Commit
22 days ago
[OFFLOAD][L0] Add support to run ctor/dtor code (#187510) This PR adds support in the Level Zero plugin to execute constructors/destructors on the device code. As spirv-link has some limitations, it mimics the CUDA plugin behavior where the RTL constructs the device side tables before invoking the kernel that will execute them. The kernel and other necessary symbols to create the device tables are created by the SPIRVCtorDtorLowering pass to be added in #187509
Author
Parents
Loading