1 #ifndef PET_SCOP_PLUS_H
2 #define PET_SCOP_PLUS_H
6 #include <clang/AST/Decl.h>
10 /* Compare two sequences of ValueDecl pointers based on their names.
12 struct array_desc_less
{
13 bool operator()(const std::vector
<clang::ValueDecl
*> &x
,
14 const std::vector
<clang::ValueDecl
*> &y
) {
18 for (int i
= 0; i
< x_n
&& i
< y_n
; ++i
) {
19 int cmp
= x
[i
]->getName().compare(y
[i
]->getName());
28 /* A sorted set of sequences of ValueDecl pointers. The actual order
29 * is not important, only that it is consistent across platforms.
31 typedef std::set
<std::vector
<clang::ValueDecl
*>, array_desc_less
>
34 void pet_scop_collect_arrays(struct pet_scop
*scop
, array_desc_set
&arrays
);