Skip to content

Add APIs for deterministic module layout - #586

Merged
maleadt merged 4 commits into
mainfrom
tb/deterministic-module-layout
Aug 17, 2026
Merged

Add APIs for deterministic module layout#586
maleadt merged 4 commits into
mainfrom
tb/deterministic-module-layout

Conversation

@maleadt

@maleadt maleadt commented Aug 16, 2026

Copy link
Copy Markdown
Member

Add APIs for reordering module contents and resetting named metadata:

  • support move_before and move_after for functions and global variables
  • support sort! on module function and global iterators, sorting by name by default
  • support empty! on named metadata nodes
  • add the corresponding LLVMExtra C APIs and bindings for LLVM 15–22

This enables deterministic function and global ordering without rebuilding the module.

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #586      +/-   ##
==========================================
+ Coverage   84.84%   84.94%   +0.09%     
==========================================
  Files          47       47              
  Lines        3207     3228      +21     
==========================================
+ Hits         2721     2742      +21     
  Misses        486      486              
Files with missing lines Coverage Δ
src/core/function.jl 98.37% <100.00%> (+0.02%) ⬆️
src/core/metadata.jl 76.31% <100.00%> (+0.47%) ⬆️
src/core/module.jl 93.60% <100.00%> (+0.56%) ⬆️
src/core/value/constant.jl 90.95% <100.00%> (+0.08%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maleadt
maleadt merged commit ddf1243 into main Aug 17, 2026
41 checks passed
@maleadt
maleadt deleted the tb/deterministic-module-layout branch August 17, 2026 05:39
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