[Dev][Language] Separate Base AST with Sugar Syntax #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
tilelanglanguage, focusing on improving the parser and adding licensing information. The most important changes include modifications to the parser imports, the addition of Apache License headers, and improvements to device handling in the profiler utility.Parser and import improvements:
tilelang/language/__init__.py: Replacedtvm.script.parser.tirimports with localparserimports and updated theuse_swizzle,annotate_layout, andimport_sourcefunctions to useblock_attrinstead ofT.block_attr. [1] [2]Licensing and documentation:
tilelang/language/ast/__init__.py,tilelang/language/ast/_ffi_api.py,tilelang/language/parser/__init__.py,tilelang/language/parser/entry.py,tilelang/language/parser/operation.py: Added Apache License headers to these files, indicating modifications from the original TVM project. [1] [2] [3] [4] [5]Device handling improvement:
tilelang/utils/profiler.py: Modified thefuncfunction to use the device of the first input tensor if available, improving device handling.Other changes:
README.md: Updated the image format from SVG to PNG forMatmulExample.tilelang/language/kernel.py: Enhanced the assertion message in the__enter__method to provide more detailed information.