Skip to content

Specify and validate the Wave ABI independently from the C ABI #350

Open

Description

@LunaStev

Roadmap context

Wave needs a language ABI that is defined independently from the existing C ABI classifier and can be implemented consistently by both the LLVM backend and the Whale toolchain.

Specification scope

  • Scalar, pointer, and aggregate argument and return rules.
  • Object representation versus ABI transport representation.
  • Target-specific register classification, stack layout, alignment, padding, indirect arguments, and hidden return pointers.
  • Function symbols, name mangling, visibility, imports, exports, and cross-module interfaces.
  • Generic and Wave-specific type eligibility at ABI boundaries.
  • ABI versioning and compatibility detection.
  • A backend-neutral fixture and expected-result format shared by LLVM and Whale.
  • Separation of C ABI comparison fixtures from native Wave ABI fixtures.

Completion criteria

  • The ABI specification defines observable behavior for every supported target family.
  • ABI version and compatibility rules are machine-readable.
  • LLVM and Whale consume the same contract fixtures.
  • Cross-module calls are tested independently from C interoperability.
  • C ABI classifiers do not implicitly define Wave ABI behavior.

This is a design and tracking issue. Concrete fixture, documentation, and validation tools should be split into smaller issues once their contracts are fixed.

Activity

  1. added
    enhancement
    feature request
    discussion
    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

    discussionenhancementfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions