예제 #1
0
import argparse
import json
import os
import sys
import textwrap

# Append the src dir
sys.path.append(
    os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
                 'src'))

import pass_pipeline_library  # noqa (E402 module level import not at top of file)

import passes  # noqa (E402)

normal_pipeline = list(pass_pipeline_library.normal_passpipelines())
pass_pipelines = [x.identifier for x in normal_pipeline]

parser = argparse.ArgumentParser(description=textwrap.dedent("""
Generate pass pipelines based off of the normal swift pipeline.
"""))

parser.add_argument('--disable-pass',
                    nargs='*',
                    help='Disable this pass',
                    choices=[x.name for x in passes.PASSES],
                    action='append',
                    default=[])
parser.add_argument('--disable-passpipeline',
                    nargs='*',
                    help='Disable this pass list',
예제 #2
0
import os
import sys
import argparse
import itertools
import json
import textwrap

# Append the src dir
sys.path.append(
    os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
                 'src'))

import pass_pipeline_library
import passes

normal_pipeline = [x for x in pass_pipeline_library.normal_passpipelines()]
pass_pipelines = [x.identifier for x in normal_pipeline]

parser = argparse.ArgumentParser(description=textwrap.dedent("""
Generate pass pipelines based off of the normal swift pipeline.
"""))

parser.add_argument('--disable-pass',
                    nargs='*',
                    help='Disable this pass',
                    choices=[x.name for x in passes.PASSES],
                    action='append',
                    default=[])
parser.add_argument('--disable-passpipeline',
                    nargs='*',
                    help='Disable this pass list',
예제 #3
0
import argparse
import json
import os
import sys
import textwrap

# Append the src dir
sys.path.append(os.path.join(os.path.dirname(
    os.path.dirname(os.path.abspath(__file__))), 'src'))

import pass_pipeline_library

import passes

normal_pipeline = list(pass_pipeline_library.normal_passpipelines())
pass_pipelines = [x.identifier for x in normal_pipeline]

parser = argparse.ArgumentParser(description=textwrap.dedent("""
Generate pass pipelines based off of the normal swift pipeline.
"""))

parser.add_argument('--disable-pass', nargs='*', help='Disable this pass',
                    choices=[x.name for x in passes.PASSES], action='append',
                    default=[])
parser.add_argument('--disable-passpipeline', nargs='*',
                    help='Disable this pass list', choices=pass_pipelines,
                    default=[], action='append')

args = parser.parse_args()
예제 #4
0
#!/usr/bin/env python

import os
import sys
import argparse
import json
import textwrap

# Append the src dir
sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "src"))

import pass_pipeline_library
import passes

normal_pipeline = [x for x in pass_pipeline_library.normal_passpipelines()]
pass_pipelines = [x.identifier for x in normal_pipeline]

parser = argparse.ArgumentParser(
    description=textwrap.dedent(
        """
Generate pass pipelines based off of the normal swift pipeline.
"""
    )
)

parser.add_argument(
    "--disable-pass",
    nargs="*",
    help="Disable this pass",
    choices=[x.name for x in passes.PASSES],
    action="append",