Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TVMScript] StmtDoc Definitions #12111

Merged
merged 3 commits into from
Jul 27, 2022
Merged

Conversation

yelite
Copy link
Contributor

@yelite yelite commented Jul 15, 2022

This PR addes:

  • All StmtDoc subclasses
  • Python bindings for StmtDoc

Tracking issue: #11912

cc @junrushao1994 @gbonik

@github-actions github-actions bot requested a review from junrushao July 15, 2022 19:35
@yelite yelite force-pushed the tunip-stmt-doc-def branch 2 times, most recently from 550731e to bcd2520 Compare July 19, 2022 19:12
@yelite yelite marked this pull request as ready for review July 27, 2022 17:03
This PR addes:

- All StmtDoc subclasses
- Python bindings for StmtDoc

Tracking issue: apache#11912
@@ -219,6 +292,7 @@ class IdDoc : public ExprDoc {
* \param name The name of identifier.
*/
explicit IdDoc(String name);
explicit IdDoc(std::nullptr_t) : ExprDoc(nullptr) {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is a good idea to explicitly define constructor with std::nullptr_t so that the compiler could distinguish between nullptr -> const char* -> String and nullptr -> ObjectPtr

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@junrushao junrushao merged commit fcec5f4 into apache:main Jul 27, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
This PR addes:

- All StmtDoc subclasses
- Python bindings for StmtDoc

Tracking issue: apache#11912
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