Polly 20.0.0git
Macros | Functions
GICHelper.cpp File Reference
#include "polly/Support/GICHelper.h"
#include "llvm/ADT/APInt.h"
#include "isl/val.h"

Go to the source code of this file.

Macros

#define ISL_C_OBJECT_TO_STRING(name)
 
#define ISL_DUMP_OBJECT_IMPL(NAME)
 

Functions

template<typename ISLTy , typename ISL_CTX_GETTER , typename ISL_PRINTER >
static std::string stringFromIslObjInternal (__isl_keep ISLTy *isl_obj, ISL_CTX_GETTER ctx_getter_fn, ISL_PRINTER printer_fn, const std::string &DefaultValue)
 
static void replace (std::string &str, StringRef find, StringRef replace)
 
static void makeIslCompatible (std::string &str)
 

Macro Definition Documentation

◆ ISL_C_OBJECT_TO_STRING

#define ISL_C_OBJECT_TO_STRING (   name)
Value:
std::string polly::stringFromIslObj(__isl_keep isl_##name *Obj, \
std::string DefaultValue) { \
return stringFromIslObjInternal(Obj, isl_##name##_get_ctx, \
isl_printer_print_##name, DefaultValue); \
}
static std::string stringFromIslObjInternal(__isl_keep ISLTy *isl_obj, ISL_CTX_GETTER ctx_getter_fn, ISL_PRINTER printer_fn, const std::string &DefaultValue)
Definition: GICHelper.cpp:87
#define __isl_keep
Definition: ctx.h:25
const char * name
Definition: isl_test.c:10938

Definition at line 106 of file GICHelper.cpp.

◆ ISL_DUMP_OBJECT_IMPL

#define ISL_DUMP_OBJECT_IMPL (   NAME)
Value:
void polly::dumpIslObj(const isl::NAME &Obj) { \
isl_##NAME##_dump(Obj.get()); \
} \
void polly::dumpIslObj(isl_##NAME *Obj) { isl_##NAME##_dump(Obj); }
void dumpIslObj(const isl::schedule_node &Node, llvm::raw_ostream &OS)
Emit the equivaltent of the isl_*_dump output into a raw_ostream.

Definition at line 193 of file GICHelper.cpp.

Function Documentation

◆ makeIslCompatible()

static void makeIslCompatible ( std::string &  str)
static

Definition at line 145 of file GICHelper.cpp.

References replace(), and str.

Referenced by polly::getIslCompatibleName().

◆ replace()

static void replace ( std::string &  str,
StringRef  find,
StringRef  replace 
)
static

Definition at line 137 of file GICHelper.cpp.

References find(), pos(), replace(), and str.

Referenced by extend_domain(), makeIslCompatible(), and replace().

◆ stringFromIslObjInternal()

template<typename ISLTy , typename ISL_CTX_GETTER , typename ISL_PRINTER >
static std::string stringFromIslObjInternal ( __isl_keep ISLTy *  isl_obj,
ISL_CTX_GETTER  ctx_getter_fn,
ISL_PRINTER  printer_fn,
const std::string &  DefaultValue 
)
inlinestatic

Definition at line 87 of file GICHelper.cpp.

References isl_printer_free(), isl_printer_get_str(), isl_printer_to_str(), and p.