introduce isl_stat_non_error_bool
commit55933f56f88bcce8191080eb22e8859c27b4541b
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Sat, 23 May 2020 15:14:19 +0000 (23 17:14 +0200)
committerSven Verdoolaege <sven@cerebras.net>
Sun, 6 Aug 2023 12:42:27 +0000 (6 14:42 +0200)
tree368a6e1a8846864c20835e40332bc69401d38c1a
parent8fef6849b4ca63741b7368eb7c08c6b449ab55ed
introduce isl_stat_non_error_bool

There are quite a few places where a temporary isl_bool result
needs to be converted to an isl_stat.  Provide a designated function
for this conversion to save space and to clarify the intent
of these code fragments, similarly to isl_stat_non_null.
This commit only introduces the function.  Calls will be added later.

Even though this function is mainly meant to be used internally,
it is exposed to the user since isl_stat_non_null is exposed as well.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
Reviewed-by: Tianjiao Sun <tianjiao.sun@cerebras.net>
Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
doc/user.pod
include/isl/ctx.h
isl_ctx.c