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

[Refactor] Remove AttrStmt with storage_scope key #8516

Merged
merged 7 commits into from
Jul 29, 2021

Conversation

masahi
Copy link
Member

@masahi masahi commented Jul 20, 2021

The final follow-up to #8366

After #8366, storage scopes associated with AttrStmt and PointerType are identical. To consolidate storage scope information into one place, I'm proposing to remove AttrStmt with attr::storage_scope key.

With this PR, storage scope information is consolidated to PointerType.

TODO

  • Fix vta tests
  • Update TIR text printer to print storage scope information when printing Allocate node
  • Make sure Hexagon backend doesn't break with this change.

@masahi masahi force-pushed the remove_attr_storage_scope branch from 059f41a to 5009d78 Compare July 20, 2021 23:58
@tqchen
Copy link
Member

tqchen commented Jul 21, 2021

cc @kparzysz-quic would be great if you can help to manage this PR

masahi added a commit to masahi/tvm that referenced this pull request Jul 22, 2021
masahi added a commit to masahi/tvm that referenced this pull request Jul 22, 2021
@masahi masahi marked this pull request as ready for review July 22, 2021 19:54
@masahi
Copy link
Member Author

masahi commented Jul 22, 2021

This is ready for review @tqchen @kparzysz-quic @vinx13 @csullivan
(Will fix the conflict later)

masahi added a commit to masahi/tvm that referenced this pull request Jul 24, 2021
masahi added a commit to masahi/tvm that referenced this pull request Jul 24, 2021
masahi added a commit to masahi/tvm that referenced this pull request Jul 25, 2021
masahi added a commit to masahi/tvm that referenced this pull request Jul 25, 2021
masahi added a commit to masahi/tvm that referenced this pull request Jul 25, 2021
masahi added a commit to masahi/tvm that referenced this pull request Jul 27, 2021
@masahi masahi force-pushed the remove_attr_storage_scope branch 2 times, most recently from 816f272 to 6815973 Compare July 27, 2021 14:30
masahi added a commit to masahi/tvm that referenced this pull request Jul 27, 2021
@masahi masahi force-pushed the remove_attr_storage_scope branch from edade29 to 58841ac Compare July 28, 2021 01:48
masahi added a commit to masahi/tvm that referenced this pull request Jul 28, 2021
masahi added a commit to masahi/tvm that referenced this pull request Jul 28, 2021
@masahi masahi force-pushed the remove_attr_storage_scope branch from 58841ac to 64e1bee Compare July 28, 2021 20:09
@kparzysz-quic kparzysz-quic merged commit bef7bf9 into apache:main Jul 29, 2021
@kparzysz-quic
Copy link
Contributor

Thanks @masahi!

masahi added a commit to masahi/tvm that referenced this pull request Jul 29, 2021
masahi added a commit to masahi/tvm that referenced this pull request Jul 29, 2021
masahi added a commit that referenced this pull request Jul 30, 2021
* Fix storage_access not visiting else branch

* fix conflict with #8516 in the test

* update thread sync test following #8516 update
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
* Remove all attr::storage_scope usage

* pyformat

* fixed VTA tests

* Update TIR text printer to print storage_scope on allocate

* print storage scope in AllocateNode ReprPrinter

* Fixed accidently removed scope tag check

* remove unused function

Co-authored-by: masa <masa@pop-os.localdomain>
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
* Fix storage_access not visiting else branch

* fix conflict with apache#8516 in the test

* update thread sync test following apache#8516 update
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
* Remove all attr::storage_scope usage

* pyformat

* fixed VTA tests

* Update TIR text printer to print storage_scope on allocate

* print storage scope in AllocateNode ReprPrinter

* Fixed accidently removed scope tag check

* remove unused function

Co-authored-by: masa <masa@pop-os.localdomain>
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
* Fix storage_access not visiting else branch

* fix conflict with apache#8516 in the test

* update thread sync test following apache#8516 update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants