forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hexagon] Codegen for 2d Load/Store (apache#10586)
* Added unit tests for codegen of 2d physical buffers in Hexagon. * Update IndexMap when buffers are updated. * Extended CodeGenLLVM::BufferAccessHelper to support N-d This way, a subclass can override GetBufferPtr, without needing to reimplement all of the other indexing logic for BufferLoad/BufferStore. * Updated CodeGenHexagon to treat 2-d physical buffers as T** * Moved indices size check earlier. Previous location in `CodeGenLLVM::BufferAccessHelper` occurred after possible integer wrapping in `indices.size()-1` loop bounds. * Updated to use `llvm::ArrayRef` instead of `std::vector`. * Resolve lint error. * CI fix, contextlib.nullcontext not available on python3.6
- Loading branch information
1 parent
3e173f5
commit 125fc65
Showing
6 changed files
with
431 additions
and
42 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
Oops, something went wrong.