llvm-project
2bce2d4f - [WebAssembly] Add support for import and export name attributes on global vars (#201966)

Commit
1 day ago
[WebAssembly] Add support for import and export name attributes on global vars (#201966) Currently these attributes are only supported on functions. This change adds support for import_name, export_module and export_name to global variables. For addrspace(1) global variables, which lower to wasm globals, they are directly appended to the wasm export. For addrspace 0 globals, the address is exported. It also fixes the behavior of the existing export_name attribute on functions, implementing correct merging behavior to handle cases of duplicate or conflicting declarations. Assisted-by: Antigravity
Author
Parents
Loading