Skip to content
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

Integrate LLVM at 6d847b1aada50d59c3e29f2e7eff779c0ee8182c #4073

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

vivekkhandelwal1
Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 commented Mar 4, 2025

Update LLVM to llvm/llvm-project@6d847b1

TOSA Updates Summary:

1: [TOSA] Update tosa.transpose's perms as attributes
Update tosa.transpose's perms to attributes according to TOSA 1.0
Update LIT tests

2: [TOSA] Rename ReduceProd to ReduceProduct
Update ReduceProd name to ReduceProduct in align with TOSA 1.0 spec

3: [TOSA] Change PadOp's pad_const to rank 1
Require PadOp's pad_const to be rank 1 in align with TOSA 1.0 spec

4: [TOSA] Generate correct parameters for conv ops
Bug fix: According to TOSA spec
(https://www.mlplatform.org/tosa/tosa_spec.html#_conv2d), full height and width values must be divisible by stride values. This commit adds checks for that divisibility and modifies pad values and/or slices input to generate TOSA-compliant parameters for convolution ops.

5: [TOSA] Update LIT tests and e2e results


Signed-off-by: Vivek Khandelwal [email protected]
Co-authored-by: Justin Ngo [email protected]

justin-ngo-arm and others added 2 commits March 4, 2025 10:16
Commit 1: [TOSA] Update tosa.transpose's perms as attributes

* Update tosa.transpose's `perms` to attributes according to TOSA 1.0
* Update LIT tests

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: Ica81298db8acaf15e1e29e41cffa1f70e726ad5c

Commit 2: [TOSA] Rename ReduceProd to ReduceProduct

Update ReduceProd name to ReduceProduct in align with TOSA 1.0 spec

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: Ia285ac013ea8b57021f72a2c3b46e3ac33c07750

Commit 3: [TOSA] Change PadOp's pad_const to rank 1

Require PadOp's pad_const to be rank 1 in align with TOSA 1.0 spec

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: Ic51d9ac2544a6c12234afc5208f08efced9dd124

Commit 4: [TOSA] Generate correct parameters for conv ops

Bug fix: According to TOSA spec
(https://www.mlplatform.org/tosa/tosa_spec.html#_conv2d), full height
and width values must be divisible by stride values. This commit adds
checks for that divisibility and modifies pad values and/or slices
input to generate TOSA-compliant parameters for convolution ops.

Signed-off-by: Justin Ngo <[email protected]>
Change-Id: I6341450c324ec5d58907acc3c711614f24343a73

Commit 5: [TOSA] Update LIT tests and e2e results

Signed-off-by: Justin Ngo <[email protected]>
Copy link
Collaborator

@jinchen62 jinchen62 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@vivekkhandelwal1 vivekkhandelwal1 merged commit 602d068 into llvm:main Mar 5, 2025
3 checks passed
@vivekkhandelwal1 vivekkhandelwal1 deleted the bump-llvm branch March 5, 2025 07:23
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