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

Scoped no-overflow assumption for unsigned index arithmetic. More...

#include <analyzer.h>

Collaboration diagram for tvm::sym::AllowUIntAsIndex:

Static Public Member Functions

static TVM_TIRX_DLL bool Enabled ()
 Check the current thread's unsigned-index assumption.
 

Friends

class With< AllowUIntAsIndex >
 

Detailed Description

Scoped no-overflow assumption for unsigned index arithmetic.

Unsigned arithmetic normally wraps modulo 2^bits. Use With<AllowUIntAsIndex> only when unsigned values are guaranteed not to overflow, enabling the analyzer's index rewrites within that scope. The assumption is off by default, thread-local, and supports nested scopes. Constructing this context alone does not enable the assumption.

Member Function Documentation

◆ Enabled()

static TVM_TIRX_DLL bool tvm::sym::AllowUIntAsIndex::Enabled ( )
static

Check the current thread's unsigned-index assumption.

Returns
True inside an active With<AllowUIntAsIndex> scope.

Friends And Related Symbol Documentation

◆ With< AllowUIntAsIndex >

friend class With< AllowUIntAsIndex >
friend

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