[PATCH] D16960: [FIX] Associate access relations with an AccessId
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 7 06:15:49 PST 2016
jdoerfert created this revision.
jdoerfert added reviewers: grosser, Meinersbur.
jdoerfert added a subscriber: Polly.
The AccessId is a helper class that allows to associate both,
ScopArrayInfo objets as well as a specific MemoryAccess with an access
relations. In general all access to the same array need the same
associated isl_id. Thus, it cannot be used to identify a specific
MemoryAccess but only the ScopArrayInfo object. However, When the
access and the array have different types, we have to (1) correct
accesses generated by the IslExprBuilder or (2) annotate the access
relation with the specific MemoryAccess which allows to use the
correct type in the first place. This patch implements the latter
approach by annotating the access relation with an AccessId that can
hold a MemoryAccess or a ScopArrayInfo object. In the IslExprBuilder
we check which one is present and build the most specific access we
can. This also allows to remove the alignment and type correction that
was implemented using the first scheme (namely, correct code later).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 22714 bytes
Desc: not available
More information about the llvm-commits