Skip to content

Conversation

@Lunderberg
Copy link
Contributor

This parameter is nullable for cases where the else block isn't present. Previously, it was represented as a Stmt holding nullptr, because IfThenElse (#3533) predates the Optional utility (#5314). This commit updates to use Optional<Stmt> instead, and updates all usages of else_case.

This parameter is nullable for cases where the else block isn't
present.  Previously, it was represented as a `Stmt` holding
`nullptr`, because
`IfThenElse` (apache#3533) predates the
`Optional` utility (apache#5314).  This
commit updates to use `Optional<Stmt>` instead, and updates all usages
of `else_case`.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Oct 27, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@Lunderberg
Copy link
Contributor Author

A quick little breather before jumping back into the padded layout transforms. Low priority.

@Lunderberg Lunderberg marked this pull request as ready for review October 28, 2022 12:59
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! Thanks for updating this infra!

@junrushao junrushao merged commit 9dd0225 into apache:main Oct 29, 2022
@Lunderberg Lunderberg deleted the optional_else_case branch October 31, 2022 13:22
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 10, 2022
This parameter is nullable for cases where the else block isn't
present.  Previously, it was represented as a `Stmt` holding
`nullptr`, because
`IfThenElse` (apache#3533) predates the
`Optional` utility (apache#5314).  This
commit updates to use `Optional<Stmt>` instead, and updates all usages
of `else_case`.
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
This parameter is nullable for cases where the else block isn't
present.  Previously, it was represented as a `Stmt` holding
`nullptr`, because
`IfThenElse` (apache#3533) predates the
`Optional` utility (apache#5314).  This
commit updates to use `Optional<Stmt>` instead, and updates all usages
of `else_case`.
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.

3 participants