Commit Graph

20 Commits

Author SHA1 Message Date
practicalswift
4f2496e1a6 Various Python cleanups
Fixes:
* Unused import
* Redundant backslash
* Use of discouraged if not x in y
* Use of deprecated form of raising exceptions

Follow-up to PR #655 as requested by @gribozavr
2015-12-22 21:05:47 +01:00
Michael Gottesman
851b7885da [pass-pipeline] Cleanup parser.
Swift SVN r24351
2015-01-10 04:12:40 +00:00
Michael Gottesman
4e941c8374 Create the verbose argument right... *sigh*.
Swift SVN r24340
2015-01-10 00:45:21 +00:00
Michael Gottesman
3f6f10a562 [pipelines] Add a verbose option to pipelines.
Swift SVN r24338
2015-01-10 00:40:28 +00:00
Michael Gottesman
37d07b9ce0 [pipelines] Change running with build script to not bail if one iteration of building the stdlib with a pass disabled fails. Also only dump output upon failure.
Swift SVN r24328
2015-01-09 22:43:05 +00:00
Michael Gottesman
997b90aa7b Add to pipelines_build_script.py subparsers for argparsing the right way and add a user friendly mode to run with a specific pass disabled.
Swift SVN r24316
2015-01-09 17:29:37 +00:00
Michael Gottesman
faa2f9339e Rename normal_pipeline.py => pipeline_generator.py and pipelines.py => pipelines_build_script.py.
This makes it clearer via their name what the two scripts are meant to
be used for.

As a recap:

1. pipeline_generator.py is meant for generating pass pipeline json
files.
2. pipelines_build_script.py is a script built ontop of
pipeline_generator.py that makes it easy to run build-script with
various pass pipelines that can be generated from
pipeline_generator.py. It is meant to be used on buildbots and for ones
own enjoyment as well.

Swift SVN r24315
2015-01-09 17:29:36 +00:00
Michael Gottesman
9ec2bee5a7 [pipeline] Refactor our generation of pipeline files for disabling a specific pass from the general go through and disable all passes once and run code.
Swift SVN r24314
2015-01-09 17:29:36 +00:00
Michael Gottesman
e998041451 pipeline: Don't hard code pass names into pipelines.py. Just use the PASSES variable from passes.py in the library.
The pipeline code still has too much hard coded. I am going to write a little
tool that is disabled by default that when run provides all this information
from the compiler. So the tool will dump out the current pass list, the normal optimization
pipelines, and then all of the passes used in such pipelines (i.e. AADumper is a
great pass but it won't change how the stdlib compiles). But for now I am going
to leave it hard coded.

Swift SVN r24313
2015-01-09 17:29:36 +00:00
Michael Gottesman
7365be3b5f [pipeline] Pretty print the pipeline json files.
Swift SVN r24312
2015-01-09 17:29:35 +00:00
Michael Gottesman
9f3bd6936f remove old cruft from pipeline.
Swift SVN r24307
2015-01-09 16:34:32 +00:00
Michael Gottesman
43e84fca09 Add a preset for extra-swift-args and fixup the pipeline driver so it works with the preset.
Swift SVN r24282
2015-01-08 20:57:59 +00:00
Michael Gottesman
ee61c58439 Fix some pylint errors.
Swift SVN r24275
2015-01-08 07:29:56 +00:00
Michael Gottesman
c88d9d3e0a Make pipelines.py executable and remove trailing whitespace.
Swift SVN r24274
2015-01-08 07:18:41 +00:00
Michael Gottesman
3f73d74a97 Add a new pipelines generating script that works with build script options to pass arbitrary flags into the compiler
Swift SVN r24273
2015-01-08 07:17:14 +00:00
Michael Gottesman
09cf7b87e9 [libjenkins] Remove invocation code from libjenkins.pipelines.sh. It is supposed to be a library not an exe anymore. = /.
Swift SVN r24122
2014-12-23 21:45:37 +00:00
Michael Gottesman
b8f7cfdda7 [libjenkins] Add libjenkins.pipelines.sh, an extension that is sourced after libjenkins that provides the ability to run various pipelines.
Swift SVN r24120
2014-12-23 21:10:55 +00:00
Michael Gottesman
1a14651091 Add in small script that generates pipelines one for each pass with the pass disabled and for each pass manager with the passmanager disabled.
The idea is to put this on a bot so we can catch these all the time.

Swift SVN r24106
2014-12-23 08:50:03 +00:00
Michael Gottesman
a5ad9f5d51 Add in a #! python line for normal_pipeline generation.
Swift SVN r24065
2014-12-21 23:14:19 +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