From d66d0c7ddd0bcd337d75bb46a9fbfebd744c9278 Mon Sep 17 00:00:00 2001 From: Jared Roesch Date: Thu, 30 Jul 2020 13:02:45 -0700 Subject: [PATCH] Add span doc fields --- include/tvm/parser/source_map.h | 2 +- include/tvm/relay/adt.h | 1 + include/tvm/relay/function.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/tvm/parser/source_map.h b/include/tvm/parser/source_map.h index 9ca8a739fd81c..a5ec3ef5e1883 100644 --- a/include/tvm/parser/source_map.h +++ b/include/tvm/parser/source_map.h @@ -63,8 +63,8 @@ struct Source { * \param span The span to report the error at. * \param msg The message to attach. * - * TODO(@jroesch): replace the ostream with an interface for rendering errors. */ + // TODO(@jroesch): replace the ostream with an interface for rendering errors. TVM_DLL void ReportAt(std::ostream& out, const Span& span, const std::string& msg) const; }; diff --git a/include/tvm/relay/adt.h b/include/tvm/relay/adt.h index 4f58e957aaae4..37182abb26813 100644 --- a/include/tvm/relay/adt.h +++ b/include/tvm/relay/adt.h @@ -309,6 +309,7 @@ class Match : public Expr { * \param data the input being deconstructed. * \param clauses The clauses for matching. * \param complete Indicate if this match is complete. + * \param span The span of the expression. */ TVM_DLL Match(Expr data, tvm::Array clauses, bool complete = true, Span span = Span()); diff --git a/include/tvm/relay/function.h b/include/tvm/relay/function.h index 1ae1cbd6ceae5..db973b91f92aa 100644 --- a/include/tvm/relay/function.h +++ b/include/tvm/relay/function.h @@ -110,6 +110,7 @@ class Function : public BaseFunc { * \param ret_type The return type of the function. * \param ty_params The type parameters. * \param attrs Additional function attributes. + * \param span The span of the function. */ TVM_DLL Function(tvm::Array params, Expr body, Type ret_type, tvm::Array ty_params, tvm::DictAttrs attrs = NullValue(), Span span = Span());