8000 Integrate llvm-project@faf5d747f174cc by krzysz00 · Pull Request #20828 · iree-org/iree · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Integrate llvm-project@faf5d747f174cc #20828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 16, 2025
Merged

Integrate llvm-project@faf5d747f174cc #20828

merged 14 commits into from
May 16, 2025

Conversation

krzysz00
Copy link
Contributor
@krzysz00 krzysz00 commented May 15, 2025

Integrate torch-mlir@389541fb9ddd

Integrate stablehlo@5837b2a6ce

Dropped reverts

  • Drop revert of the 1:N dialect conversion removal since all dependencies have migrated
  • Drop revert of the APIntParameter error since all dependencies have migrated
  • Drop revert of allowing function type conversion to fail since all dependencies have migrated
  • Drop local modifications to torch-mlir and stablehlo, those are now clean submodules (they're no longer needed now that we've dropped reverts and they've migrated)

Continued reverts

Changes

  • Rename bufferization.to_memref to bufferization.to_buffer everewhere
  • Swap all getSource() on Transfer*Op to getBase()
  • Rename the memref argument of TransferGatherOp to base to match the transfer interface
  • Remove argument materialization calls
    • In the one case where this wasn't trivial, migrate to a target materilazition since that's what upstream advice suggested
  • Handle (in any way that seemed appropriate) the failures that eraseArguments() and eraseResults() can now have
  • Slightly reshuffle the LLVMCPU pipeline so that there's an affine-expand-index-ops after the last FoldMemRefAliasOps call, because FoldMemRefAliasOps now creates affine.linearize_index and affine.delinearize_index which don't seem to lower to LLVM right on their own. See [mlir][MemRef] Use specialized index ops to fold expand/collapse_shape llvm/llvm-project#138930
  • Update narrow type emulation tests to account for correctness fixes in the lineraized shape determination widget
  • Update vectorization tests to account for changes in ee47454bb8be and update the attentiot tiling test to account for an unknown change

Integrate torch-mlir@389541fb9ddd

Integrate stablehlo@5837b2a6ce

- Drop revert of the 1:N dialect conversion removal since all
dependencies have migrated
- Drop revert of the APIntParameter error since all dependencies have
migrated
- Drop revert of allowing function type conversion to fail since all
dependencies have migrated
- Drop local modifications to torch-mlir and stablehlo, those are now
clean submodules (they're no longer needed now that we've dropped
reverts and they've migrated)

- We still have a revert of upstream #137930 since it's not clear the
roccertness issue is resolved (that's the SDWA cndmask thing, see
llvm/llvm-project#138766 )
- We still have a revert of upstream #133231 since that could still be
breaking tests

- Rename bufferization.to_memref to bufferization.to_buffer everewhere
- Swap all getSource() on Transfer*Op to getBase()
- Rename the memref argument of TransferGatherOp to `base` to match
the transfer interface
- Remove argument materialization calls
  - In the one case where this wasn't trivial, migrate to a target
materilazition since that's what upstream advice suggested
- Handle (in any way that seemed appropriate) the failures that
eraseArguments() and eraseResults() can now have
@MaheshRavishankar
Copy link
Contributor

Ok, that did turn out to be complicated. Thanks @krzysz00

@benvanik
Copy link
Collaborator

thanks @krzysz00!

@hanhanW
Copy link
Contributor
hanhanW commented May 15, 2025

(CC @Muzammiluddin-Syed-ECE who is on integrate duty this week.)

@hanhanW
Copy link
Contributor
hanhanW commented May 15, 2025

Many thanks, @krzysz00 !

@krzysz00 krzysz00 enabled auto-merge (squash) May 16, 2025 20:45
@krzysz00 krzysz00 merged commit 1d02350 into main May 16, 2025
62 of 64 checks passed
@krzysz00 krzysz00 deleted the shared/integrate-20250515 branch May 16, 2025 23:55
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.

4 participants
0