Skip to content

Implement support for controlling the alignment of stores and loads#122

Merged
tothambrus11 merged 5 commits into
ambrus/api-v2from
aligned-store-load
May 25, 2026
Merged

Implement support for controlling the alignment of stores and loads#122
tothambrus11 merged 5 commits into
ambrus/api-v2from
aligned-store-load

Conversation

@kyouko-taiga
Copy link
Copy Markdown
Contributor

No description provided.

@kyouko-taiga kyouko-taiga requested a review from tothambrus11 May 25, 2026 07:42
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.87%. Comparing base (c35f454) to head (b9ab172).

Additional details and impacted files
@@                Coverage Diff                @@
##           ambrus/api-v2     #122      +/-   ##
=================================================
+ Coverage          83.42%   83.87%   +0.44%     
=================================================
  Files                 52       54       +2     
  Lines               1418     1445      +27     
=================================================
+ Hits                1183     1212      +29     
+ Misses               235      233       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread Sources/SwiftyLLVM/Values/Instructions/Load.swift Outdated
Co-authored-by: Ambrus Tóth <32463042+tothambrus11@users.noreply.github.com>
setOrdering(.release, for: .init(uncheckedFrom: s2.erased))
let s3 = insertStore(pi, to: x1, at: endOf(b0))
setOrdering(.sequentiallyConsistent, for: s3)
setOrdering(.sequentiallyConsistent, for: .init(uncheckedFrom: s3.erased))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Instruction abstraction seems to be wrong. I will see how we could fix this.

@tothambrus11
Copy link
Copy Markdown
Member

Looks good to me, except the need for the unchecked casts, which was an issue before this PR. I will make a subsequent PR that improves the abstractions, so that IRInstruction protocol is a refinement of IRValue.

@tothambrus11 tothambrus11 merged commit e65f12c into ambrus/api-v2 May 25, 2026
27 checks passed
@tothambrus11 tothambrus11 deleted the aligned-store-load branch May 25, 2026 10:47
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