-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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] Enforce attaching storage scope to PointerType #8366
Merged
Merged
Changes from 89 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
a84db69
Add storage scope to ProducerRealize, always create a buffer with scope
0140631
update schedule_ops.cc
b6d8e6c
update schedule_postproc_to_primfunc.cc
bebcc50
restore more realize_scope
edeaed2
make the default scope be "" instead of None in ir builder
cd6167e
restore realize_scope visit in storage_flatten.cc
a33fb0d
update storage_access.cc
e878eae
make sure buffer var is of PointerType in ir builder
9f98dea
enforce default storage scope of global
2923f4d
added remap pass but does not work yet
masahi 6a79354
fixed all reduce issue
masahi a566af9
simplify
masahi 345573a
trying mitigation for aot test
masahi be2ab96
merge remaining changes from initial branch
masahi f83cba0
remove use of attr::storage_scope from codegen
f1b0f3c
restore a visit to AttrStmt with attr::storage_scope in storage_rewrite
30edcd6
disable check
9560f1b
lint fix
3de3edd
revert default scope to ""
masahi b703d8b
format
masahi b7abe5a
fix volatile access to shared mem in lower all reduce
62f818c
fixed gpu coorporative load/store test
d41bdc8
pass storage scope to PointerType in tvm script parser
594d34b
fixed tvmscript roundtrip test
151eb02
fixed tir flatten buffer test
1e88335
fixed test_tir_transform_hoist_if.py
7e8a7c1
use storage scope global by default in aot_executor_codegen.cc
d458187
add missing default storage scope in create_primfunc.cc
410fd45
restore StorageInfo struct in llvm backend
742c243
UpdateStorageScope -> WithStorageScope
aa90d42
fixed lower warp memory test
1e9a7a3
GetStorageScope -> GetPtrStorageScope
afbe7f1
Enable storage scope invariant check in AttrStmt constructor
ee3aa5d
remove GetPtrStorageScope and WithStorageScope from public header
accfff4
move RemapStorageScope to its own file
a74aece
add more method to RemapStorageScope
98c3c3c
update lower_thread_allreduce to use RemapStorageScope
bafdb47
RemapStorageScope -> UpdatePointerStorageScope
16c81b5
remove realize_scope from hybrid script
masahi a14c5fa
removed realize_scope in schedule_ops
masahi c2ea828
remove realize_scope from schedule_postproc_to_primfunc
masahi d401022
remove remaining realize_scope usage from schedule_ops.cc
masahi de83623
remove realize_scope usage from storage_flatten.cc
masahi 426b573
fixed test_tir_transform_lower_warp_memory.py following realize_scope…
1964f74
Add storage scope to ProducerRealize, always create a buffer with scope
63e0c85
update schedule_ops.cc
24225e5
update schedule_postproc_to_primfunc.cc
9ddfb28
restore more realize_scope
416169c
make the default scope be "" instead of None in ir builder
da3053e
restore realize_scope visit in storage_flatten.cc
76ed1ab
update storage_access.cc
e95146e
make sure buffer var is of PointerType in ir builder
13b2efc
enforce default storage scope of global
ae8858a
added remap pass but does not work yet
masahi cec5a0a
fixed all reduce issue
masahi e4f0965
simplify
masahi fca791c
trying mitigation for aot test
masahi a80dfad
merge remaining changes from initial branch
masahi 6fd0fb3
remove use of attr::storage_scope from codegen
b3fa275
restore a visit to AttrStmt with attr::storage_scope in storage_rewrite
b62d8a1
disable check
4a084d7
lint fix
73911a9
revert default scope to ""
masahi 1c8b779
format
masahi 9f54b62
fix volatile access to shared mem in lower all reduce
034fb72
fixed gpu coorporative load/store test
6081519
pass storage scope to PointerType in tvm script parser
2d92f6d
fixed tvmscript roundtrip test
35fb917
fixed tir flatten buffer test
46647e9
fixed test_tir_transform_hoist_if.py
db8eb9a
use storage scope global by default in aot_executor_codegen.cc
66c61ae
add missing default storage scope in create_primfunc.cc
bd76606
restore StorageInfo struct in llvm backend
4cae209
UpdateStorageScope -> WithStorageScope
01b94cc
fixed lower warp memory test
cbaa6e7
GetStorageScope -> GetPtrStorageScope
20b930b
Enable storage scope invariant check in AttrStmt constructor
a247d94
remove GetPtrStorageScope and WithStorageScope from public header
0d8c9bc
move RemapStorageScope to its own file
c295338
add more method to RemapStorageScope
ebaceb9
update lower_thread_allreduce to use RemapStorageScope
0bf5081
RemapStorageScope -> UpdatePointerStorageScope
c03c360
remove realize_scope from hybrid script
masahi 21d4134
removed realize_scope in schedule_ops
masahi 0ff503b
remove realize_scope from schedule_postproc_to_primfunc
masahi 086d891
remove remaining realize_scope usage from schedule_ops.cc
masahi e60ad8d
remove realize_scope usage from storage_flatten.cc
masahi cb697d8
fixed test_tir_transform_lower_warp_memory.py following realize_scope…
6a11ab4
minor fix
masahi f459dbf
Address comments
masahi 3e5e0ef
Remove blank line diff
masahi 5710513
Merge remote-tracking branch 'upstream/main' into storage_scope_refactor
masahi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @spectrometerHBH for tvmscript changes. This is for distinguishing a normal variable from a buffer variable. The latter one requires storage scope. See the change in
test_tvmscript_roundtrip.py
. The tvm script printer was also updated.