Skip to content

Add a cross-target LLVM regression matrix for payload variants #454

Closed

Description

@LunaStev

Problem

Payload variants now have runtime coverage on native hosts and WebAssembly, but the compiler regression suite does not systematically emit variant IR for every advertised target. Target-specific type layout or lowering regressions can therefore reach CI indirectly or remain unnoticed.

Scope

  • Add a focused Rust regression that iterates the compiler's advertised target triples.
  • Emit LLVM IR, or an object where the environment supports it, without requiring a linker or sysroot.
  • Cover tags, generic and nested payloads, pointer recursion, constants, statics, and interaction with arrays/structs.
  • Assert successful compilation and the expected target metadata rather than matching unstable full IR text.
  • Keep the test resource-conscious and compatible with the repository's normal CI jobs.

Acceptance criteria

  • Variant lowering is exercised for x86-64, AArch64, RISC-V 64, WebAssembly, and the other advertised target triples.
  • The test needs no cross linker, emulator, network, or external sysroot.
  • Backend panics and unsupported-target regressions fail with a focused test name.

Activity

  1. added
    good first issue
    needs testing
    cross-platform
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cross-platformgood first issueneeds testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions