|
tvm
|
Base expr nodes in TVM. More...
#include <tvm/ffi/big_int.h>#include <tvm/ffi/cast.h>#include <tvm/ffi/container/array.h>#include <tvm/ffi/container/tuple.h>#include <tvm/ffi/container/variant.h>#include <tvm/ffi/dtype.h>#include <tvm/ffi/error.h>#include <tvm/ffi/extra/dataclass.h>#include <tvm/ffi/extra/structural_equal.h>#include <tvm/ffi/extra/structural_hash.h>#include <tvm/ffi/extra/structural_mutate.h>#include <tvm/ffi/extra/structural_visit.h>#include <tvm/ffi/function.h>#include <tvm/ffi/optional.h>#include <tvm/ffi/reflection/native_function.h>#include <tvm/ffi/reflection/registry.h>#include <tvm/ffi/string.h>#include <tvm/ir/attrs.h>#include <tvm/ir/cow.h>#include <tvm/ir/location.h>#include <tvm/ir/type.h>#include <algorithm>#include <cstddef>#include <cstdint>#include <functional>#include <limits>#include <optional>#include <ostream>#include <string>#include <type_traits>#include <utility>Go to the source code of this file.
Classes | |
| class | tvm::ExprObj |
| Base type of all the expressions. More... | |
| class | tvm::Expr |
| Managed reference to ExprObj. More... | |
| class | tvm::StagingExprObj |
| Base node for traversable expressions eliminated during compilation. More... | |
| class | tvm::StagingExpr |
| Managed reference to a staging expression. More... | |
| class | tvm::OpaqueExprObj |
| Base node for opaque construction-time expressions. More... | |
| class | tvm::OpaqueExpr |
| Managed reference to OpaqueExprObj. More... | |
| class | tvm::TypedExpr< ExpectedType > |
| Typed reference/view over an expression whose result type is a specific Type subtype. More... | |
| class | tvm::PrimExpr |
Typed reference/view over any Expr whose ExprObj::ty is PrimType. More... | |
| class | tvm::IntExpr |
| View over a scalar signed or unsigned integer expression of any bit width. More... | |
| class | tvm::ConstantObj |
| Base node for literal constants. More... | |
| class | tvm::Constant |
| Managed reference to a literal constant. More... | |
| class | tvm::GenericConstObj |
| A constant whose payload is separate from its expression type. More... | |
| class | tvm::GenericConst |
| Managed reference to a generic constant. More... | |
| class | tvm::StringImmObj |
| A string literal with shared semantic StringType. More... | |
| class | tvm::StringImm |
| Managed reference to a string literal. More... | |
| class | tvm::DataTypeImmObj |
| A data type literal with AnyType as its expression type. More... | |
| class | tvm::DataTypeImm |
| Managed reference to a data type literal. More... | |
| class | tvm::IntImmObj |
| Constant integer literals in the program. More... | |
| class | tvm::IntImm |
| Managed reference class to IntImmObj. More... | |
| class | tvm::FloatImmObj |
| Constant floating point literals in the program. More... | |
| class | tvm::FloatImm |
| Managed reference class to FloatImmObj. More... | |
| class | tvm::TupleObj |
| Tuple container. More... | |
| class | tvm::Tuple |
| Managed reference to TupleObj. More... | |
| class | tvm::TupleGetItemObj |
| Get the index-th field out of a tuple. More... | |
| class | tvm::TupleGetItem |
| Managed reference to TupleGetItemObj. More... | |
| class | tvm::TensorLoadObj |
| Load a value from an indexed expression source. More... | |
| class | tvm::TensorLoad |
| Managed reference to TensorLoadObj. More... | |
| class | tvm::VarObj |
| A local variable in the IR. More... | |
| class | tvm::Var |
| Managed reference to VarObj. More... | |
| class | tvm::PrimVar |
| Checked scalar view over a VarObj. More... | |
| class | tvm::LambdaExprObj |
| A typed staging expression representing a lambda computation. More... | |
| class | tvm::LambdaExpr |
| Managed reference to a typed staging lambda. More... | |
| class | tvm::GlobalVarObj |
| Global variable that lives in the top-level module. More... | |
| class | tvm::GlobalVar |
| Managed reference to GlobalVarObj. More... | |
| class | tvm::CallObj |
| Call corresponds to callable invocation. More... | |
| class | tvm::Call |
| Managed reference to CallObj. More... | |
| class | tvm::RangeObj |
| range over one dimension More... | |
| class | tvm::Range |
| Range container More... | |
| class | tvm::TensorRegionObj |
| A region of an indexed expression source. More... | |
| class | tvm::TensorRegion |
| Managed reference to TensorRegionObj. More... | |
| struct | tvm::ffi::TypeTraits< tvm::StringImm > |
| struct | tvm::ffi::TypeTraits< IntImm > |
| struct | tvm::ffi::TypeTraits< FloatImm > |
| struct | tvm::ffi::TypeTraits< TypedExpr< ExpectedType > > |
| struct | tvm::ffi::TypeTraits< PrimExpr > |
| struct | tvm::ffi::TypeTraits< Expr > |
| struct | tvm::ffi::TypeTraits< IntExpr > |
| struct | tvm::ffi::TypeTraits< PrimVar > |
| struct | tvm::ffi::TypeTraits< TensorRegion > |
Namespaces | |
| namespace | tvm |
| An object that builds and maintains block scope and StmtSref mapping for Dependence analysis. | |
| namespace | tvm::ffi |
| namespace | tvm::ffi::detail |
| namespace | tvm::type_attr |
| namespace | tvm::op_attr |
Typedefs | |
| using | tvm::SubscriptSlice = ffi::Array< ffi::Variant< ffi::Tuple< ffi::Optional< PrimExpr >, ffi::Optional< PrimExpr >, ffi::Optional< PrimExpr > >, PrimExpr > > |
| Expression subscripts: point indices or (start, stop, step) slices. | |
Enumerations | |
| enum class | tvm::CallEffectKind : int { tvm::kExprAnnotation = 0 , tvm::kPure = 1 , tvm::kReadState = 2 , tvm::kUpdateState = 3 , tvm::kOpaque = kUpdateState , tvm::kSpecialCallArg = 4 , tvm::kEmbedInfo = 5 , tvm::kControlJump = 6 } |
| The effect type of the call. More... | |
Functions | |
| std::ostream & | tvm::operator<< (std::ostream &os, CallEffectKind side_effect) |
| TVM_TIRX_DLL CallEffectKind | tvm::SideEffect (const Expr &expr) |
| Analyze the runtime effects of an expression. | |
Variables | |
| template<> | |
| constexpr bool | tvm::ffi::detail::storage_enabled_v< Expr > = true |
| template<> | |
| constexpr bool | tvm::ffi::detail::storage_enabled_v< PrimExpr > = true |
| constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< PrimType(const TensorLoadObj *)> > | tvm::type_attr::kTensorLoadInferType {"__tvm_tensor_load_infer_type__"} |
| Infer a load's primitive result type from its populated source, indices and location. | |
| constexpr ffi::reflection::AttrKey< CallEffectKind > | tvm::op_attr::kCallEffectKind {"TCallEffectKind"} |
| The runtime effect of an operator call. | |
| template<> | |
| constexpr bool | tvm::ffi::use_default_type_traits_v< IntImm > = false |
| template<> | |
| constexpr bool | tvm::ffi::object_ref_contains_v< PrimExpr, IntImmObj > = true |
| template<> | |
| constexpr bool | tvm::ffi::use_default_type_traits_v< FloatImm > = false |
| template<> | |
| constexpr bool | tvm::ffi::object_ref_contains_v< PrimExpr, FloatImmObj > = true |
| template<> | |
| constexpr bool | tvm::ffi::object_ref_contains_v< PrimExpr, TensorLoadObj > = true |
| template<typename ExpectedType > | |
| constexpr bool | tvm::ffi::use_default_type_traits_v< TypedExpr< ExpectedType > > = false |
| template<> | |
| constexpr bool | tvm::ffi::use_default_type_traits_v< PrimExpr > = false |
| template<> | |
| constexpr bool | tvm::ffi::use_default_type_traits_v< Expr > = false |
| template<> | |
| constexpr bool | tvm::ffi::use_default_type_traits_v< IntExpr > = false |
| template<> | |
| constexpr bool | tvm::ffi::use_default_type_traits_v< PrimVar > = false |
| template<> | |
| constexpr bool | tvm::ffi::use_default_type_traits_v< TensorRegion > = false |
| constexpr ffi::reflection::AttrKey< ffi::TypedFunction< ffi::ObjectRef(Expr, SubscriptSlice, Location)> > | tvm::type_attr::kExprSubscriptRealizeByTy {"__tvm_expr_subscript_realize__"} |
| Realize a subscript of an expression, dispatched on the type of the expression. | |
Base expr nodes in TVM.