Skip to content

add bufferization-preparation passes to lattigo pipeline#3001

Merged
copybara-service[bot] merged 1 commit into
google:mainfrom
AlexanderViand:lattigo-prepare-bufferize
May 29, 2026
Merged

add bufferization-preparation passes to lattigo pipeline#3001
copybara-service[bot] merged 1 commit into
google:mainfrom
AlexanderViand:lattigo-prepare-bufferize

Conversation

@AlexanderViand

Copy link
Copy Markdown
Collaborator

Bufferization is pretty picky about what ops it will support, for example it does not accept arithf.add %t1, %t2 : tensor<...> but instead wants the linalg.generic version. We already do this in other bufferization-using pipelines, this PR simply gives that set of passes a nice name/helper and adds it to the lattigo pipeline, too.

PS: Sorry for the piece-meal PRs, I didn't realize the rabbit hole I'd be going down as part of rebasing our stuff onto the new bufferized lattigo backend

@AlexanderViand
AlexanderViand requested a review from j2kun May 28, 2026 12:46

@j2kun j2kun left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! I think I discovered this while working on something similar today where arith.truncf was not supported

@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label May 29, 2026
@copybara-service
copybara-service Bot merged commit d585aaf into google:main May 29, 2026
19 checks passed
@AlexanderViand
AlexanderViand deleted the lattigo-prepare-bufferize branch June 5, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants