-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
550731e
to
bcd2520
Compare
e42741d
to
d2f328c
Compare
This PR addes: - All StmtDoc subclasses - Python bindings for StmtDoc Tracking issue: apache#11912
d2f328c
to
0605028
Compare
@@ -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) {} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR addes: - All StmtDoc subclasses - Python bindings for StmtDoc Tracking issue: apache#11912
This PR addes:
Tracking issue: #11912
cc @junrushao1994 @gbonik