llvm-project/polly/lib/Analysis
Hongbin Zheng 8831eb7db4 [Refactor] Move isl_ctx into Scop.
After we moved isl_ctx into Scop, we need to free the isl_ctx after
  freeing all isl objects, which requires the ScopInfo pass to be freed
  at last. But this is not guaranteed by the PassManager, and we need
  extra code to free the isl_ctx at the right time.

  We introduced a shared pointer to manage the isl_ctx, and distribute
  it to all analyses that create isl objects. As such, whenever we free
  an analyses with the shared_ptr (and also free the isl objects which
  are created by the analyses), we decrease the (shared) reference
  counter of the shared_ptr by 1. Whenever the reference counter reach
  0 in the releaseMemory function of an analysis, that analysis will
  be the last one that hold any isl objects, and we can safely free the
  isl_ctx with that analysis.

Differential Revision: http://reviews.llvm.org/D17241

llvm-svn: 261100
2016-02-17 15:49:21 +00:00
..
DependenceInfo.cpp [Refactor] Move isl_ctx into Scop. 2016-02-17 15:49:21 +00:00
ScopDetection.cpp ScopDectect: Allow memory accesses with different element types by default (try 3) 2016-02-16 14:37:24 +00:00
ScopDetectionDiagnostic.cpp Make memory accesses with different element types optional 2016-02-07 08:48:57 +00:00
ScopGraphPrinter.cpp Fix formatting 2015-12-17 13:04:30 +00:00
ScopInfo.cpp [Refactor] Move isl_ctx into Scop. 2016-02-17 15:49:21 +00:00
ScopPass.cpp [Refactor] Add a Scop & as argument to printScop 2015-03-01 18:40:25 +00:00