Lower typed scalar pointer operations through Whale

Đang mở
#879 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
compilers

Hướng nghiên cứu

Start by reproducing the failure in the issue’s Wave source and inspect the Wave adapter’s typed-pointer lowering alongside upstream Whale’s tracked-memory/GEP and provenance rules. Verify scalar pointer signatures, loads/stores, element stride, casts, null behavior, unsupported conversions, and memory boundaries using available upstream facilities; completion requires these cases while leaving C ABI and native lowering out of scope. Discuss the design with @LunaStev before implementation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

discussion enhancement help wanted

Motivation

At fd07427f4a976de05e38eff3ee1760db97fbb761 on Linux amd64 with Rust 1.89 and locked Whale 020d2a4, lexing, parsing and TypedProgram lowering succeed, but calling whale::emit_ir on this source returns Whale backend does not yet support type Pointer(Int(32)):

fun identity(x: ptr<i32>) -> ptr<i32> { return x; }

Scope

Add typed pointers, address-of/dereference and HIR-defined pointer offsets to the Wave adapter. Inspect upstream tracked-memory/GEP and provenance rules first. Preserve Wave stride, null and cast behavior; pointer-to-bool remains unsupported. Do not implement C ABI or native lowering here; upstream frontend #156 is separate.

Difficulty: hard.

Completion criteria

  • Verify scalar pointer signatures, loads/stores and element stride.
  • Cover casts, null and existing unsupported conversions.
  • Test memory boundaries with available upstream facilities.

Please mention @LunaStev to discuss the design before starting implementation.

Ngôn ngữ chính
Rust
Star
56
Fork
21
Merge trung bình
23 giờ 20 phút
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wavefnd/Wave

Tất cả issue của wavefnd/Wave

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.