Skip to content

Wrap ExpandAtomicModifyPass (Julia 1.13)#564

Merged
maleadt merged 1 commit into
mainfrom
expand-atomic-modify-pass
Jun 15, 2026
Merged

Wrap ExpandAtomicModifyPass (Julia 1.13)#564
maleadt merged 1 commit into
mainfrom
expand-atomic-modify-pass

Conversation

@vchuravy

Copy link
Copy Markdown
Collaborator

Julia 1.13 (JuliaLang/julia#57010, 1.13.0-DEV.321) added the ExpandAtomicModify function pass, which lowers the julia.atomicmodify.* pseudo-intrinsics. Wrap it so downstream packages (e.g. GPUCompiler.jl) don't need to define it themselves.

The pass is registered in Julia as FUNCTION_PASS("ExpandAtomicModify", ExpandAtomicModifyPass()); the version gate matches the introducing commit exactly (contrib/commit-name.sh aab74908dc61.13.0-DEV.321).

Also adds it to the Julia-pipeline replication test in test/newpm.jl, right after FinalLowerGCPass, matching its placement in Julia's src/pipeline.cpp.

Tested on 1.13.0-rc1: newpm and interop suites pass.

🤖 Generated with Claude Code

Julia 1.13 (JuliaLang/julia#57010, 1.13.0-DEV.321) added the
ExpandAtomicModify function pass to lower the julia.atomicmodify
pseudo-intrinsics; wrap it so downstream packages don't have to.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vchuravy

Copy link
Copy Markdown
Collaborator Author

Noticed as part of EnzymeAD/Enzyme.jl#3178

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@           Coverage Diff           @@
##             main     #564   +/-   ##
=======================================
  Coverage   86.33%   86.33%           
=======================================
  Files          47       47           
  Lines        3183     3183           
=======================================
  Hits         2748     2748           
  Misses        435      435           
Files with missing lines Coverage Δ
src/interop/passes.jl 96.66% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maleadt maleadt merged commit 2325562 into main Jun 15, 2026
40 of 41 checks passed
@maleadt maleadt deleted the expand-atomic-modify-pass branch June 15, 2026 18:45
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.

2 participants