|
tvm
|
Typed reference/view over any Expr whose ExprNode::ty is PrimType.
More...
#include <base_expr.h>
Public Member Functions | |
| PrimExpr (Call call) | |
| Construct from a call after checking that its result type is PrimType. More... | |
| PrimExpr (int32_t value) | |
| construct from integer. More... | |
| PrimExpr (float value) | |
| construct from float. More... | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (PrimExpr, TypedExpr< PrimType >, ExprNode) | |
Public Member Functions inherited from tvm::TypedExpr< PrimType > | |
| PrimType | ty () const |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (TypedExpr, Expr, ExprNode) | |
Public Member Functions inherited from tvm::Expr | |
| 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) | |
Static Public Member Functions | |
| static PrimExpr | ConvertFallbackValue (ffi::String value) |
| construct from string to form a StringImm. More... | |
Static Public Attributes | |
| static constexpr bool | _type_container_is_exact = false |
Static Public Attributes inherited from tvm::TypedExpr< PrimType > | |
| static constexpr bool | _type_container_is_exact |
Typed reference/view over any Expr whose ExprNode::ty is PrimType.
PrimExpr is a type category rather than a dedicated runtime node category. It can contain intrinsic primitive nodes such as IntImmNode and FloatImmNode, or a general ExprNode such as CallNode, when that expression's ty field is a PrimType. This keeps primitive-only APIs explicit while allowing shared Expr nodes for cross-dialect values with richer result types when needed.
| tvm::PrimExpr::PrimExpr | ( | Call | call | ) |
Construct from a call after checking that its result type is PrimType.
| call | The call to view as a primitive expression. |
| tvm::PrimExpr::PrimExpr | ( | int32_t | value | ) |
construct from integer.
| value | The value to be constructed. |
| tvm::PrimExpr::PrimExpr | ( | float | value | ) |
construct from float.
| value | The value to be constructed. |
|
static |
construct from string to form a StringImm.
| value | The value to be constructed. |
| tvm::PrimExpr::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE | ( | PrimExpr | , |
| TypedExpr< PrimType > | , | ||
| ExprNode | |||
| ) |
|
staticconstexpr |