[llvm-commits] [polly] r144640 - /polly/trunk/lib/Cloog.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Tue Nov 15 03:38:47 PST 2011
Author: grosser
Date: Tue Nov 15 05:38:47 2011
New Revision: 144640
URL: http://llvm.org/viewvc/llvm-project?rev=144640&view=rev
Log:
Cloog: Copy parameter names from isl data structures
Modified:
polly/trunk/lib/Cloog.cpp
Modified: polly/trunk/lib/Cloog.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Cloog.cpp?rev=144640&r1=144639&r2=144640&view=diff
==============================================================================
--- polly/trunk/lib/Cloog.cpp (original)
+++ polly/trunk/lib/Cloog.cpp Tue Nov 15 05:38:47 2011
@@ -179,6 +179,18 @@
CloogInput *Cloog::buildCloogInput() {
CloogDomain *Context = cloog_domain_from_isl_set(S->getContext());
CloogUnionDomain *Statements = buildCloogUnionDomain();
+
+ isl_set *ScopContext = S->getContext();
+
+ for (unsigned i = 0; i < isl_set_dim(ScopContext, isl_dim_param); i++) {
+ isl_id *id = isl_set_get_dim_id(ScopContext, isl_dim_param, i);
+ Statements = cloog_union_domain_set_name(Statements, CLOOG_PARAM, i,
+ isl_id_get_name(id));
+ isl_id_free(id);
+ }
+
+ isl_set_free(ScopContext);
+
CloogInput *Input = cloog_input_alloc(Context, Statements);
return Input;
}
More information about the llvm-commits
mailing list