[PATCH] D47604: Add isl C++ list iterators
Tobias Grosser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 31 13:10:38 PDT 2018
grosser created this revision.
grosser added reviewers: Meinersbur, bollu, sebpop.
Herald added a subscriber: mehdi_amini.
These iterators allow to use C++ range-based for loops to enumerate the
elements in an isl list. They can be used to enumerate e.g. the sets in
a union set:
for (isl::set Set : USet.get_set_list()) {
Set.dump();
}
Use this implementation to replace the use of foreach + lambda with
easier readable range-based for loops.
Repository:
rPLO Polly
https://reviews.llvm.org/D47604
Files:
include/polly/Support/ISLTools.h
lib/Support/ISLTools.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47604.149346.patch
Type: text/x-patch
Size: 7186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180531/780d41ff/attachment.bin>
More information about the llvm-commits
mailing list