Commit Graph

9 Commits

Author SHA1 Message Date
Andrew Trick
1964f07346 Add IndexSet::isDisjointWith 2025-03-23 16:59:10 -07:00
Tim Kientzle
1d961ba22d Add #include "swift/Basic/Assertions.h" to a lot of source files
Although I don't plan to bring over new assertions wholesale
into the current qualification branch, it's entirely possible
that various minor changes in main will use the new assertions;
having this basic support in the release branch will simplify that.
(This is why I'm adding the includes as a separate pass from
rewriting the individual assertions)
2024-06-05 19:37:30 -07:00
Dan Zheng
a88bd15815 [AutoDiff] Remove raw_ostream & argument from IndexSubset::dump. (#31675)
Remove `llvm::raw_ostream &` argument so that `IndexSubset::dump` can be called
in lldb without issue.
2020-05-09 11:18:40 -07:00
Michael Forster
fae87c96d7 Move interleave(...) to the llvm namespace
This simplifies fixing the master-next build. Upstream LLVM already
has a copy of this function, so on master-next we only need to delete
the Swift copy, reducing the potential for merge conflicts.
2020-04-17 11:20:50 +02:00
Robert Widmann
1c156dba8f [Gardening] Remove tautological comparison 2020-02-08 10:41:44 -08:00
Dan Zheng
b826b3cc04 [AST] Fix bug in IndexSubset::findPrevious. (#29675)
Fix incorrect loop decrement in `IndexSubset::findPrevious`
Add unit tests.
2020-02-06 14:24:00 -08:00
Dan Zheng
63ce61b9aa [AutoDiff] NFC: Use consistent headers for IndexSubset.{h,cpp}.
Left-align headers. Use consistent message. Use accurate year in copyright.
2019-12-12 14:23:28 -08:00
Dan Zheng
7b5dfd6cf6 [AutoDiff upstream] NFC: update IndexSubset print/dump utilities. (#27775)
Cherry-pick #27772 from tensorflow branch.
2019-10-18 14:01:28 -07:00
Richard Wei
9765858d31 Rename to 'IndexSubset' and move it to its own file. 2019-10-11 13:07:53 -07:00