tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
tvm::IntImm Class Reference

Managed reference class to IntImmNode. More...

#include <expr.h>

Inheritance diagram for tvm::IntImm:
Collaboration diagram for tvm::IntImm:

Public Member Functions

TVM_TIRX_DLL IntImm (PrimType value_ty, ffi::BigInt value, Location loc=UnknownLoc())
 Constructor.
 
template<typename Enum , std::enable_if_t< std::is_enum_v< Enum >, int > = 0>
 IntImm (PrimType value_ty, Enum value, Location loc=UnknownLoc())
 
 IntImm (ffi::ObjectPtr< IntImmNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (IntImm, PrimExpr, IntImmNode)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (IntImmNode)
 
- Public Member Functions inherited from tvm::PrimExpr
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 Member Functions

static IntImm Bool (bool value, Location loc=UnknownLoc())
 Construct a scalar boolean constant.
 
static IntImm Int32 (ffi::BigInt value, Location loc=UnknownLoc())
 Construct a scalar int32 constant.
 
template<typename Enum , std::enable_if_t< std::is_enum_v< Enum >, int > = 0>
static IntImm Int32 (Enum value, Location loc=UnknownLoc())
 
static IntImm Int64 (ffi::BigInt value, Location loc=UnknownLoc())
 Construct a scalar int64 constant.
 
template<typename Enum , std::enable_if_t< std::is_enum_v< Enum >, int > = 0>
static IntImm Int64 (Enum value, Location loc=UnknownLoc())
 

Static Public Attributes

static constexpr bool _type_container_is_exact = true
 
- Static Public Attributes inherited from tvm::PrimExpr
static constexpr bool _type_container_is_exact = false
 
- Static Public Attributes inherited from tvm::TypedExpr< PrimType >
static constexpr bool _type_container_is_exact
 

Detailed Description

Managed reference class to IntImmNode.

See also
IntImmNode

Constructor & Destructor Documentation

◆ IntImm() [1/3]

TVM_TIRX_DLL tvm::IntImm::IntImm ( PrimType  value_ty,
ffi::BigInt  value,
Location  loc = UnknownLoc() 
)

Constructor.

Parameters
value_tyThe primitive type of the value.
valueThe internal value.
locThe location of this object in the source code.

◆ IntImm() [2/3]

template<typename Enum , std::enable_if_t< std::is_enum_v< Enum >, int > = 0>
tvm::IntImm::IntImm ( PrimType  value_ty,
Enum  value,
Location  loc = UnknownLoc() 
)
inline

◆ IntImm() [3/3]

tvm::IntImm::IntImm ( ffi::ObjectPtr< IntImmNode >  node)
inlineexplicit

Member Function Documentation

◆ Bool()

static IntImm tvm::IntImm::Bool ( bool  value,
Location  loc = UnknownLoc() 
)
inlinestatic

Construct a scalar boolean constant.

Parameters
valueThe boolean value.
locThe location of this object in the source code.

◆ Int32() [1/2]

template<typename Enum , std::enable_if_t< std::is_enum_v< Enum >, int > = 0>
static IntImm tvm::IntImm::Int32 ( Enum  value,
Location  loc = UnknownLoc() 
)
inlinestatic

◆ Int32() [2/2]

static IntImm tvm::IntImm::Int32 ( ffi::BigInt  value,
Location  loc = UnknownLoc() 
)
inlinestatic

Construct a scalar int32 constant.

Parameters
valueThe integer value.
locThe location of this object in the source code.

◆ Int64() [1/2]

template<typename Enum , std::enable_if_t< std::is_enum_v< Enum >, int > = 0>
static IntImm tvm::IntImm::Int64 ( Enum  value,
Location  loc = UnknownLoc() 
)
inlinestatic

◆ Int64() [2/2]

static IntImm tvm::IntImm::Int64 ( ffi::BigInt  value,
Location  loc = UnknownLoc() 
)
inlinestatic

Construct a scalar int64 constant.

Parameters
valueThe integer value.
locThe location of this object in the source code.

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::IntImm::TVM_DEFINE_OBJECT_REF_COW_METHOD ( IntImmNode  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::IntImm::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( IntImm  ,
PrimExpr  ,
IntImmNode   
)

Member Data Documentation

◆ _type_container_is_exact

constexpr bool tvm::IntImm::_type_container_is_exact = true
staticconstexpr

The documentation for this class was generated from the following file: