|
tvm
|
Typed reference/view over any Expr whose ExprNode::ty is PrimType.
More...
#include <base_expr.h>
Public Member Functions | |
| 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) | |
Public Member Functions inherited from tvm::TypedExpr< PrimType > | |
| PrimType | ty () const |
| TypedExpr (ffi::ObjectPtr< ExprNode > node) | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (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 |
| Expr (ffi::ObjectPtr< ExprNode > node) | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Expr, ffi::ObjectRef, ExprNode) | |
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_TIRX_DLL 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_TIRX_DLL tvm::PrimExpr::PrimExpr | ( | int32_t | value | ) |
construct from integer.
| value | The value to be constructed. |
| TVM_TIRX_DLL tvm::PrimExpr::PrimExpr | ( | float | value | ) |
construct from float.
| value | The value to be constructed. |
|
inlineexplicit |
| tvm::PrimExpr::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE | ( | PrimExpr | , |
| TypedExpr< PrimType > | , | ||
| ExprNode | |||
| ) |
|
staticconstexpr |