mirror of
https://github.com/tile-ai/tilelang.git
synced 2026-10-21 06:40:23 +08:00
* [Bugfix] Fix issue 2123 access_ptr lowering Add the issue 2123 regression test and keep the access_ptr base BufferLoad intact through safe-memory legalization and lowering. Closes #2123 * Deduplicate access_ptr base load handling Move shared tl.access_ptr BufferLoad base visitation into a common transform helper so LowerAccessPtr and safe-memory legalization stay aligned. Extend the issue 2123 regression with a direct LowerAccessPtr pass check while keeping the LowerAndLegalize pipeline coverage. * Format access_ptr helper header * Narrow access_ptr helper scope * Share access_ptr base helper * Address access_ptr helper review comments * [Transform] Preserve access_ptr buffer loads in safe memory legalization * Refactor AccessPtrInfo return structure in legalize_safe_memory_access.cc Updated the return structure of AccessPtrInfo to improve readability and maintainability. The logic for handling the tvm_access_ptr operation has been streamlined, ensuring clearer checks and consistent formatting of returned values. * fix --------- Co-authored-by: LeiWang1999 <leiwang1999@outlook.com>