summaryrefslogtreecommitdiffstats
path: root/polly/lib/External/isl/interface/python.h
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2018-08-01 09:20:03 +0000
committerTobias Grosser <tobias@grosser.es>2018-08-01 09:20:03 +0000
commitd169d70bbf053f636aed25b482ec63efd094a95b (patch)
tree7bf8bb6e3236839cdcb983d7dcaf958bb59fd228 /polly/lib/External/isl/interface/python.h
parent85ae51ed2222b6470f5be563cc48639c1869df7e (diff)
downloadbcm5719-llvm-d169d70bbf053f636aed25b482ec63efd094a95b.tar.gz
bcm5719-llvm-d169d70bbf053f636aed25b482ec63efd094a95b.zip
Update to isl-0.20-35-ge0a98b62
llvm-svn: 338501
Diffstat (limited to 'polly/lib/External/isl/interface/python.h')
-rw-r--r--polly/lib/External/isl/interface/python.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/polly/lib/External/isl/interface/python.h b/polly/lib/External/isl/interface/python.h
new file mode 100644
index 00000000000..554e52fd7e5
--- /dev/null
+++ b/polly/lib/External/isl/interface/python.h
@@ -0,0 +1,45 @@
+#include <set>
+#include <clang/AST/Decl.h>
+#include "generator.h"
+
+using namespace std;
+using namespace clang;
+
+class python_generator : public generator {
+private:
+ set<string> done;
+
+public:
+ python_generator(set<RecordDecl *> &exported_types,
+ set<FunctionDecl *> exported_functions,
+ set<FunctionDecl *> functions) :
+ generator(exported_types, exported_functions, functions) {}
+
+ virtual void generate();
+
+private:
+ void print(const isl_class &clazz);
+ void print_method_header(bool is_static, const string &name, int n_arg);
+ void print_class_header(const isl_class &clazz, const string &name,
+ const vector<string> &super);
+ void print_type_check(const string &type, int pos, bool upcast,
+ const string &super, const string &name, int n);
+ void print_callback(QualType type, int arg);
+ void print_arg_in_call(FunctionDecl *fd, int arg, int skip);
+ void print_argtypes(FunctionDecl *fd);
+ void print_method_return(FunctionDecl *method);
+ void print_restype(FunctionDecl *fd);
+ void print(map<string, isl_class> &classes, set<string> &done);
+ void print_constructor(const isl_class &clazz, FunctionDecl *method);
+ void print_representation(const isl_class &clazz,
+ const string &python_name);
+ void print_method_type(FunctionDecl *fd);
+ void print_method_types(const isl_class &clazz);
+ void print_method(const isl_class &clazz, FunctionDecl *method,
+ vector<string> super);
+ void print_method_overload(const isl_class &clazz,
+ FunctionDecl *method);
+ void print_method(const isl_class &clazz, const string &fullname,
+ const set<FunctionDecl *> &methods, vector<string> super);
+
+};
OpenPOWER on IntegriCloud