|
tvm
|
Scoped no-overflow assumption for unsigned index arithmetic. More...
#include <analyzer.h>
Static Public Member Functions | |
| static TVM_TIRX_DLL bool | Enabled () |
| Check the current thread's unsigned-index assumption. | |
Friends | |
| class | With< AllowUIntAsIndex > |
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.
|
static |
Check the current thread's unsigned-index assumption.
|
friend |