Add public access to short-circuit && and ||
commit71fad88586b525d3ecc7b955948ff13beb1c5c54
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>
Sun, 22 Feb 2015 15:06:38 +0000 (22 16:06 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 24 Feb 2015 11:20:48 +0000 (24 12:20 +0100)
treec4ec9c158051a6598822207a35191fca0e9a0041
parent3822f9778eba9974d293b5b237bfb2e4111af256
Add public access to short-circuit && and ||

This allows the user to build ast expressions, e.g., runtime checks,
that should only be conditionally executed. This is especially important
if the conditional part of the expression is not pure but also if it
might be costly to evaluate the expression unconditionally.

In Polly these functions are used to build runtime checks for assumed
invariant loads. As the checks might depend on the value initially
stored in the assumed invariant location we have to perform a load of
that location. However, this is only sound if the original load is
guaranteed to be executed at some point. If not we might even access an
invalid pointer and crash the program. The assumptions that will
guarantee execution of the original load are therefor used as condition
for the actual runtime check.

Signed-off-by: Johannes Doerfert <doerfert@cs.uni-saarland.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
doc/user.pod
include/isl/ast.h
isl_ast.c