|
Polly 22.0.0git
|
#include <generator.h>
Public Member Functions | |
| bool | first_arg_matches_class (FunctionDecl *method) const |
| bool | is_static (FunctionDecl *method) const |
| bool | is_type_subclass () const |
| string | base_method_name (FunctionDecl *fd) const |
| bool | is_get_method_name (FunctionDecl *fd, const string &name) const |
| bool | is_get_method (FunctionDecl *fd) const |
| string | method_name (FunctionDecl *fd) const |
| string | persistent_callback_name (FunctionDecl *fd) const |
| bool | has_persistent_callbacks () const |
Static Public Member Functions | |
| static string | name_without_type_suffixes (FunctionDecl *fd) |
Public Attributes | |
| string | name |
| string | superclass_name |
| string | subclass_name |
| RecordDecl * | type |
| function_set | constructors |
| set< FunctionDecl * > | persistent_callbacks |
| map< FunctionDecl *, vector< set_enum > > | set_enums |
| map< string, function_set > | methods |
| map< int, string > | type_subclasses |
| FunctionDecl * | fn_type |
| FunctionDecl * | fn_to_str |
| FunctionDecl * | fn_copy |
| FunctionDecl * | fn_free |
| std::map< clang::FunctionDecl *, const isl_class & > | copied_from |
| std::map< clang::FunctionDecl *, int > | copy_depth |
| std::map< std::string, clang::ParmVarDecl * > | construction_types |
Static Public Attributes | |
| static const char * | get_prefix = "get_" |
| static const char * | set_callback_prefix = "set_" |
Definition at line 80 of file generator.h.
|
inline |
Definition at line 110 of file generator.h.
References name_without_type_suffixes(), and subclass_name.
Referenced by is_get_method(), method_name(), and python_generator::print_get_method().
| bool isl_class::first_arg_matches_class | ( | FunctionDecl * | method | ) | const |
Definition at line 51 of file generator.cc.
References generator::extract_type(), generator::is_isl_type(), name, and type.
Referenced by is_static(), and single_local().
|
inline |
Definition at line 134 of file generator.h.
References persistent_callbacks.
Referenced by python_generator::print_copy_callbacks(), and python_generator::print_method_return().
|
inline |
Definition at line 119 of file generator.h.
References base_method_name(), and is_get_method_name().
Referenced by python_generator::print_method().
| bool isl_class::is_get_method_name | ( | FunctionDecl * | fd, |
| const string & | name ) const |
Definition at line 873 of file generator.cc.
References get_prefix, is_static(), name, and prefixcmp().
Referenced by is_get_method(), and method_name().
| bool isl_class::is_static | ( | FunctionDecl * | method | ) | const |
Definition at line 73 of file generator.cc.
References copied_from, and first_arg_matches_class().
Referenced by is_get_method_name(), and generator::is_static().
|
inline |
Definition at line 104 of file generator.h.
References name, and subclass_name.
Referenced by cpp_conversion_generator::cast(), python_generator::print(), plain_cpp_generator::print_class(), python_generator::print_class_header(), and python_generator::print_new().
| string isl_class::method_name | ( | FunctionDecl * | fd | ) | const |
Definition at line 882 of file generator.cc.
References base_method_name(), get_prefix, and is_get_method_name().
Referenced by handled_sets_enum(), persistent_callback_name(), python_generator::print_constructor(), python_generator::print_get_method(), python_generator::print_method(), python_generator::print_method(), and sets_persistent_callback().
|
static |
Definition at line 845 of file generator.cc.
References generator::drop_suffix(), generator::is_overload(), name, type, and type_suffix().
Referenced by base_method_name().
|
inline |
Definition at line 129 of file generator.h.
References method_name(), and set_callback_prefix.
Referenced by plain_cpp_generator::print_check_no_persistent_callback(), python_generator::print_copy_callbacks(), python_generator::print_method_return(), print_persistent_callback_exceptional_execution_check(), and print_persistent_callback_failure_check().
| std::map<std::string, clang::ParmVarDecl *> isl_class::construction_types |
Definition at line 97 of file generator.h.
Referenced by cpp_generator::set_class_construction_types().
| function_set isl_class::constructors |
Definition at line 85 of file generator.h.
Referenced by generator::extract_class_automatic_conversions(), python_generator::print(), python_generator::print_method_types(), and cpp_generator::set_class_construction_types().
| std::map<clang::FunctionDecl *, const isl_class &> isl_class::copied_from |
Definition at line 95 of file generator.h.
Referenced by copy_method(), is_static(), and cpp_generator::class_printer::print_method_variants().
| std::map<clang::FunctionDecl *, int> isl_class::copy_depth |
Definition at line 96 of file generator.h.
Referenced by copy_depth(), and copy_method().
| FunctionDecl* isl_class::fn_copy |
Definition at line 92 of file generator.h.
Referenced by python_generator::print_method_types().
| FunctionDecl* isl_class::fn_free |
Definition at line 93 of file generator.h.
Referenced by python_generator::print_method_types().
| FunctionDecl* isl_class::fn_to_str |
Definition at line 91 of file generator.h.
Referenced by python_generator::print_method_types(), and python_generator::print_representation().
| FunctionDecl* isl_class::fn_type |
Definition at line 90 of file generator.h.
Referenced by generator::add_type_subclasses(), plain_cpp_generator::decl_printer::print_isa_type_template(), python_generator::print_method_types(), python_generator::print_new(), and python_generator::print_upcast_constructors().
|
static |
Definition at line 115 of file generator.h.
Referenced by is_get_method_name(), and method_name().
| map<string, function_set> isl_class::methods |
Definition at line 88 of file generator.h.
Referenced by copy_method(), cpp_generator::copy_super_methods(), is_overridden(), python_generator::print(), and python_generator::print_method_types().
| string isl_class::name |
Definition at line 81 of file generator.h.
Referenced by cpp_generator::copy_super_methods(), first_arg_matches_class(), is_get_method_name(), is_type_subclass(), name_without_type_suffixes(), python_generator::print(), plain_cpp_generator::print_class(), python_generator::print_special_constructors(), python_generator::print_special_methods(), and python_generator::print_upcast_constructors().
| set<FunctionDecl *> isl_class::persistent_callbacks |
Definition at line 86 of file generator.h.
Referenced by has_persistent_callbacks(), python_generator::print(), python_generator::print_copy_callbacks(), python_generator::print_method_return(), python_generator::print_method_types(), print_persistent_callback_exceptional_execution_check(), and print_persistent_callback_failure_check().
|
static |
Definition at line 125 of file generator.h.
Referenced by persistent_callback_name(), and sets_persistent_callback().
Definition at line 87 of file generator.h.
Referenced by add_set_enum(), python_generator::print(), python_generator::print_method_types(), and python_generator::print_set_enum().
| string isl_class::subclass_name |
Definition at line 83 of file generator.h.
Referenced by generator::add_type_subclasses(), base_method_name(), is_type_subclass(), python_generator::print(), and cpp_generator::type2cpp().
| string isl_class::superclass_name |
Definition at line 82 of file generator.h.
Referenced by cpp_conversion_generator::cast(), plain_cpp_generator::print_class(), and python_generator::print_class_header().
| RecordDecl* isl_class::type |
Definition at line 84 of file generator.h.
Referenced by generator::add_type_subclasses(), cpp_generator::copy_super_methods(), first_arg_matches_class(), cpp_generator::is_subclass(), name_without_type_suffixes(), and python_generator::print().
| map<int, string> isl_class::type_subclasses |
Definition at line 89 of file generator.h.
Referenced by generator::add_type_subclasses(), python_generator::print_new(), and python_generator::print_upcast_constructors().