extract out pet_id_get_array_type
[pet.git] / id.h
blobb46155db2cb0b2a7b1b542d57e2404070d3252fc
1 #ifndef PET_ID_H
2 #define PET_ID_H
4 #include <clang/AST/Decl.h>
5 #include <clang/AST/Type.h>
6 #include <isl/id.h>
8 #include "expr.h"
10 __isl_give isl_id *pet_id_from_decl(isl_ctx *ctx, clang::ValueDecl *decl);
11 __isl_give isl_id *pet_id_from_name_and_decl(isl_ctx *ctx, const char *name,
12 clang::ValueDecl *decl);
13 clang::ValueDecl *pet_id_get_decl(__isl_keep isl_id *id);
14 clang::QualType pet_id_get_array_type(__isl_keep isl_id *id);
16 __isl_give pet_expr *pet_id_create_index_expr(__isl_take isl_id *id);
18 #endif