summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_llc_test_checks.py
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-07-23 21:14:35 +0000
committerReid Kleckner <rnk@google.com>2018-07-23 21:14:35 +0000
commit980c4df037649b375f952f4ee786582c6c8eb750 (patch)
treee039b03214ae6ba76bec312f254ffe70d85663cd /llvm/utils/update_llc_test_checks.py
parent07dee81a68fcf7e27e2e03e9c1dc2a0bdfd3a6d0 (diff)
downloadbcm5719-llvm-980c4df037649b375f952f4ee786582c6c8eb750.tar.gz
bcm5719-llvm-980c4df037649b375f952f4ee786582c6c8eb750.zip
Re-land r335297 "[X86] Implement more of x86-64 large and medium PIC code models"
Don't try to generate large PIC code for non-ELF targets. Neither COFF nor MachO have relocations for large position independent code, and users have been using "large PIC" code models to JIT 64-bit code for a while now. With this change, if they are generating ELF code, their JITed code will truly be PIC, but if they target MachO or COFF, it will contain 64-bit immediates that directly reference external symbols. For a JIT, that's perfectly fine. llvm-svn: 337740
Diffstat (limited to 'llvm/utils/update_llc_test_checks.py')
-rwxr-xr-xllvm/utils/update_llc_test_checks.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py
index f7d94cdbd78..09b49a763b6 100755
--- a/llvm/utils/update_llc_test_checks.py
+++ b/llvm/utils/update_llc_test_checks.py
@@ -30,6 +30,11 @@ def main():
parser.add_argument(
'--extra_scrub', action='store_true',
help='Always use additional regex to further reduce diffs between various subtargets')
+ parser.add_argument(
+ '--x86_scrub_rip', action='store_true', default=True,
+ help='Use more regex for x86 matching to reduce diffs between various subtargets')
+ parser.add_argument(
+ '--no_x86_scrub_rip', action='store_false', dest='x86_scrub_rip')
parser.add_argument('tests', nargs='+')
args = parser.parse_args()
OpenPOWER on IntegriCloud