Skip to content

Conversation

@Yu-Zhewen
Copy link

@Yu-Zhewen Yu-Zhewen commented Oct 29, 2025

Bump LLVM to llvm/llvm-project@41f6566
Bump StableHLO to openxla/stablehlo@4c0d484

Revert llvm/llvm-project#164649, will address in a follow-up PR.

Fix RegionBranchPoint/RegionSuccessor as llvm/llvm-project#165429
Fix populateExpansionPatterns as llvm/llvm-project#151153

Integrate #4311

Copy link
Contributor

@hanhanW hanhanW left a comment

Choose a reason for hiding this comment

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

The change looks good to me. I checked how upstream is doing and they match

@sahas3
Copy link
Member

sahas3 commented Oct 30, 2025

@Yu-Zhewen thanks for this change. You probably need to integrate changes in #4311 by @justin-ngo-arm

Yu-Zhewen added a commit to iree-org/iree that referenced this pull request Oct 30, 2025
Still carrying two reverts as #22366.

New cherry-picks:
- [MLIR] Revamp RegionBranchOpInterface
(llvm/llvm-project@41f6566)
- Corresponding torch-mlir fix
(llvm/torch-mlir#4358)

Also, IREE fixes on `RegionBranchPoint` and `RegionSuccessor`.

ci-extra: test_torch, windows_x64_msvc

Signed-off-by: Yu-Zhewen <[email protected]>
@Yu-Zhewen
Copy link
Author

Yu-Zhewen commented Oct 31, 2025

@Yu-Zhewen thanks for this change. You probably need to integrate changes in #4311 by @justin-ngo-arm

Thanks, @sahas3. We also need to address the deprecation from llvm/llvm-project#164649. I already have a fix, but it’s around 10k lines of changes (iree-org@553f323). Would you be okay if I revert llvm/llvm-project#164649 in this PR and then submit a separate PR for the larger fix?

@hanhanW
Copy link
Contributor

hanhanW commented Oct 31, 2025

@Yu-Zhewen thanks for this change. You probably need to integrate changes in #4311 by @justin-ngo-arm

Thanks, @sahas3. We also need to address the deprecation from llvm/llvm-project#164649. I already have a fix, but it’s around 10k lines of changes (iree-org@553f323). Would you be okay if I revert llvm/llvm-project#164649 in this PR and then submit a separate PR for the larger fix?

@Yu-Zhewen maybe we leave the patch here and ask the torch-mlir integrator to pick this up. We already cherry-pick the change in IREE and it works well.

The last bump is 2 months ago, and I think it not IREE build gardener's responsibility to maintain torch-mlir llvm state. (cc @MaheshRavishankar )

Yu-Zhewen and others added 6 commits November 5, 2025 03:03
Signed-off-by: Yu-Zhewen <[email protected]>
Signed-off-by: Yu-Zhewen <[email protected]>
Signed-off-by: Yu-Zhewen <[email protected]>
…o enums

Context: TOSA's rounding mode, nan propagation, and resize mode have
been updated from string attributes to enums.

This commit updates the Torch to TOSA path to align with those changes.

Signed-off-by: Justin Ngo <[email protected]>
Signed-off-by: Yu-Zhewen <[email protected]>
@Yu-Zhewen Yu-Zhewen force-pushed the users/Yu-Zhewen/integrate-llvm-41f6566 branch from 1da0692 to 9b579d8 Compare November 5, 2025 13:26
[submodule "externals/llvm-project"]
path = externals/llvm-project
url = https://github.com/llvm/llvm-project.git
url = https://github.com/iree-org/llvm-project.git
Copy link
Author

Choose a reason for hiding this comment

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

I don't have commit access to llvm, so doing the revert on a fork. Will change it back in the follow-up PR

Copy link
Collaborator

@sjarus sjarus left a comment

Choose a reason for hiding this comment

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

Triggering CI

IanWood1 added a commit to iree-org/iree that referenced this pull request Nov 5, 2025
Carries cherry-pick
iree-org/torch-mlir@42dff72
(WIP PR llvm/torch-mlir#4358)


Fixes ONNX failure related to i1 tensors.

---------

Signed-off-by: Ian Wood <[email protected]>
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.

5 participants