-
Notifications
You must be signed in to change notification settings - Fork 670
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
Cleanup ConvertToStream
to accomodate llvm/llvm-project@3f136f7
#19451
Cleanup ConvertToStream
to accomodate llvm/llvm-project@3f136f7
#19451
Conversation
f6907f1
to
ae6330d
Compare
Carrying the following reverts - llvm/llvm-project#116470 - llvm/llvm-project#117424 - llvm/llvm-project#119671 First two are carry over from previous integrate. It is being fixed in #19451 . The last one is a new failure. --------- Signed-off-by: MaheshRavishankar <[email protected]>
5a48b04
to
475bb6d
Compare
Took some debugging but I think this is pretty close to the end state that we want here. @benvanik PTAL for any red flags you see. There is still some cleanup I need to do here to remove things that might be unnecessary. @matthias-springer overall kudos on the changes to Dialect Conversion! At least in this case the changes you have made get things aligned better. The only thing I will say though is the use of |
1f1a8cc
to
bb4fe70
Compare
ConvertToStream
to accomodate llvm/llvm-project@3f136f7
I went through a few iterations for this API. No good solution so far, I had to write similar code... Originally, I wanted to have a single |
You can have the API be a |
Is there a particular reason why you said |
|
Update LLVM to llvm/llvm-project@3f136f7 (#19479) Carrying the following reverts - llvm/llvm-project#116470 - llvm/llvm-project#117424 - llvm/llvm-project#119671 - llvm/llvm-project#119970 First two are carry over from previous-previous integrate. It is being fixed in #19451 . The last one is a from the previous integrate. The last one is a new error being tracked in #19498 --------- Signed-off-by: Stanley Winata <[email protected]>
Update LLVM to llvm/llvm-project@b07e7b76c5d532a6 (llvm/llvm-project#120002) Carrying the following reverts - llvm/llvm-project#116470 - llvm/llvm-project#117424 - llvm/llvm-project#119671 - llvm/llvm-project#119970 First two are carry over from previous-previous integrate. It is being fixed in iree-org#19451 . The last one is a from the previous integrate. The last one is a new error being tracked in iree-org#19498 Signed-off-by: Stanley Winata <[email protected]>
Update LLVM to llvm/llvm-project@b07e7b76c5d532a6 (llvm/llvm-project#120002) Carrying the following reverts - llvm/llvm-project#116470 - llvm/llvm-project#117424 - llvm/llvm-project#119671 - llvm/llvm-project#119970 First two are carry over from previous-previous integrate. It is being fixed in iree-org#19451 . The last one is a from the previous integrate. The last one is a new error being tracked in iree-org#19498 Signed-off-by: Stanley Winata <[email protected]>
Fixes iree-org#19448 Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
…rsionPattern` and make the latter use `OneToNOpAdaptor`. Signed-off-by: MaheshRavishankar <[email protected]>
This can be obtained directly from the adaptor. Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
1a40afa
to
65f9e35
Compare
The upstream change llvm/llvm-project@3f136f7 allows
ConvertToStream
to better handle the 1:N type conversion, specifically the type conversion of atensor<...>
to!stream.resource<*>, index
. Now instead of trying to work aroundbuiltin.unrealized_conversion_cast
s the conversion can get the converted values directly using theOneToNAdaptor
and can also replace atensor<..>
directly with multiple values using theConversionPatternRewriter::replaceOpWithMultiple
.These changes are required to drop the revert of llvm/llvm-project#116470 in the IREE ToM. The change drops these reverts as well.
Fixes #19448