Commit Graph

1551 Commits

Author SHA1 Message Date
practicalswift
53474bc156 [CMakeLists] Comment out unnecessary logic 2016-03-01 11:00:15 +01:00
Michael Gottesman
fc1735ce5d Fix thinko. 2016-02-29 20:14:11 -08:00
Michael Gottesman
d2143730c0 [lto] Add the option llvm-enable-lto that compiles LLVM/Clang with LTO.
If you also set swift-enable-lto to 1, then you get a swiftc that is compiled
fully with LTO.
2016-02-29 19:53:51 -08:00
Brian Gesiak
03fd72f713 [SR-237] Move SKIP_TEST_* arguments to Python
- Migrate `SKIP_TEST_IOS`, `SKIP_TEST_TVOS`, and `SKIP_TEST_WATCHOS` to
  Python.
- In the `build-script-impl` shellscript, only deal with
  `SKIP_TEST_*_HOST` and `SKIP_TEST_*_SIMULATOR` variables.
- Introduce a `--host-test` flag to the Python `build-script` in order
  to allow users to specify whether to run host tests. These flags
  still don't do anything.
- Fix typo: `skip-build-tvos_device` was meant to be `skip-build-tvos-device`.
2016-02-29 19:19:33 -05:00
practicalswift
f6d6585ee0 [Python] Improve Python consistency: Use function_name(…) throughout (PEP8) 2016-02-29 22:49:19 +01:00
Max Moiseev
a49dab6bf8 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-02-29 12:08:52 -08:00
Erik Eckstein
05f864ec26 cmpcodesize: tabs -> spaces 2016-02-29 10:30:41 -08:00
Erik Eckstein
3bc98e0d83 cmpcodesize: fix output of functions which are only in one of the compared files 2016-02-29 10:30:41 -08:00
Michael Gottesman
31b9229dd8 [gardening] Move ./swift/utils/*.d => ./swift/utils/dtrace/*.d.
The 'utils' folder has become a dumping ground. This is an attempt to clean it
up a little bit.
2016-02-28 13:46:06 -08:00
Michael Gottesman
133f8549fa Make the ubsan build actually work. I made a careless mistake in the previous commit. This should work now. 2016-02-27 00:18:01 -08:00
Michael Gottesman
f1df90423d Add support for compiling the compiler (not the stdlib) with ubsan.
While on OS X, ubsan is not productized, on linux it is, so hopefully we can get
this setup on a bot so we can catch some undefined behavior issues.
2016-02-27 00:04:35 -08:00
Michael Gottesman
644005dd5f [cmake] Remove the code needed to support USR dtrace probes. We do not use them anymore. 2016-02-26 15:55:41 -08:00
eeckstein
3f43950f82 Merge pull request #651 from modocache/cmpcodesize-list-functions-early-return
[cmpcodesize] Fix early return in --list
2016-02-26 14:30:41 -08:00
Adrian Prantl
310b0433a9 Reapply "Serialize debug scope and location info in the SIL assembler language.""
This ireapplies commit 255c52de9f.

Original commit message:

Serialize debug scope and location info in the SIL assembler language.
At the moment it is only possible to test the effects that SIL
optimization passes have on debug information by observing the
effects of a full .swift -> LLVM IR compilation. This change enable us
to write targeted testcases for single SIL optimization passes.

The new syntax is as follows:

 sil-scope-ref ::= 'scope' [0-9]+
 sil-scope ::= 'sil_scope' [0-9]+ '{'
                 sil-loc
                 'parent' scope-parent
                 ('inlined_at' sil-scope-ref )?
               '}'
 scope-parent ::= sil-function-name ':' sil-type
 scope-parent ::= sil-scope-ref
 sil-loc ::= 'loc' string-literal ':' [0-9]+ ':' [0-9]+

Each instruction may have a debug location and a SIL scope reference
at the end.  Debug locations consist of a filename, a line number, and
a column number.  If the debug location is omitted, it defaults to the
location in the SIL source file.  SIL scopes describe the position
inside the lexical scope structure that the Swift expression a SIL
instruction was generated from had originally. SIL scopes also hold
inlining information.

<rdar://problem/22706994>
2016-02-26 13:28:57 -08:00
Adrian Prantl
255c52de9f Revert "Serialize debug scope and location info in the SIL assembler language."
Temporarily reverting while updating the validation test suite.

This reverts commit c9927f66f0.
2016-02-26 11:51:57 -08:00
Adrian Prantl
c9927f66f0 Serialize debug scope and location info in the SIL assembler language.
At the moment it is only possible to test the effects that SIL
optimization passes have on debug information by observing the
effects of a full .swift -> LLVM IR compilation. This change enable us
to write targeted testcases for single SIL optimization passes.

The new syntax is as follows:

 sil-scope-ref ::= 'scope' [0-9]+
 sil-scope ::= 'sil_scope' [0-9]+ '{'
                 sil-loc
                 'parent' scope-parent
                 ('inlined_at' sil-scope-ref )?
               '}'
 scope-parent ::= sil-function-name ':' sil-type
 scope-parent ::= sil-scope-ref
 sil-loc ::= 'loc' string-literal ':' [0-9]+ ':' [0-9]+

Each instruction may have a debug location and a SIL scope reference
at the end.  Debug locations consist of a filename, a line number, and
a column number.  If the debug location is omitted, it defaults to the
location in the SIL source file.  SIL scopes describe the position
inside the lexical scope structure that the Swift expression a SIL
instruction was generated from had originally. SIL scopes also hold
inlining information.

<rdar://problem/22706994>
2016-02-26 10:46:29 -08:00
Michael Gottesman
b06937f6de [dtrace] Tighten up the statistics scripts a little more by tieing the probes to specific libraris. 2016-02-25 12:57:36 -08:00
Michael Gottesman
25674b7adb [dtrace] Make sure when instrumenting release to be sure that arg0 is not nullptr. I had this check with swift_retain, but I forgot to use it in swift_release. 2016-02-25 12:31:11 -08:00
Max Moiseev
488b464f10 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-02-25 12:21:56 -08:00
Enrico Granata
66b0b57b8f Fix grammar issue in help text 2016-02-25 10:32:46 -08:00
Mishal Shah
4cfccda0d7 [build-script] Fix missing install-symroot flag 2016-02-24 23:54:43 -08:00
Mishal Shah
839696e026 Revert "[build-script] Fix missing install-symroot flag"
This reverts commit 9e1c6c2d59.
2016-02-24 23:21:05 -08:00
Mishal Shah
9e1c6c2d59 [build-script] Fix missing install-symroot flag 2016-02-24 22:57:09 -08:00
Michael Gottesman
0b6c6d70e2 [dtrace] Make the output a bit cleaner from the runtime_statistics. 2016-02-24 17:52:35 -08:00
Doug Gregor
1c2ce6f22f [Omit needless words] Add a flag to let us skip overrides and witnesses.
When performing Swift API dumps, it's helpful to avoid putting
redundant APIs into the results. Therefore, filter out any APIs that
are overrides of another API or are witnesses for a protocol
requirement, since the original definition (that doesn't override any
other or is a protocol requirement) is what determines the APIs name.
2016-02-24 17:47:31 -08:00
Jordan Rose
e5ae60aafc stdlib: Rename some helpers inside UnicodeTrie. NFC. 2016-02-24 17:46:13 -08:00
Michael Gottesman
aec916c212 [dtrace] Add dtrace for support for counting the number of retains/releases applied to specific classes as well as computing total retain/release counts. 2016-02-24 17:44:12 -08:00
Max Moiseev
bb3eaaf308 Merging in latest master 2016-02-24 15:10:25 -08:00
Dmitri Gribenko
0d307d498d Merge pull request #1426 from modocache/build-script-skip-builds-tests-linux
[build-script] Skip option for non-Darwin stdlib tests
2016-02-23 22:25:00 -08:00
Dmitri Gribenko
225497dfc4 Merge pull request #1316 from modocache/build-script-impl-xctest
[build-script] Build & test XCTest (on OS X, too)
2016-02-23 22:24:12 -08:00
Brian Gesiak
213d81dcbe [build-script] Skip option for non-Darwin stdlib tests
It's possible to cross-compile for iOS while skipping stdlib tests
on OS X:

```
$ utils/build-script --ios -- --skip-test-osx
```

The same is not possible on Linux. Add options to skip builds and
tests on non-Darwin platforms: Linux, FreeBSD, and Cygwin.
2016-02-23 23:48:51 -05:00
Dmitri Gribenko
546b70021e Merge pull request #1424 from hpux735/presets
Update build preset to current state of arm support
2016-02-23 20:45:49 -08:00
William Dillon
f1d5050e79 Updated the armv7 build-preset to recent capabilities 2016-02-24 04:27:27 +00:00
Erik Eckstein
dcb458676b Revert "Revert "[Omit needless words] Always dump both argument label and parameter name.""
This reverts commit 836cf9ea71.

Sorry, I reverted the wrong commit
2016-02-23 07:41:50 -08:00
Erik Eckstein
836cf9ea71 Revert "[Omit needless words] Always dump both argument label and parameter name."
This reverts commit c0b432d7eb.

There is a crash in StdlibUnittests on i386.
2016-02-22 21:30:41 -08:00
Dave Abrahams
887c3bbe82 build-script: let distcc dictate parallelism 2016-02-22 18:57:41 -08:00
Dmitri Gribenko
7235595264 Merge pull request #1108 from tinysun212/porting-to-cygwin
Porting to cygwin
2016-02-22 18:53:30 -08:00
Doug Gregor
c0b432d7eb [Omit needless words] Always dump both argument label and parameter name.
The default first argument label rules are confusing reviewers looking
at API dumps. Even though it's more verbose, always put in argument
labels explicitly.
2016-02-22 15:11:16 -08:00
Doug Gregor
78cb038cbb [Omit needless words] Don't prefix-strip when dumping APIs.
We're going to delay NS prefix stripping for a bit. Change the API
dump script accordingly, and bump the Swift name lookup table format
version number so this doesn't break everyone who has already run
swift-api-dump.py.
2016-02-22 14:24:20 -08:00
Dave Abrahams
351fd7e5cf Merge pull request #1374 from practicalswift/variable-in-function-should-be-lowercase
[Python] Argument names should be lowercase by convention
2016-02-21 21:25:01 -08:00
Han Sangjin
e06c7136cb Porting to Cygwin. rebased and squashed 2016-02-22 13:20:21 +09:00
Michael Gottesman
46ea4e9edf [sil-mode.el] Add syntax highlighting for load_unowned/store_unowned. 2016-02-21 19:04:54 -08:00
Michael Gottesman
13e629a665 [sil-mode.el] Remove Swift statement highlighting from SIL mode.
These are a result of sil-mode being originally based on Swift mode. These swift
statements never show up in SIL output (which does not show Swift bodies), so just remove it.
2016-02-21 15:14:42 -08:00
practicalswift
d8a7c4b447 [Python] Argument names should be lowercase by convention 2016-02-20 23:29:41 +01:00
Ted Kremenek
35dbc6b770 Merge pull request #1380 from practicalswift/docstring-fixes
[Python] Follow standard Python docstrings conventions (PEP-0257)
2016-02-20 11:39:46 -08:00
practicalswift
e395ea0f0e [Python] Follow standard Python docstrings conventions (PEP-0257).
https://www.python.org/dev/peps/pep-0257/
2016-02-20 17:11:57 +01:00
practicalswift
0a33ff727c Fix new PEP8 violation: "continuation line with same indent as next logical line" 2016-02-20 16:49:25 +01:00
Dmitri Gribenko
e3542446cb update-checkout: add an option to skip given repositories 2016-02-20 03:10:53 -08:00
Dmitri Gribenko
75c101d980 update-checkout: change --clone to also update repositories
--clone used to skip updating the repositories, which was causing
confusion.  Developers expect update-checkout to update their local
copy, and optionally clone extra repositories.
2016-02-20 02:45:08 -08:00
Michael Gottesman
4fcdc025be [sil-mode.el] Add syntax highlighting for some more instructions. 2016-02-19 20:54:27 -08:00