Lite Ye
834e998618
[TVMScript] Python Expression Precedence ( #12148 )
...
This PR:
- Handle expression (operator) precedence during Python code printing (`(* 1 (+ 2 3))` prints as
`1 * (2 + 3)`)
- Addresses remaining feedback from previous PR #12112
- Reformats Python import with isort
Tracking issue: #11912
2022-07-31 23:45:44 -07:00
Junru Shao
9f16b607c8
[TVMScript] Doc Definition ( #12244 )
...
This single-file PR is automatically generated by a script that describes the Doc AST.
2022-07-30 19:58:08 -07:00
Lite Ye
fcec5f4a76
[TVMScript] StmtDoc Definitions ( #12111 )
...
This PR addes:
- All StmtDoc subclasses
- Python bindings for StmtDoc
Tracking issue: https://github.com/apache/tvm/issues/11912
2022-07-27 16:56:15 -07:00
Lite Ye
584b0f31d8
[TVMScript] ExprDoc ( #12048 )
...
This PR addes:
- All ExprDoc subclasses
- Their Python bindings
- Support of ExprDoc in PythonDocPrinter
- Unit tests for ExprDoc in PythonDocPrinter
Tracking issue: https://github.com/apache/tvm/issues/11912
2022-07-27 09:27:48 -07:00
Lite Ye
9f4bf38b57
[TVMScript] Doc Base Class & DocPrinter Scaffolding ( #11971 )
...
This PR addes:
- Doc base class
- DocPrinter base class
- PythonDocPrinter
- LiteralDoc and its support in DocPrinter
Tracking issue: #11912
2022-07-06 22:11:10 -07:00