Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: pnacl/driver/pnacl-translate.py

Issue 1026243002: Add Subzero to test scripts. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Formatting Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import driver_tools 6 import driver_tools
7 import filetype 7 import filetype
8 import ldtools 8 import ldtools
9 import multiprocessing 9 import multiprocessing
10 import os 10 import os
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 "env.append('LLC_FLAGS_EXTRA', $0)"), 184 "env.append('LLC_FLAGS_EXTRA', $0)"),
185 ( '(-pnaclabi-verify=.*)', "env.append('LLC_FLAGS_EXTRA', $0)"), 185 ( '(-pnaclabi-verify=.*)', "env.append('LLC_FLAGS_EXTRA', $0)"),
186 ( '(-pnaclabi-verify-fatal-errors=.*)', "env.append('LLC_FLAGS_EXTRA', $0)"), 186 ( '(-pnaclabi-verify-fatal-errors=.*)', "env.append('LLC_FLAGS_EXTRA', $0)"),
187 # Allow overriding the -O level. 187 # Allow overriding the -O level.
188 ( '-O([0-3])', "env.set('OPT_LEVEL', $0)"), 188 ( '-O([0-3])', "env.set('OPT_LEVEL', $0)"),
189 189
190 # This adds arch specific flags to the llc invocation aimed at 190 # This adds arch specific flags to the llc invocation aimed at
191 # improving translation speed at the expense of code quality. 191 # improving translation speed at the expense of code quality.
192 ( '-translate-fast', "env.set('FAST_TRANSLATION', '1')"), 192 ( '-translate-fast', "env.set('FAST_TRANSLATION', '1')"),
193 # Allow Subzero. 193 # Allow Subzero.
194 ( '--sz', "env.set('USE_SZ', '1')"), 194 ( '--use-sz', "env.set('USE_SZ', '1')"),
195 195
196 ( '-nostdlib', "env.set('USE_STDLIB', '0')"), 196 ( '-nostdlib', "env.set('USE_STDLIB', '0')"),
197 197
198 # Disables the default libraries. 198 # Disables the default libraries.
199 # This flag is needed for building libgcc_s.so. 199 # This flag is needed for building libgcc_s.so.
200 ( '-nodefaultlibs', "env.set('USE_DEFAULTLIBS', '0')"), 200 ( '-nodefaultlibs', "env.set('USE_DEFAULTLIBS', '0')"),
201 201
202 ( '--noirt', "env.set('USE_IRT', '0')"), 202 ( '--noirt', "env.set('USE_IRT', '0')"),
203 ( '--noirtshim', "env.set('USE_IRT_SHIM', '0')"), 203 ( '--noirtshim', "env.set('USE_IRT_SHIM', '0')"),
204 204
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 The default output file type is .nexe, which assumes that the input file 584 The default output file type is .nexe, which assumes that the input file
585 type is .pexe. Native object files and assembly can also be generated 585 type is .pexe. Native object files and assembly can also be generated
586 with the -S and -c commandline flags. 586 with the -S and -c commandline flags.
587 587
588 ADVANCED OPTIONS: 588 ADVANCED OPTIONS:
589 -mattr=<+feat1,-feat2> Toggle specific cpu features on and off. 589 -mattr=<+feat1,-feat2> Toggle specific cpu features on and off.
590 -mcpu=<cpu-name> Target a specific cpu type. Tunes code as well as 590 -mcpu=<cpu-name> Target a specific cpu type. Tunes code as well as
591 turns cpu features on and off. 591 turns cpu features on and off.
592 -S Generate native assembly only. 592 -S Generate native assembly only.
593 -c Generate native object file only. 593 -c Generate native object file only.
594 --use-sz Use the Subzero fast translator.
594 --pnacl-sb Use the translator which runs inside the NaCl sandbox. 595 --pnacl-sb Use the translator which runs inside the NaCl sandbox.
595 Applies to both pnacl-llc and pnacl-sz translators. 596 Applies to both pnacl-llc and pnacl-sz translators.
596 -O[0-3] Change translation-time optimization level. 597 -O[0-3] Change translation-time optimization level.
597 """ 598 """
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698