Skip to content

Define a backend-neutral Wave ABI fixture format #368

Open

Description

@LunaStev

Tracked by #350.

Problem

The LLVM backend currently has target-specific C ABI fixtures, while the future Whale toolchain needs to validate the same native Wave ABI independently. Source files and ad-hoc assertions are not enough to express expected transport classes and layouts across backends.

Scope

Design a machine-readable fixture format that can describe:

  • Target and Wave ABI version.
  • Source-level parameter and return types.
  • Object size/alignment/layout.
  • Register or stack transport classes.
  • Indirect arguments and hidden return pointers.
  • Expected symbol/name-mangling result.
  • Expected pass/fail compatibility outcome.

Provide a small validator library or tool and initial scalar/pointer/aggregate fixtures. Keep C ABI comparison fixtures in a separate namespace.

Completion criteria

  • The schema is documented and versioned.
  • Unknown fields or schema versions fail clearly.
  • LLVM tests can consume the initial fixtures.
  • Whale can consume the format without importing LLVM-specific concepts.
  • At least two target families are representable.

Activity

  1. added
    enhancement
    help wanted
    needs testing
    on Aug 25, 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

    enhancementhelp wantedneeds testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions