forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Diagnostic] Support constructing Diagnostic Error through ObjectRef (a…
…pache#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]>
- Loading branch information
1 parent
1bf0f1b
commit 5f52b15
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters