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

[TIR] Add DeclBuffer IR node and functors #12300

Merged
merged 8 commits into from
Aug 5, 2022

Conversation

vinx13
Copy link
Member

@vinx13 vinx13 commented Aug 3, 2022

This PR is part of #11627. It added the IR node DeclBufferNode, IR functors and TVMScript printer / parser.

cc @tqchen @Lunderberg @Hzfengsy @junrushao1994 @wrongtest-intellif

@vinx13 vinx13 marked this pull request as ready for review August 3, 2022 22:06
@junrushao
Copy link
Member

junrushao commented Aug 4, 2022

CC @cyx-6 please review for potential TVMScript syntactic/semantic change :-)

@cyx-6
Copy link
Contributor

cyx-6 commented Aug 4, 2022

CC @cyx-6 please review for potential TVMScript syntactic/semantic change :-)

LGTM. New parser is compatible with this change, and will be updated soon.

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

Overall LGTM. A quick question: after this change, the parser will treat T.decl_buffer as an IR construct instead of an intrinsic that declares a buffer - is my understanding correct?

src/target/source/codegen_c.cc Outdated Show resolved Hide resolved
@vinx13
Copy link
Member Author

vinx13 commented Aug 5, 2022

yes. T.buffer_decl will be deprecated in the future

@vinx13 vinx13 merged commit 5821c12 into apache:main Aug 5, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
* [TIR] Add DeclBuffer node

* [TIR] Add IR functors for DeclBuffer

* [TVMScript] Add printer and parser for DeclBuffer

* Update printer

* Update printer

* Add test case

* lint

* fix
quic-sanirudh added a commit to quic-sanirudh/tvm that referenced this pull request Feb 23, 2023
`DeclBufferNode` was added recently in apache#12300, but support to traverse it in codegen_llvm was not added. Since this just stmt just declares a new buffer for a body of TIR, we just need to traverse the body to properly generate code for LLVM.
kparzysz-quic pushed a commit that referenced this pull request Feb 23, 2023
`DeclBufferNode` was added recently in #12300, but support to traverse it in codegen_llvm was not added. Since this just stmt just declares a new buffer for a body of TIR, we just need to traverse the body to properly generate code for LLVM.
yongwww pushed a commit to yongwww/tvm that referenced this pull request Feb 27, 2023
`DeclBufferNode` was added recently in apache#12300, but support to traverse it in codegen_llvm was not added. Since this just stmt just declares a new buffer for a body of TIR, we just need to traverse the body to properly generate code for LLVM.
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