|
| | PrimVar (ffi::String name, PrimType dtype=PrimType::Int(32), Span span=Span()) |
| | Construct a scalar variable directly from a primitive type.
|
| |
| | PrimVar (ffi::String name, Type type_annotation, Span span=Span()) |
| | Construct a scalar variable directly from a checked type annotation.
|
| |
| | operator Var () const |
| | Safe widening to a general Var view over the same node.
|
| |
| PrimVar | CopyWithSuffix (const ffi::String &suffix) const |
| |
| PrimVar | CopyWithDType (PrimType dtype) const |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (PrimVar, PrimExpr, VarNode) |
| |
| | PrimExpr (Call call) |
| | Construct from a call after checking that its result type is PrimType.
|
| |
| | PrimExpr (int32_t value) |
| | construct from integer.
|
| |
| | PrimExpr (float value) |
| | construct from float.
|
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (PrimExpr, TypedExpr< PrimType >, ExprNode) |
| |
| PrimType | ty () const |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (TypedExpr, Expr, ExprNode) |
| |
| bool | operator== (const Expr &other) const =delete |
| |
| bool | operator!= (const Expr &other) const =delete |
| |
| bool | operator< (const Expr &other) const =delete |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Expr, ffi::ObjectRef, ExprNode) |
| |
Checked scalar view over a VarNode.
PrimVar is a zero-state reference view over the same VarNode as Var. It additionally guarantees that the inherited ExprNode::ty is PrimType.