Duncan Exon Smith
c6d42db070
Adapt to MD* => DI* renaming of debug info types
...
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE). This is the
final step of rdar://problem/20434113.
Swift SVN r27925
2015-04-29 21:40:21 +00:00
Duncan Exon Smith
093eb3c365
DebugInfo: Hand-update testcases after LLVM r231082
...
Update debug info testcases after moving the new hierarchy into place in
upstream LLVM r231082.
rdar://problem/19720042
Swift SVN r25715
2015-03-03 19:15:31 +00:00
Dmitri Hrybenko
3b04d1b013
tests: reorganize tests so that they actually use the target platform
...
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK. The driver was defaulting to the
host OS. Thus, we could not run the tests when the standard library was
not built for OS X.
Swift SVN r24504
2015-01-19 06:52:49 +00:00
Adrian Prantl
d7489b7272
Update testcases for new LLVM IR assembler syntax.
...
Swift SVN r24428
2015-01-14 23:38:18 +00:00
Chris Willmore
03a6190a1f
<rdar://problem/19031957> Change failable casts from "as" to "as!"
...
Previously the "as" keyword could either represent coercion or or forced
downcasting. This change separates the two notions. "as" now only means
type conversion, while the new "as!" operator is used to perform forced
downcasting. If a program uses "as" where "as!" is called for, we emit a
diagnostic and fixit.
Internally, this change removes the UnresolvedCheckedCastExpr class, in
favor of directly instantiating CoerceExpr when parsing the "as"
operator, and ForcedCheckedCastExpr when parsing the "as!" operator.
Swift SVN r24253
2015-01-08 00:33:59 +00:00
Chris Lattner
8c916c31f4
Fix <rdar://problem/19275047> Extraneous retains/releases of self are bad
...
This teaches SILGenLValue that base expressions referring to self can always
be done at +0, avoiding retain/release traffic. This eliminates some hacks
where init() needed special code, and also reduces r/r traffic in general.
Before the example in the radar silgen'd to:
sil hidden @_TFC1x4Base3foofS0_FT_T_ : $@cc(method) @thin (@owned Base) -> () {
bb0(%0 : $Base):
debug_value %0 : $Base // let self // id: %1
strong_retain %0 : $Base // id: %2
// function_ref x.Base.__allocating_init (x.Base.Type)() -> x.Base
%3 = function_ref @_TFC1x4BaseCfMS0_FT_S0_ : $@thin (@thick Base.Type) -> @owned Base // user: %5
%4 = metatype $@thick Base.Type // user: %5
%5 = apply %3(%4) : $@thin (@thick Base.Type) -> @owned Base // user: %7
%6 = ref_element_addr %0 : $Base, #Base.f // user: %7
assign %5 to %6 : $*Base // id: %7
strong_release %0 : $Base // id: %8
strong_release %0 : $Base // id: %9
%10 = tuple () // user: %11
return %10 : $() // id: %11
}
now the %2 and %8 instructions are gone.
Swift SVN r23977
2014-12-17 06:09:56 +00:00
Adrian Prantl
162bc8d24c
Updated testcases for upstream assembler changes.
...
Swift SVN r23942
2014-12-15 19:39:21 +00:00
Graham Batty
83f27a8af7
Revert "Mark tests that don't pass on linux as XFAIL."
...
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.
Swift SVN r23577
2014-11-24 17:42:13 +00:00
Graham Batty
198402dcfe
Mark tests that don't pass on linux as XFAIL.
...
Swift SVN r23573
2014-11-24 17:40:37 +00:00
Adrian Prantl
d8551038fe
Upgrade debug info tests to the new LLVM debug metadata format.
...
Thanks to Duncan for helping out with the upgrading!
Swift SVN r22512
2014-10-04 00:25:27 +00:00
Adrian Prantl
2665ad5f03
Simplify the debug scope handling in IRGenSIL to ignore instructions
...
that don't have a scope.
This gets rid of undesirable gaps in the line table.
<rdar://problem/17916256> XCode 6 beta 5 creating unwanted duplicate breakpoints
Swift SVN r21498
2014-08-28 00:05:48 +00:00
Adrian Prantl
752a8e6195
Fix a bug in SILInliner's debug scope handling that would clone a new
...
SILDebugScope once per mandatory-inlined call site.
<rdar://problem/17916256> XCode 6 beta 5 creating unwanted duplicate breakpoints
Swift SVN r21497
2014-08-28 00:05:36 +00:00