Repository navigation
Change ukernels calling convention to default - #16541
Merged
Merged
Conversation
bjacob
changed the base branch from
main
to
bjacob-delete-experimental-cpu-ukernel
February 22, 2024 22:11
bjacob
marked this pull request as ready for review
February 22, 2024 23:22
bjacob
requested review from
MaheshRavishankar,
benvanik,
dcaballe and
hanhanW
as code owners
February 22, 2024 23:22
MaheshRavishankar
approved these changes
Feb 23, 2024
MaheshRavishankar
left a comment
Collaborator
There was a problem hiding this comment.
Looks good to me. I think this is a better solution overall!
| auto fn = getFnNameAndDefAttrs(ukernelName, rewriter, targetAttr); | ||
| SmallVector<Type> returnTypes{outType}; | ||
| if (!isVMVXBackend(targetAttr)) { | ||
| // Hack to avoid issues with void-returning functions in llvm-cpu. |
Collaborator
There was a problem hiding this comment.
Not sure I would characterize this as a hack. This is a legit thing to do if the ukernel is returning a scalar value.
Collaborator
Author
There was a problem hiding this comment.
but it's not! it's really a void-returning kernel and we're making it return an int... as a hack.
bjacob
force-pushed
the
bjacob-delete-experimental-cpu-ukernel
branch
from
March 1, 2024 03:30
cf3bb7b to
5a299ca
Compare
bjacob
force-pushed
the
bjacob-ukernel-cconv
branch
from
March 1, 2024 04:12
3b8acd0 to
5b2d9ac
Compare
bjacob
enabled auto-merge (squash)
March 1, 2024 04:14
IanNod
pushed a commit
to IanNod/iree
that referenced
this pull request
Mar 14, 2024
* iree: 7c9bb50 Start work on a new incremental LLVM integrate script. (iree-org#14318) (Thu Jul 6 18:58:58 2023 -0700) * xla: bbe8f5660 Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/f734f1785b225fd68fb8694765b290000ef15bb5. (Fri Jul 7 10:30:10 2023 -0700) * jax: ded88a83a Merge pull request iree-org#16541 from axch:ragged-transformer (Fri Jul 7 11:23:59 2023 -0700)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will be useful to introduce the mmt4d-query ukernel for #15784, as the default calling convention allows for scalar return values. This is also a cleanup in its own right: at this point, ukernels only use ParameterStruct calling convention for historical reasons.