17 Commits

Author SHA1 Message Date
John McCall
0cfbe8c84e [NFC] Introduce a little generators library 2023-03-20 20:06:08 -04:00
Doug Gregor
730cf6ccce Add a helper form of ArrayRefView to create a cast<> projection. 2018-07-02 13:32:40 -07:00
Sho Ikeda
9c3e4848bf [gardening][Basic] Replace typedef with using 2018-03-28 21:27:26 +09:00
Ron Olson
b96b7c3306 Fix for SR-6986; Swift does not build with Clang 6 (#14589)
Added decrement operators for the ArrayRefView class
2018-02-13 18:20:00 -08:00
David Zarzycki
68c696dbc1 [SIL] NFC: Replace boilerplate projection with swift::ArrayRefView 2017-12-28 09:51:29 -05:00
John McCall
6d9294f565 Random improvements for ArrayRefView. 2017-09-25 02:05:23 -04:00
John McCall
7f22faf968 Substantially rework how SILGen handles bridging as part of laying the
ground work for the syntactic bridging peephole.

- Pass source and dest formal types to the bridging routines in addition
  to the dest lowered type.  The dest lowered type is still necessary
  in order to handle non-standard abstraction patterns for the dest type.

- Change bridging abstraction patterns to store bridged formal types
  instead of the formal type.

- Improve how SIL type lowering deals with import-as-member patterns.

- Fix some AST bugs where inadequate information was being stored in
  various expressions.

- Introduce the idea of a converting SGFContext and use it to regularize
  the existing id-as-Any conversion peephole.

- Improve various places in SILGen to emit directly into contexts.
2017-07-11 12:45:13 -04:00
John McCall
dbfc48218f Allow ArrayRefViews to opt in to a getOriginalArray() accessor. 2017-07-08 21:38:13 -04:00
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
practicalswift
797b80765f [gardening] Use the correct base URL (https://swift.org) in references to the Swift website
Remove all references to the old non-TLS enabled base URL (http://swift.org)
2016-11-20 17:36:03 +01:00
Dan Raviv
29d76f3b68 Canonize swift header files headers and footers
- Added missing ifdef guard in PointerIntEnum header
- Consistent naming convention for ifdef guards
- Consistent 'end namespace swift'
- Consistent single EOL at end of header files
2016-03-23 09:04:12 +02:00
danra
9b258949b3 Added missing 'const' to iterator comp. operators 2016-03-22 22:04:23 +02:00
danra
473e97504b [gardening] Add missing comments 2016-03-22 21:45:11 +02:00
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
Mark Lacey
26b3917298 Update ArrayRefView so that it works even if Basic/LLVM.h has not been included.
We've managed without this because every place this is included also
includes (directly or transitively) Basic/LLVM.h.

Swift SVN r32714
2015-10-15 21:35:06 +00:00
John McCall
af1aa962de Make ArrayRefView::iterator conform to the random-access
iterator requirements.

Swift SVN r9089
2013-10-09 20:55:44 +00:00
John McCall
cb06e316d0 Add CanBoundGenericType::getGenericArgs().
Swift SVN r8329
2013-09-17 07:22:26 +00:00