Polly 22.0.0git
generator.cc File Reference
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <iostream>
#include <clang/AST/Attr.h>
#include <clang/Basic/SourceManager.h>
#include "isl_config.h"
#include "extract_interface.h"
#include "generator.h"

Go to the source code of this file.

Functions

static void add_set_enum (isl_class *c, const string &prefix, EnumDecl *decl, FunctionDecl *fd)
static bool handled_sets_enum (isl_class *c, FunctionDecl *fd)
static bool sets_persistent_callback (isl_class *c, FunctionDecl *fd)
static bool takes_enums (FunctionDecl *fd)
static bool less_name (const FunctionDecl *a, const FunctionDecl *b)
static bool is_isl_primitive (QualType type, const char *name)
static bool is_unsigned_int (QualType type)
static std::string type_suffix (ParmVarDecl *param)

Function Documentation

◆ add_set_enum()

void add_set_enum ( isl_class * c,
const string & prefix,
EnumDecl * decl,
FunctionDecl * fd )
static

Definition at line 253 of file generator.cc.

References name, isl_class::set_enums, and val.

Referenced by handled_sets_enum().

◆ handled_sets_enum()

bool handled_sets_enum ( isl_class * c,
FunctionDecl * fd )
static

Definition at line 279 of file generator.cc.

References add_set_enum(), generator::is_mutator(), isl_class::method_name(), n, and pos().

Referenced by generator::generator().

◆ is_isl_primitive()

bool is_isl_primitive ( QualType type,
const char * name )
static

Definition at line 696 of file generator.cc.

References name, and type.

Referenced by generator::is_isl_bool(), generator::is_isl_size(), and generator::is_isl_stat().

◆ is_unsigned_int()

bool is_unsigned_int ( QualType type)
static

Definition at line 770 of file generator.cc.

References type.

Referenced by type_suffix().

◆ less_name()

bool less_name ( const FunctionDecl * a,
const FunctionDecl * b )
static

Definition at line 362 of file generator.cc.

References a(), and b().

Referenced by generator::generator().

◆ sets_persistent_callback()

bool sets_persistent_callback ( isl_class * c,
FunctionDecl * fd )
static

◆ takes_enums()

bool takes_enums ( FunctionDecl * fd)
static

Definition at line 346 of file generator.cc.

References n.

Referenced by generator::generator().

◆ type_suffix()

std::string type_suffix ( ParmVarDecl * param)
static