Checked scalar view over a VarNode.
More...
#include <expr.h>
|
| | PrimVar (ffi::String name, PrimType dtype=PrimType::Int(32), Location loc=UnknownLoc()) |
| | Construct a scalar variable directly from a primitive type.
|
| |
| | PrimVar (ffi::String name, Type type_annotation, Location loc=UnknownLoc()) |
| | 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 |
| |
| | PrimVar (ffi::ObjectPtr< VarNode > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (PrimVar, PrimExpr, VarNode) |
| |
| TVM_TIRX_DLL | PrimExpr (Call call) |
| | Construct from a call after checking that its result type is PrimType.
|
| |
| TVM_TIRX_DLL | PrimExpr (int32_t value) |
| | construct from integer.
|
| |
| TVM_TIRX_DLL | PrimExpr (float value) |
| | construct from float.
|
| |
| | PrimExpr (ffi::ObjectPtr< ExprNode > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (PrimExpr, TypedExpr< PrimType >, ExprNode) |
| |
| PrimType | ty () const |
| |
| | TypedExpr (ffi::ObjectPtr< ExprNode > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (TypedExpr, Expr, ExprNode) |
| |
| bool | operator== (const Expr &other) const =delete |
| |
| bool | operator!= (const Expr &other) const =delete |
| |
| bool | operator< (const Expr &other) const =delete |
| |
| | Expr (ffi::ObjectPtr< ExprNode > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (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.
◆ PrimVar() [1/3]
Construct a scalar variable directly from a primitive type.
◆ PrimVar() [2/3]
Construct a scalar variable directly from a checked type annotation.
◆ PrimVar() [3/3]
| tvm::PrimVar::PrimVar |
( |
ffi::ObjectPtr< VarNode > |
node | ) |
|
|
inlineexplicit |
◆ CopyWithDType()
◆ CopyWithSuffix()
| PrimVar tvm::PrimVar::CopyWithSuffix |
( |
const ffi::String & |
suffix | ) |
const |
|
inline |
◆ operator Var()
| tvm::PrimVar::operator Var |
( |
| ) |
const |
|
inline |
Safe widening to a general Var view over the same node.
◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()
◆ _type_container_is_exact
| constexpr bool tvm::PrimVar::_type_container_is_exact = false |
|
staticconstexpr |
The documentation for this class was generated from the following file: