Skip to content

[Refactor] Reduced repetition in CodeGenLLVM's buffer access#10567

Merged
masahi merged 3 commits into
apache:mainfrom
Lunderberg:refactor_codegenllvm_buffer_access
Mar 11, 2022
Merged

[Refactor] Reduced repetition in CodeGenLLVM's buffer access#10567
masahi merged 3 commits into
apache:mainfrom
Lunderberg:refactor_codegenllvm_buffer_access

Conversation

@Lunderberg

Copy link
Copy Markdown
Contributor

Previously, the majority of the BufferLoad and BufferStore visitors were duplicate logic to handle the indexing. After this commit, the shared logic is extracted out into a helper function.

This is in preparation for changes in CodeGenHexagon, which is subclassed from CodeGenLLVM and will use 2-d buffers.

Previously, the majority of the BufferLoad and BufferStore visitors
were duplicate logic to handle the indexing.  After this commit, the
shared logic is extracted out into a helper function.
@Lunderberg

Copy link
Copy Markdown
Contributor Author

Bump to CI, previous CI run failed due to HTTP timeout connecting to https://matplotlib.org/objects.inv

@masahi masahi merged commit a4a481f into apache:main Mar 11, 2022
@Lunderberg Lunderberg deleted the refactor_codegenllvm_buffer_access branch March 11, 2022 14:16
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
…10567)

* [Refactor] Reduced repetition in CodeGenLLVM's buffer access

Previously, the majority of the BufferLoad and BufferStore visitors
were duplicate logic to handle the indexing.  After this commit, the
shared logic is extracted out into a helper function.

* Fixup, remove declaration of unused variable.

* Bump to CI
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.

2 participants