mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Add default JIT LIT variable.
Patch by David Tweed! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1fe4fae463
commit
9e36496eb3
@ -1,6 +1,6 @@
|
||||
; RUN: opt -insert-edge-profiling -o %t1 < %s
|
||||
; RUN: rm -f %t1.prof_data
|
||||
; RUN: lli -load %llvmshlibdir/libprofile_rt%shlibext %t1 \
|
||||
; RUN: lli %defaultjit -load %llvmshlibdir/libprofile_rt%shlibext %t1 \
|
||||
; RUN: -llvmprof-output %t1.prof_data
|
||||
; RUN: opt -profile-file %t1.prof_data -profile-metadata-loader -S -o - < %s \
|
||||
; RUN: | FileCheck %s
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: opt -insert-edge-profiling -o %t1 < %s
|
||||
; RUN: rm -f %t1.prof_data
|
||||
; RUN: lli -load %llvmshlibdir/libprofile_rt%shlibext %t1 \
|
||||
; RUN: lli %defaultjit -load %llvmshlibdir/libprofile_rt%shlibext %t1 \
|
||||
; RUN: -llvmprof-output %t1.prof_data
|
||||
; RUN: opt -profile-file %t1.prof_data -profile-metadata-loader -S -o - < %s \
|
||||
; RUN: | FileCheck %s
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: opt -insert-edge-profiling -o %t1 < %s
|
||||
; RUN: rm -f %t1.prof_data
|
||||
; RUN: lli -load %llvmshlibdir/libprofile_rt%shlibext %t1 \
|
||||
; RUN: lli %defaultjit -load %llvmshlibdir/libprofile_rt%shlibext %t1 \
|
||||
; RUN: -llvmprof-output %t1.prof_data
|
||||
; RUN: opt -profile-file %t1.prof_data -profile-metadata-loader -S -o - < %s \
|
||||
; RUN: | FileCheck %s
|
||||
|
@ -143,6 +143,11 @@ if config.test_exec_root is None:
|
||||
# triple so we can check it with XFAIL and XTARGET.
|
||||
config.target_triple += lit.valgrindTriple
|
||||
|
||||
# Provide a substition for those tests that need to run the jit to obtain data
|
||||
# but simply want use the currently considered most reliable jit for platform
|
||||
defaultIsMCJIT='true' if 'arm' in config.target_triple else 'false'
|
||||
config.substitutions.append( ('%defaultjit', '-use-mcjit='+defaultIsMCJIT) )
|
||||
|
||||
# Process jit implementation option
|
||||
jit_impl_cfg = lit.params.get('jit_impl', None)
|
||||
if jit_impl_cfg == 'mcjit':
|
||||
|
Loading…
Reference in New Issue
Block a user