Typically, I tried to patch the 7 patches series using git apply, and
it failed (see log + patch file attached). I suppose I need to apply
all the previous patches to get it right, Am I right ?
> git apply sven.patch -v
Checking patch scan.cc...
error: while searching for:
{
PetScan *ps = (PetScan *) user;
isl_id *id;
QualType qt;
id = pet_expr_access_get_id(access);
qt = pet_id_get_array_type(id);
isl_id_free(id);
return ps->get_array_size(qt);
}
/* Construct and return a pet_array corresponding to the variable
error: patch failed: scan.cc:2191
error: scan.cc: patch does not apply
Checking patch scan.h...
error: while searching for:
static __isl_give isl_val *extract_int(isl_ctx *ctx,
clang::IntegerLiteral *expr);
__isl_give pet_expr *get_array_size(clang::QualType qt);
struct pet_array *extract_array(__isl_keep isl_id *id,
PetTypes *types, __isl_keep pet_context *pc);
private:
error: patch failed: scan.h:157
error: scan.h: patch does not apply
Checking patch Makefile.am...
error: while searching for:
id.cc \
inliner.h \
inliner.cc \
killed_locals.h \
killed_locals.cc \
loc.h \
loc.c \
nest.h \
nest.c \
options.h \
error: patch failed: Makefile.am:68
error: Makefile.am: patch does not apply
Checking patch isl_id_to_pet_expr.c...
Checking patch isl_id_to_pet_expr.h...
Checking patch maybe_pet_expr.h...
Checking patch scan.cc...
error: while searching for:
for (it_s = summary_cache.begin(); it_s != summary_cache.end();
++it_s)
pet_function_summary_free(it_s->second);
isl_union_map_free(value_bounds);
}
error: patch failed: scan.cc:216
error: scan.cc: patch does not apply
Checking patch scan.h...
error: while searching for:
*/
bool partial;
/* A cache of size expressions for array types as computed
* by PetScan::get_array_size.
*/
error: patch failed: scan.h:99
error: scan.h: patch does not apply
Checking patch scan.cc...
error: while searching for:
return expr;
}
/* Does "expr" represent the "integer" infinity?
*/
static int is_infty(__isl_keep pet_expr *expr)
error: patch failed: scan.cc:2663
error: scan.cc: patch does not apply
Checking patch scan.h...
error: while searching for:
bool partial;
/* A cache of size expressions for array identifiers as
computed
* by PetScan::get_array_size.
*/
isl_id_to_pet_expr *id_size;
/* A cache of size expressions for array types as computed
error: patch failed: scan.h:101
error: scan.h: patch does not apply
Checking patch substituter.cc...
error: while searching for:
void *user);
}
/* Perform the substitutions stored in "subs" on "tree" and return
* the results.
* In particular, perform the substitutions on each of the access
error: patch failed: substituter.cc:49
error: substituter.cc: patch does not apply
Checking patch substituter.h...
error: while searching for:
void add_sub(__isl_take isl_id *id, __isl_take pet_expr *expr);
__isl_give pet_tree *substitute(__isl_take pet_tree *tree);
~pet_substituter();
error: patch failed: substituter.h:16
error: substituter.h: patch does not apply
Checking patch scan.cc...
Hunk #1 succeeded at 1870 (offset -1 lines).
Checking patch scan.cc...
error: while searching for:
return 0;
}
/* Try and construct a pet_tree from the body of "fd" using the actual
* arguments in "call" in place of the formal arguments.
* "fd" is assumed to point to the declaration with a function body.
error: patch failed: scan.cc:1863
error: scan.cc: patch does not apply
Checking patch scan.h...
error: while searching for:
clang::QualType qt, int pos);
struct pet_array *set_upper_bounds(struct pet_array *array,
__isl_keep pet_context *pc);
__isl_give pet_tree *insert_initial_declarations(
__isl_take pet_tree *tree, int n_decl,
error: patch failed: scan.h:192
error: scan.h: patch does not apply
Checking patch tests/inline11.c...
Checking patch tests/inline11.scop...