Skip to content

Commit 8a99ca9

Browse files
committed
[DOCS][Script] Document the typed integer literal factory
1 parent 27f3551 commit 8a99ca9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • include/tvm/script/printer

‎include/tvm/script/printer/doc.h‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,12 @@ class LiteralDoc : public ExprDoc {
281281
return LiteralDoc(IntImm::Int64(v), p);
282282
}
283283

284-
/*! rief Create an integer literal without narrowing its typed payload. */
284+
/*!
285+
* \brief Create an integer literal preserving its typed payload.
286+
* \param v The typed integer value.
287+
* \param p The object path.
288+
* \return The integer literal.
289+
*/
285290
static LiteralDoc Int(IntImm v, const ffi::Optional<AccessPath>& p) {
286291
return LiteralDoc(std::move(v), p);
287292
}

0 commit comments

Comments
 (0)