Polly 20.0.0git
|
Scope guard for code that allows arbitrary isl function to return an error if the max-operations quota exceeds. More...
#include <GICHelper.h>
Public Member Functions | |
IslQuotaScope () | |
IslQuotaScope (const IslQuotaScope &)=delete | |
IslQuotaScope (IslQuotaScope &&Other) | |
const IslQuotaScope & | operator= (IslQuotaScope &&Other) |
IslQuotaScope (isl_ctx *IslCtx, unsigned long LocalMaxOps) | |
Enter a quota-aware scope. | |
~IslQuotaScope () | |
bool | hasQuotaExceeded () const |
Return whether the current quota has exceeded. | |
Private Attributes | |
isl_ctx * | IslCtx |
int | OldOnError |
Scope guard for code that allows arbitrary isl function to return an error if the max-operations quota exceeds.
This allows to opt-in code sections that have known long executions times. code not in a hot path can continue to assume that no unexpected error occurs.
This is typically used inside a nested IslMaxOperationsGuard scope. The IslMaxOperationsGuard defines the number of allowed base operations for some code, IslQuotaScope defines where it is allowed to return an error result.
Definition at line 357 of file GICHelper.h.
|
inline |
Definition at line 362 of file GICHelper.h.
|
delete |
|
inline |
Definition at line 364 of file GICHelper.h.
References polly::Other.
|
inlineexplicit |
Enter a quota-aware scope.
Should not be used directly. Use IslMaxOperationsGuard::enter() instead.
Definition at line 377 of file GICHelper.h.
References assert, isl_ctx_get_max_operations(), isl_ctx_reset_error(), isl_ctx_set_max_operations(), ISL_ON_ERROR_CONTINUE, isl_options_get_on_error(), isl_options_set_on_error(), IslCtx, and OldOnError.
|
inline |
Definition at line 392 of file GICHelper.h.
References assert, isl_ctx_get_max_operations(), isl_ctx_set_max_operations(), ISL_ON_ERROR_CONTINUE, isl_options_get_on_error(), isl_options_set_on_error(), IslCtx, and OldOnError.
|
inline |
Return whether the current quota has exceeded.
Definition at line 404 of file GICHelper.h.
References isl_ctx_last_error(), isl_error_quota, and IslCtx.
|
inline |
Definition at line 368 of file GICHelper.h.
References polly::Other.
|
private |
Definition at line 358 of file GICHelper.h.
Referenced by hasQuotaExceeded(), IslQuotaScope(), and ~IslQuotaScope().
|
private |
Definition at line 359 of file GICHelper.h.
Referenced by IslQuotaScope(), and ~IslQuotaScope().