Skip to content

AMD backend: emit string literal globals into .rodata (Phase 2) #93

@Zaneham

Description

@Zaneham

AMD backend doesn't lower string literals yet. E110 refusal fires on any device-side "..." until this lands.

Best guess iiiiis: ELF emitter grows a .rodata section, the bytes go there, isel_global_ref for byte-init globals does a PC-relative address load instead of the hidden-kernarg dance it does for __device__ globals. Helper to check: bir_global_is_bytes(M, gi).

Hardest of the three Phase 2 backends, because of the section bookkeeping. Soft-float runtime doesn't need this, so no pressure on the Tenstorrent side from it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend: AMDAMD GFX9/10/11/12 backend (isel, regalloc, ELF encode)enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions