[llvm-dev] Extracting the names of the variables that creates loop-carried dependencies

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 5 05:56:42 PDT 2016


2016-08-05 14:42 GMT+02:00 Miguel Aguilar <aguilar at ice.rwth-aachen.de>:
> What is not clear to me still is how it looks like the code to extract the
> ScopArrayInfo pointer from the user part.

isl_union_map RAW; // The flow dependence map of format { Stmt[] -> Stmt[] }
// foreach Map in RAW:
 isl_id *Id = isl_map_get_tuple_id(Map);
 ScopArrayInfo *SAI = (ScopArrayInfo*)isl_id_get_user(Id);

This one is for if you are using Dependences::AL_Reference.

Michael


More information about the llvm-dev mailing list