Skip to content

Conversation

@erick-xanadu
Copy link
Contributor

@erick-xanadu erick-xanadu commented Jul 24, 2025

Context: Catalyst is updating LLVM, which includes a redefinition of this operation in the transform dialect.
Note:
Only merge after PennyLaneAI/catalyst#1916

Description of the Change: Redefine the ApplyRegisteredPass in the transform dialect to support Catalyst's generic format.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

[sc-96972]

@github-actions
Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@erick-xanadu erick-xanadu added the unified compiler Issues and pull requests related to PennyLane's xDSL python compiler. label Jul 24, 2025
@paul0403
Copy link
Member

Thanks! I will take a look in a bit 👍

@mehrdad2m
Copy link
Contributor

Is this change necessary because we are ahead of xdsl's LLVM version? In other words, can this be reverted once xdsl updates their transform dialect to reflect the new LLVM change?

@paul0403
Copy link
Member

Is this change necessary because we are ahead of xdsl's LLVM version? In other words, can this be reverted once xdsl updates their transform dialect to reflect the new LLVM change?

Yes

@erick-xanadu erick-xanadu requested a review from joeycarter July 25, 2025 14:08
@mehrdad2m mehrdad2m requested review from mudit2812 and paul0403 August 1, 2025 15:34
@mehrdad2m mehrdad2m marked this pull request as ready for review August 1, 2025 15:55
Copy link
Member

@paul0403 paul0403 left a comment

Choose a reason for hiding this comment

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

I'm pre-approving given the resolution of my comments since I'm away next week!

@codecov
Copy link

codecov bot commented Aug 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.68%. Comparing base (23d998e) to head (d3b9139).
⚠️ Report is 421 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7956      +/-   ##
==========================================
- Coverage   99.68%   99.68%   -0.01%     
==========================================
  Files         545      543       -2     
  Lines       56658    55894     -764     
==========================================
- Hits        56482    55718     -764     
  Misses        176      176              

☔ 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.

@mehrdad2m mehrdad2m enabled auto-merge August 7, 2025 17:42
Copy link
Contributor

@mudit2812 mudit2812 left a comment

Choose a reason for hiding this comment

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

Nice, just one non-blocking comment. Looks great!

@mehrdad2m mehrdad2m added this pull request to the merge queue Aug 15, 2025
Merged via the queue into master with commit 64fb6ac Aug 15, 2025
52 checks passed
@mehrdad2m mehrdad2m deleted the eochoa/2025-07-24/transform-dialect-update branch August 15, 2025 17:07
mehrdad2m added a commit to PennyLaneAI/catalyst that referenced this pull request Dec 3, 2025
**Context:**
The local transform dialect was created in
PennyLaneAI/pennylane#7956 because xdsl was not
up to date with Catalyst's LLVM version which updated the transform
dialect to accept dictionaries as options. Since xDSL has now updated
their LLVM version, we can remove the local dialect.
 
**Description of the Change:**
Remove the local shim for the transform dialect and use the xdsl
upstream one.

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

unified compiler Issues and pull requests related to PennyLane's xDSL python compiler.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants