John Garvin
a1badb1777
Add kernel/shader data to SILFunction.
...
Swift SVN r9047
2013-10-09 01:11:20 +00:00
Dmitri Hrybenko
b18c38a322
Rename ImplicitClosureExpr -> AutoClosureExpr
...
Swift SVN r8304
2013-09-16 23:03:50 +00:00
Dmitri Hrybenko
e7af4d6c72
Collapse ImplicitClosureExpr into its abstract base class, ClosureExpr
...
Swift SVN r8280
2013-09-16 18:31:05 +00:00
Dmitri Hrybenko
536ed954ad
Remove FuncExpr. Add CaptureInfo to FuncDecl. Introduce AnyFunctionRef.
...
AnyFunctionRef is a universal function reference that can wrap all AST nodes
that represent functions and exposes a common interface to them. Use it in two
places in SIL where CapturingExpr was used previously.
AnyFunctionRef allows further simplifications in other places, but these will
be done separately.
Swift SVN r8239
2013-09-14 02:15:48 +00:00
Dmitri Hrybenko
0d6d9a0ffb
Move the DeclContext base class from FuncExpr to FuncDecl
...
FuncDecl still has a FuncExpr because capture list is stored in FuncExpr
(which is a CapturingExpr).
Swift SVN r8179
2013-09-13 01:40:41 +00:00
Dmitri Hrybenko
7da84fd13d
Make FuncExpr, PipeClosureExpr and ClosureExpr DeclContexts on their own.
...
This is a first step to detach them from CapturingExpr and eventually move them
in the AST class hierarchy.
Swift SVN r8171
2013-09-12 23:58:06 +00:00
Adrian Prantl
da57c68c62
Just code cleanup.
...
Swift SVN r8118
2013-09-11 23:07:00 +00:00
Adrian Prantl
b9ac293046
Revert "more code cleanup." Accidentally committed too much.
...
This reverts commit 4e476a57689da4acf3e3dd5d5e385b18b57d571c.
Swift SVN r8117
2013-09-11 22:57:50 +00:00
Adrian Prantl
b287c3417e
more code cleanup.
...
Swift SVN r8116
2013-09-11 22:49:08 +00:00
Adrian Prantl
46f616938c
Debug info: Emit mangled name for bound generic structs and classes.
...
Implements rdar://problem/14802271
Swift SVN r8095
2013-09-11 17:58:54 +00:00
Adrian Prantl
af562d1696
Debug info: name mangling for composite types containing Archetypes.
...
Among other things this enables mangled names for tuples.
This adds a pointer to the DeclContext to SILFunction and which is used
to provide the necessary context to the Mangler.
Fixes rdar://problem/14808764 and rdar://problem/14813658.
Swift SVN r8070
2013-09-10 17:04:33 +00:00
Anna Zaks
c06bd83358
[SIL] Remove the last few uses of SILLocation constructor.
...
This also removes the constructor itself, which forces future users of
SILLocation to construct a valid location.
Swift SVN r8056
2013-09-09 22:34:05 +00:00
Manman Ren
ad318b0cee
SIL Serialiation: add Transparent to SILFunction so we can decide which
...
functions should be serialized.
Transparent is added as a 1-bit field. In SILGen, we set SILFunction's
transparent attribute according to the attribute of the ValueDecl.
Swift SVN r7882
2013-09-04 00:16:34 +00:00
Joe Groff
1984cf41e0
SIL: Rename SILFunction::getMangledName to SILFunction::getName.
...
Swift SVN r6430
2013-07-21 18:39:51 +00:00
Adrian Prantl
de32b201d0
Debug Info: Add support for subprograms.
...
This means that single-stepping in lldb actually works now!
Swift SVN r5828
2013-06-27 00:46:30 +00:00
Chris Lattner
e4ccec4cfc
rename SILBAse.h -> SILAllocated.h and SILBase.cpp -> SILModule.cpp to
...
reflect their contents.
Swift SVN r5198
2013-05-17 04:25:49 +00:00
Chris Lattner
63e2a60585
rename Module:: and Function::getContext to ::getASTContext()
...
This matches SILType and is more explicit about which context
we're talking about.
Swift SVN r5185
2013-05-16 20:14:13 +00:00
Chris Lattner
21a3b9d246
remove two helper forwarding methods from SILFunction
...
one is dead, the other isn't helpful enough to persist.
Swift SVN r5184
2013-05-16 20:07:53 +00:00
Chris Lattner
3facf741fa
move SILFunction implementation goop out into SILFunction.cpp
...
and make the SILFunction ctor public since SIL is an optimization
IR, not just a transient by product of IRGen. :)
Swift SVN r5183
2013-05-16 19:59:01 +00:00