[PATCH] D48136: [Polly] Implement an iterator for isl maps, basic_maps, sets, basic_sets

Philip Pfaffe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 13 10:37:00 PDT 2018


philip.pfaffe created this revision.
Herald added subscribers: llvm-commits, steven_wu, bollu, mehdi_amini.
Herald added a reviewer: bollu.

Provide an iterator to simplify iteration over some isl collections.
Since these types do not natively support iteration, they have to be converted
to an list first by the caller, but can then be used in a ranged for loop:

  isl::set S;
  for (auto SubSet : S.get_basic_set_list ()) {
    // ...
  }


Repository:
  rPLO Polly

https://reviews.llvm.org/D48136

Files:
  include/polly/Support/ISLTools.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48136.151197.patch
Type: text/x-patch
Size: 3402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180613/deeb3b5f/attachment.bin>


More information about the llvm-commits mailing list