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

Unified Diff: pnacl/driver/pnacl-translate.py

Issue 11299012: PNaCl: Add more MIPS support to the toolchain (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pnacl/driver/pnacl-nativeld.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pnacl/driver/pnacl-translate.py
diff --git a/pnacl/driver/pnacl-translate.py b/pnacl/driver/pnacl-translate.py
index d5bb916dbcc07f21975ca9cbb18d5124538e0d0c..36a4f42efae9be7becc9db3c67ba4eabd0188fb6 100755
--- a/pnacl/driver/pnacl-translate.py
+++ b/pnacl/driver/pnacl-translate.py
@@ -100,6 +100,7 @@ EXTRA_ENV = {
'TRIPLE_ARM' : 'armv7a-none-nacl-gnueabi',
'TRIPLE_X8632': 'i686-none-nacl-gnu',
'TRIPLE_X8664': 'x86_64-none-nacl-gnu',
+ 'TRIPLE_MIPS32': 'mipsel-none-nacl-gnu',
'LLC_FLAGS_COMMON': '${PIC ? -relocation-model=pic} ' +
# -force-tls-non-pic makes the code generator (llc)
@@ -120,6 +121,8 @@ EXTRA_ENV = {
'LLC_FLAGS_X8632' : '',
'LLC_FLAGS_X8664' : '',
+ 'LLC_FLAGS_MIPS32': '-sfi-load -sfi-store -sfi-stack -sfi-branch -sfi-data',
+
# LLC flags which set the target and output type.
# These are handled separately by libLTO.
'LLC_FLAGS_TARGET' : '-mcpu=${LLC_MCPU} ' +
@@ -162,6 +165,7 @@ EXTRA_ENV = {
# '-O2 ' +
'-fast-isel ' +
'-tail-merge-threshold=20',
+ 'LLC_FLAGS_FAST_MIPS32': '-fast-isel -tail-merge-threshold=20',
'LLC_FLAGS': '${LLC_FLAGS_TARGET} ' +
'${LLC_FLAGS_COMMON} ' +
@@ -179,6 +183,7 @@ EXTRA_ENV = {
'LLC_MCPU_ARM' : 'cortex-a8',
'LLC_MCPU_X8632' : 'pentium4',
'LLC_MCPU_X8664' : 'core2',
+ 'LLC_MCPU_MIPS32' : 'mips32r2',
# Note: this is only used in the unsandboxed case
'RUN_LLC' : '${LLVM_LLC} ${LLC_FLAGS} ${input} -o ${output} ' +
« no previous file with comments | « pnacl/driver/pnacl-nativeld.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698