Class ScopeDoc#

Inheritance Relationships#

Base Type#

Class Documentation#

class ScopeDoc : public tvm::script::printer::StmtDoc#

Reference type of ScopeDocObj.

See also

ScopeDocObj

Public Types

using ContainerType = ScopeDocObj#

Public Functions

explicit ScopeDoc(ffi::Optional<ExprDoc> lhs, ExprDoc rhs, ffi::Array<StmtDoc> body, bool allow_concise_scoping = false)#

Constructor of ScopeDoc.

Parameters:
  • lhs – The name of the scoped variable.

  • rhs – The value of the scoped variable.

  • body – The body of the scope doc.

  • allow_concise_scoping – Whether a tail-position renderer may use a concise form.

explicit ScopeDoc(ExprDoc rhs, ffi::Array<StmtDoc> body)#

Constructor of ScopeDoc.

Parameters:
  • rhs – The value of the scoped variable.

  • body – The body of the scope doc.

inline explicit ScopeDoc(::tvm::ffi::UnsafeInit tag)#
inline __PtrType operator->() const#
inline __PtrType get() const#