-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hexagon][LLVM] Enable/test tensorized Hexagon DMA on 2d transformed …
…layout (#10905) * [Hexagon][LLVM] Enable/test tensorized Hexagon DMA - In the `CodeGenLLVM::CreateIntrinsic` handler for `builtin::address_of()`, pass N-d indices to `CodeGenLLVM::CreateBufferPtr`. The base class implementation still asserts that there is a flat memory space, while the `CodeGenHexagon::CreateBufferPtr` override allows 2-d memory. - Enable tensorization in `test_cache_read_write.py`, using `tir.address_of` to pass the lowered value. Co-authored-by: Adam Straw <astraw@octoml.ai> * [TIR] Allow buffer_bind_scope of N-d buffers Previously, any `buffer_bind_scope` attribute that provides a view into a non-flat buffer would result in an error. After this commit, `buffer_bind_scope` may be used for non-flat buffers, but use of `arg_buffer->elem_offset` within the body of the bind statement is still an error. The `BufferNode::elem_offset` field represents the offset between the pointer of the backing allocation and the first element of the buffer. This offset is only well-defined for flat memory spaces. * update test to tensorize cache_read `y` (works) and cache_write `z` (fails) * add `split` to allow for tensorization of cache_write of `z` * fix typo and cleanup comment * add back original 1d test_cache_read_write * update comments * format error Co-authored-by: Adam Straw <astraw@octoml.ai>
- Loading branch information
1 parent
cd6aa7b
commit 11d22bd
Showing
5 changed files
with
143 additions
and
58 deletions.
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