Skip to content

transformations: add exp-to-chebyshev lowering pass#5820

Open
szerdick wants to merge 9 commits into
xdslproject:mainfrom
szerdick:szerdick/add-chebyshev-pass
Open

transformations: add exp-to-chebyshev lowering pass#5820
szerdick wants to merge 9 commits into
xdslproject:mainfrom
szerdick:szerdick/add-chebyshev-pass

Conversation

@szerdick
Copy link
Copy Markdown
Collaborator

@szerdick szerdick commented Apr 10, 2026

Depends on the PR: #5798

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 90.09009% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.24%. Comparing base (d875f35) to head (0e467f5).

Files with missing lines Patch % Lines
xdsl/transforms/expand_math_to_chebyshev.py 89.81% 3 Missing and 8 partials ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #5820    +/-   ##
========================================
  Coverage   86.23%   86.24%            
========================================
  Files         418      419     +1     
  Lines       59893    60004   +111     
  Branches     6920     6937    +17     
========================================
+ Hits        51649    51748    +99     
- Misses       6660     6663     +3     
- Partials     1584     1593     +9     

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

@szerdick szerdick force-pushed the szerdick/add-chebyshev-pass branch from 9c8ad92 to 7250be6 Compare April 10, 2026 17:09
szerdick and others added 7 commits April 20, 2026 10:04
Add a new pass that expands math.exp using Chebyshev polynomial
approximation with Clenshaw evaluation, as an alternative to the
existing Taylor series approach. Inspired by Google HEIR's polynomial
approximation for FHE.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…_degree attribute

The Chebyshev pass now only fires on math.exp ops that have a
chebyshev_degree attribute, allowing it to coexist with the Taylor
pass in the same pipeline. Also reads lower/upper bounds from op
attributes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@szerdick szerdick force-pushed the szerdick/add-chebyshev-pass branch from 379f89d to c96cb6f Compare April 20, 2026 09:13
@szerdick szerdick requested a review from superlopuh April 20, 2026 09:31
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