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

A boolean premise. Its validity and lifetime are supplied by the collector. More...

#include <constraint.h>

Inheritance diagram for tvm::sym::PredicateConstraintObj:
Collaboration diagram for tvm::sym::PredicateConstraintObj:

Public Member Functions

 PredicateConstraintObj (PrimExpr condition, bool assume_always=false)
 
 PredicateConstraintObj (ffi::UnsafeInit tag)
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("sym.PredicateConstraint", PredicateConstraintObj, ConstraintObj)
 
- Public Member Functions inherited from tvm::sym::ConstraintObj
 TVM_FFI_DECLARE_OBJECT_INFO ("sym.Constraint", ConstraintObj, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 

Public Attributes

PrimExpr condition
 The boolean predicate supplied by the collector.
 
bool assume_always {false}
 Whether to assume the predicate remains true throughout the active constraint scope, including after mutations. Defaults to false. Setting true supplies the caller's guarantee of predicate truth; it does not require referenced values to remain unchanged.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::sym::ConstraintObj
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 

Detailed Description

A boolean premise. Its validity and lifetime are supplied by the collector.

Constructor & Destructor Documentation

◆ PredicateConstraintObj() [1/2]

tvm::sym::PredicateConstraintObj::PredicateConstraintObj ( PrimExpr  condition,
bool  assume_always = false 
)
inlineexplicit

◆ PredicateConstraintObj() [2/2]

tvm::sym::PredicateConstraintObj::PredicateConstraintObj ( ffi::UnsafeInit  tag)
inlineexplicit

Member Function Documentation

◆ RegisterReflection()

static void tvm::sym::PredicateConstraintObj::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::sym::PredicateConstraintObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "sym.PredicateConstraint"  ,
PredicateConstraintObj  ,
ConstraintObj   
)

Member Data Documentation

◆ assume_always

bool tvm::sym::PredicateConstraintObj::assume_always {false}

Whether to assume the predicate remains true throughout the active constraint scope, including after mutations. Defaults to false. Setting true supplies the caller's guarantee of predicate truth; it does not require referenced values to remain unchanged.

◆ condition

PrimExpr tvm::sym::PredicateConstraintObj::condition

The boolean predicate supplied by the collector.


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