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