Checked scalar view over a VarObj.
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< VarObj > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (PrimVar, PrimExpr, VarObj) |
| |
| TVM_TIRX_DLL | PrimExpr (int32_t value) |
| | construct from integer.
|
| |
| TVM_TIRX_DLL | PrimExpr (float value) |
| | construct from float.
|
| |
| | PrimExpr (ffi::ObjectPtr< ExprObj > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (PrimExpr, TypedExpr< PrimType >, ExprObj) |
| |
| PrimType | ty () const |
| |
| | TypedExpr (ffi::ObjectPtr< ExprObj > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (TypedExpr, Expr, ExprObj) |
| |
| bool | operator== (const Expr &other) const =delete |
| |
| bool | operator!= (const Expr &other) const =delete |
| |
| bool | operator< (const Expr &other) const =delete |
| |
| | Expr (ffi::ObjectPtr< ExprObj > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Expr, ffi::ObjectRef, ExprObj) |
| |
Checked scalar view over a VarObj.
PrimVar is a zero-state reference view over the same VarObj as Var. It additionally guarantees that the inherited ExprObj::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< VarObj > |
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:
- 3rdparty/tvm-tirx/include/tvm/ir/expr.h