add pet_context_get_gist_domain
commitc4a438bf47e706302f99ee63973d54ef2f57e2cb
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 16 Mar 2014 21:47:58 +0000 (16 22:47 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 25 Mar 2014 13:36:29 +0000 (25 14:36 +0100)
tree70fa8f2e9ac1a9de5774bd8bd89eb0e7dfdb88f8
parent5ddfdbdcfdb36c6a80f0932a70dfdecc02f700d8
add pet_context_get_gist_domain

Now that we construct a pet_scop from the top down, we have the domain
information from outer loop constructs available while extracting from
subtrees.  We can therefore exploit the information to simplify
expressions as soon as they are created.
We have to be careful though not to introduce any nested expression
parameters during such a simplification.  We therefore add
a pet_context_get_gist_domain function that return the domain
with the nested expression parameters removed.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
context.c
context.h