Commit Graph

12 Commits

Author SHA1 Message Date
practicalswift
776d28cc3c [Python] Remove unused function diagnostic_passlist() 2016-03-12 20:16:27 +01:00
Brian Gesiak
c9000af795 Merge pull request #1526 from practicalswift/fix-pep8-violations-ii
[Python] Fix five classes of PEP-8 violations (E101/E111/E128/E302/W191)
2016-03-08 23:55:46 -05:00
practicalswift
265835fdfc [Python] Use consistent import ordering for Python code
Ordering used:
1.) standard library imports
2.) third party imports
3.) local package imports

Each group is individually alphabetized.
2016-03-07 23:25:16 +01:00
practicalswift
183da818df [Python] Fix five classes of PEP-8 violations (E101/E111/E128/E302/W191)
* E101: indentation contains mixed spaces and tabs
* E111: indentation is not a multiple of four
* E128: continuation line under-indented for visual indent
* E302: expected 2 blank lines, found 1
* W191: indentation contains tabs
2016-03-07 22:36:23 +01:00
practicalswift
f6d6585ee0 [Python] Improve Python consistency: Use function_name(…) throughout (PEP8) 2016-02-29 22:49:19 +01:00
practicalswift
679f1853d2 PEP8: Fix all violations of type "at least two spaces before inline comment" (E261) 2016-01-24 10:10:55 +01:00
practicalswift
1cd4d4e9c9 [gardening] Fix violations of non-controversial PEP8 rules
Fixes:
* multiple statements on one line (colon) (E701)
* missing whitespace around arithmetic operator (E226)
* missing whitespace around operator (E225)
* closing bracket does not match visual indentation (E124)
* blank line contains whitespace (W293)
* continuation line missing indentation or outdented (E122)
* continuation line over-indented for hanging indent (E126)
* missing expected blank line (E301)
* trailing whitespace (W291)
* unexpected spaces around keyword / parameter equals (E251)
* whitespace after '(', '[' or '{' (E201)
* whitespace before ')', ']' or '}' (E202)
* whitespace before ',' or ':' (E203)
2016-01-23 09:23:33 +01:00
practicalswift
78c5264885 Make scripts/pipeline_generator.py usable again.
Before this commit:

```
$ utils/pass-pipeline/scripts/pipeline_generator.py
utils/pass-pipeline/scripts/pipeline_generator.py
Traceback (most recent call last):
  File "utils/pass-pipeline/scripts/pipeline_generator.py", line 15, in <module>
    normal_pipeline = [x for x in pass_pipeline_library.normal_passpipelines()]
  File "/path/to/swift/utils/pass-pipeline/src/pass_pipeline_library.py", line 106, in normal_passpipelines
    x.addPass(specialization_passlist())
NameError: global name 'specialization_passlist' is not defined
```

After this commit:

```
$ utils/pass-pipeline/scripts/pipeline_generator.py
[
    [
        "HighLevel",
        "run_n_times",
        2,
        "SimplifyCFG",
…
```
2015-12-29 12:52:34 +01:00
Mark Lacey
4c62204007 Remove the stand-alone generic specialization pass.
We do generic specialization in the inliner now, so we no longer need
the separate pass.

The order the specializations are inserted into the module differs as a
result of this, which means that one unfortunately huge test needed
substantial changes.

At some point this test needs to be converted to SIL and split up into
smaller chunks.

Swift SVN r31323
2015-08-19 00:24:00 +00:00
Mark Lacey
99cf3dcf2a Rename Devirtualizer.cpp to SpeculativeDevirtualizer.cpp.
This file now contains only the speculative devirtualization pass, so
rename accordingly.

Also remove remaining references to "inline caches", since we're now
calling it speculative devirtualization.

Swift SVN r31096
2015-08-08 06:42:30 +00:00
Michael Gottesman
73a5a1bcf7 [passpipeline] Some small cleanups. NFC.
Swift SVN r24311
2015-01-09 17:29:35 +00:00
Michael Gottesman
4ef6edbda9 Add python utilities for generating pipeline files.
Specifically the following utilities are provided:

1. Normal Pipeline.
2. Normal Pipeline with Specific Passes Disabled.
5. Normal Pipeline with specific PassLists disabled.

Swift SVN r24056
2014-12-20 04:09:48 +00:00