Skip to content

Conversation

@MasterJH5574
Copy link
Contributor

This PR is a cherry-pick of #13977.


This PR supports creating a diagnostic error from an arbitrary Object.

Given that we are bringing the diagnostic error for general uses in the long term, in which case

  • not every Expr necessarily has a span,
  • we have well-implemented elegant location-aware printer for an object itself,
  • we may need to print some object other than Expr, or does even not have a span field,
    we support diagnostic error with arbitrary object to denote the location.

Co-authored-by: Tianqi Chen [email protected]

This PR supports creating a diagnostic error from an arbitrary Object.

Given that we are bringing the diagnostic error for general uses in the
long term, in which case
* not every Expr necessarily has a span,
* we have well-implemented elegant location-aware printer for an object
itself,
* we may need to print some object other than Expr, or does even not
have a span field,
we support diagnostic error with arbitrary object to denote the
location.

Co-authored-by: Tianqi Chen <[email protected]>
@tvm-bot
Copy link
Collaborator

tvm-bot commented Feb 14, 2023

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

@MasterJH5574
Copy link
Contributor Author

Closed as the unity branch is ongoing with a rebase.

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