Skip to content

Establish executable MSVC x64 C ABI interoperability in both call directions #615

Closed

Description

@LunaStev

Part of #611. Difficulty: very high. Audit baseline: master 3950416e (2026-09-12).

Current evidence

llvm/src/codegen/abi_c.rs has Windows x64 classifiers; MSVC entries already appear in narrow-integer and aggregate IR regressions in tests/codegen_regressions.rs. The basic MSVC foundation test explicitly checks PE construction rather than native execution.

Scope

Build native x64 Wave/clang-cl peer fixtures that exercise caller and callee behavior across the C boundary. Cover register exhaustion, shadow space, mixed integer/floating-point parameters, narrow signed/unsigned values, aggregate size/alignment boundaries and indirect returns, and supported variadic calls. Fix evidenced ABI lowering defects while retaining the existing working classifiers.

Completion criteria

Run independent-value checks in both directions on native Windows x64 at unoptimized and optimized settings, including nested calls and preserved-register pressure. Retain the C source, Wave source and compiler/link commands on failure. Required CI must fail if the peer toolchain or execution is unavailable; an IR comparison alone cannot satisfy this issue. No C++ ABI or new Wave syntax is included.

Dependencies and boundaries

#498; native host #612, SDK #613, hosted execution #617. Large-frame unwinding is #618.

References: Microsoft x64 calling convention

Activity

  1. added
    enhancement
    help wanted
    needs testing
    multi-os testing
    on Sep 12, 2026
  2. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wantedmulti-os testingneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions