Polly 20.0.0git
Public Member Functions | Private Member Functions | List of all members
cpp_conversion_generator Class Reference

#include <cpp_conversion.h>

Inheritance diagram for cpp_conversion_generator:
Inheritance graph
[legend]

Public Member Functions

 cpp_conversion_generator (SourceManager &SM, set< RecordDecl * > &exported_types, set< FunctionDecl * > exported_functions, set< FunctionDecl * > functions)
 
virtual void generate ()
 
- Public Member Functions inherited from generator
 generator (SourceManager &SM, set< RecordDecl * > &exported_types, set< FunctionDecl * > exported_functions, set< FunctionDecl * > functions)
 
virtual void generate ()=0
 
virtual ~generator ()
 

Private Member Functions

void cast (const isl_class &clazz, const char *to)
 
void convert (const isl_class &clazz, const char *from, const char *to, const char *function)
 
void print (const isl_class &clazz)
 

Additional Inherited Members

- Static Public Member Functions inherited from generator
static std::string drop_suffix (const std::string &s, const std::string &suffix)
 
static void die (const char *msg) __attribute__((noreturn))
 
static void die (string msg) __attribute__((noreturn))
 
static vector< string > find_superclasses (Decl *decl)
 
static bool is_subclass (FunctionDecl *decl)
 
static bool is_overload (Decl *decl)
 
static bool is_constructor (Decl *decl)
 
static bool takes (Decl *decl)
 
static bool keeps (Decl *decl)
 
static bool gives (Decl *decl)
 
static bool is_isl_ctx (QualType type)
 
static bool first_arg_is_isl_ctx (FunctionDecl *fd)
 
static bool is_isl_type (QualType type)
 
static bool is_isl_neg_error (QualType type)
 
static bool is_isl_bool (QualType type)
 
static bool is_isl_stat (QualType type)
 
static bool is_isl_size (QualType type)
 
static bool is_long (QualType type)
 
static bool is_callback (QualType type)
 
static bool is_callback_arg (FunctionDecl *fd, int i)
 
static bool is_string (QualType type)
 
static bool is_static (const isl_class &clazz, FunctionDecl *method)
 
static bool is_mutator (const isl_class &clazz, FunctionDecl *fd)
 
static string extract_type (QualType type)
 
static const FunctionProtoType * extract_prototype (QualType type)
 
static int prototype_n_args (QualType type)
 
static ParmVarDecl * persistent_callback_arg (FunctionDecl *fd)
 
- Protected Member Functions inherited from generator
void add_subclass (RecordDecl *decl, const string &name, const string &sub_name)
 
void add_class (RecordDecl *decl)
 
void add_type_subclasses (FunctionDecl *method)
 
isl_classmethod2class (FunctionDecl *fd)
 
bool callback_takes_argument (ParmVarDecl *param, int pos)
 
FunctionDecl * find_by_name (const string &name, bool required)
 
- Protected Attributes inherited from generator
SourceManager & SM
 
map< string, isl_classclasses
 
map< string, FunctionDecl * > functions_by_name
 
std::map< const Type *, ParmVarDecl * > conversions
 

Detailed Description

Definition at line 3 of file cpp_conversion.h.

Constructor & Destructor Documentation

◆ cpp_conversion_generator()

cpp_conversion_generator::cpp_conversion_generator ( SourceManager &  SM,
set< RecordDecl * > &  exported_types,
set< FunctionDecl * >  exported_functions,
set< FunctionDecl * >  functions 
)
inline

Definition at line 9 of file cpp_conversion.h.

Member Function Documentation

◆ cast()

void cpp_conversion_generator::cast ( const isl_class clazz,
const char *  to 
)
private

◆ convert()

void cpp_conversion_generator::convert ( const isl_class clazz,
const char *  from,
const char *  to,
const char *  function 
)
private

Definition at line 39 of file cpp_conversion.cc.

References cast(), function, name, and cpp_generator::type2cpp().

Referenced by print().

◆ generate()

void cpp_conversion_generator::generate ( )
virtual

Implements generator.

Definition at line 78 of file cpp_conversion.cc.

References generator::classes, and print().

◆ print()

void cpp_conversion_generator::print ( const isl_class clazz)
private

Definition at line 68 of file cpp_conversion.cc.

References convert().

Referenced by generate().


The documentation for this class was generated from the following files: