Skip to content

chore(deps): bump pliron to master, migrate to TypeHandle API - #277

Merged
nihalpasham merged 1 commit into
mainfrom
chore/pliron-master-bump
Jun 23, 2026
Merged

nihalpasham merged 1 commit into
mainfrom
chore/pliron-master-bump

Conversation

@nihalpasham

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps the pinned pliron rev from af1b7d0 to 8475619 (current pliron-org/pliron master) in both the root workspace and the rustc-codegen-cuda build root, kept in sync so pliron resolves to a single crate and types keep unifying.
  • Migrates the dialect and lowering crates to pliron master's new type-handle API: Ptr<TypeObj> becomes TypeHandle, TypePtr<T> becomes TypedHandle<T>, and the now-unused Ptr / TypeObj imports are dropped.
  • Touches mir-importer, mir-lower, dialect-mir, dialect-nvvm, and llvm-export. This is a dependency bump plus a mechanical API rename; no codegen/behavior changes.
Before: ty: Ptr<pliron::r#type::TypeObj>
After:  ty: pliron::r#type::TypeHandle

Test plan

  • cargo fmt --all -- --check (root + rustc-codegen-cuda)
  • cargo clippy --workspace -- -D warnings (+ rustc-codegen-cuda --all-targets)
  • Unit-test matrix: cargo test -p <pkg> --all-targets across all CI crates + cuda-core --lib (all pass, 0 failures)
  • RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --workspace + cargo test --doc --workspace --exclude cuda-bindings
  • just smoketest: 116/116 examples pass (RTX 5090, sm_120)

Move the pinned pliron rev from af1b7d0 to 8475619 (current
pliron-org/pliron master) in both the root workspace and the
rustc-codegen-cuda build root, kept in sync so pliron resolves to a
single crate and types keep unifying.

pliron master replaces the raw `Ptr<TypeObj>` / `TypePtr<T>` type handles
with the `TypeHandle` / `TypedHandle<T>` aliases. Update mir-importer,
mir-lower, dialect-mir, dialect-nvvm, and llvm-export to the new names and
drop the now-unused `Ptr` / `TypeObj` imports.
@nihalpasham
nihalpasham merged commit 7089321 into main Jun 23, 2026
24 checks passed
@nihalpasham
nihalpasham deleted the chore/pliron-master-bump branch June 23, 2026 15:17
nihalpasham added a commit to honeyspoon/cuda-oxide that referenced this pull request Jun 24, 2026
Rebasing the rz/relu cvt intrinsics onto the post-NVIDIA#277 TypeHandle API
surfaced two breaks the stale base hid:

- The four new emit_* helpers built their result type with the removed
  `TypedHandle::to_ptr()`. Switch to `.to_handle()`, matching the
  sibling emit_cvt_f16x2_f32 on main.
- The commit had picked up seven stray `*Bf16x2Op` arithmetic imports
  (Abs/Add/Sub/Mul/Min/Max/Neg) from an unrelated branch; they are
  undefined here and unused, so drop them to keep the PR cvt-only.
nihalpasham added a commit to honeyspoon/cuda-oxide that referenced this pull request Jun 24, 2026
Rebasing the rz/relu cvt intrinsics onto the post-NVIDIA#277 TypeHandle API
surfaced two breaks the stale base hid:

- The four new emit_* helpers built their result type with the removed
  `TypedHandle::to_ptr()`. Switch to `.to_handle()`, matching the
  sibling emit_cvt_f16x2_f32 on main.
- The commit had picked up seven stray `*Bf16x2Op` arithmetic imports
  (Abs/Add/Sub/Mul/Min/Max/Neg) from an unrelated branch; they are
  undefined here and unused, so drop them to keep the PR cvt-only.
nihalpasham added a commit that referenced this pull request Jun 24, 2026
* feat: add packed cvt variants (rz, relu) for f16x2 and bf16x2

Add four packed type-conversion intrinsics completing the f16x2/bf16x2
conversion family alongside the existing cvt.rn variants:

- cvt.rz.f16x2.f32 / cvt.rz.bf16x2.f32: round-toward-zero truncation
- cvt.rn.relu.f16x2.f32 / cvt.rn.relu.bf16x2.f32: ReLU-fused conversion

Lowered to pure inline PTX assembly with AsmKind::Pure, matching the
existing cvt_f16x2_f32 pattern. Critical for quantization-aware inference
(truncation rounding) and fused activation layers (ReLU).

Part of #274

Signed-off-by: abder <[email protected]>

* fix(cvt): compile packed cvt variants against TypeHandle main

Rebasing the rz/relu cvt intrinsics onto the post-#277 TypeHandle API
surfaced two breaks the stale base hid:

- The four new emit_* helpers built their result type with the removed
  `TypedHandle::to_ptr()`. Switch to `.to_handle()`, matching the
  sibling emit_cvt_f16x2_f32 on main.
- The commit had picked up seven stray `*Bf16x2Op` arithmetic imports
  (Abs/Add/Sub/Mul/Min/Max/Neg) from an unrelated branch; they are
  undefined here and unused, so drop them to keep the PR cvt-only.

---------

Signed-off-by: abder <[email protected]>
Co-authored-by: nihalpasham <[email protected]>
meefs pushed a commit to meefs/cuda-oxide that referenced this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant