Skip to content

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 force-pushed the tunip-stmt-doc-def branch from e42741d to d2f328c Compare July 27, 2022 17:03
@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
@junrushao junrushao force-pushed the tunip-stmt-doc-def branch from d2f328c to 0605028 Compare July 27, 2022 17:16
* \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