diff options
author | Xinliang David Li <davidxl@google.com> | 2016-07-19 21:55:55 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-07-19 21:55:55 +0000 |
commit | f26e1d9fb50ab6db37ce791895d88bfafc0cfcb6 (patch) | |
tree | 29b2e6ff956cc47de14ac4bb8da2d9f78666ca72 | |
parent | b5ab08bdb1f7e2bc9de4b935a85cd81567e09f2e (diff) | |
download | bcm5719-llvm-f26e1d9fb50ab6db37ce791895d88bfafc0cfcb6.tar.gz bcm5719-llvm-f26e1d9fb50ab6db37ce791895d88bfafc0cfcb6.zip |
[Profile] Introduce lit test vars for IR based instrumentation
llvm-svn: 276034
-rw-r--r-- | compiler-rt/test/profile/lit.cfg | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/compiler-rt/test/profile/lit.cfg b/compiler-rt/test/profile/lit.cfg index 3512e0abcf1..7693bd5c6fc 100644 --- a/compiler-rt/test/profile/lit.cfg +++ b/compiler-rt/test/profile/lit.cfg @@ -57,12 +57,20 @@ config.substitutions.append( ("%clang ", build_invocation(clang_cflags)) ) config.substitutions.append( ("%clangxx ", build_invocation(clang_cxxflags)) ) config.substitutions.append( ("%clang_profgen ", build_invocation(clang_cflags) + " -fprofile-instr-generate ") ) config.substitutions.append( ("%clang_profgen=", build_invocation(clang_cflags) + " -fprofile-instr-generate=") ) -config.substitutions.append( ("%clang_profuse=", build_invocation(clang_cflags) + " -fprofile-instr-use=") ) +config.substitutions.append( ("%clang_pgogen ", build_invocation(clang_cflags) + " -fprofile-generate ") ) +config.substitutions.append( ("%clang_pgogen=", build_invocation(clang_cflags) + " -fprofile-generate=") ) + config.substitutions.append( ("%clangxx_profgen ", build_invocation(clang_cxxflags) + " -fprofile-instr-generate ") ) -config.substitutions.append( ("%clangxx_profuse=", build_invocation(clang_cxxflags) + " -fprofile-instr-use=") ) +config.substitutions.append( ("%clangxx_profgen= ", build_invocation(clang_cxxflags) + " -fprofile-instr-generate=") ) +config.substitutions.append( ("%clangxx_pgogen ", build_invocation(clang_cxxflags) + " -fprofile-generate ") ) +config.substitutions.append( ("%clangxx_pgogen= ", build_invocation(clang_cxxflags) + " -fprofile-generate=") ) + config.substitutions.append( ("%clang_profgen_gcc=", build_invocation(clang_cflags) + " -fprofile-generate=") ) config.substitutions.append( ("%clang_profuse_gcc=", build_invocation(clang_cflags) + " -fprofile-use=") ) +config.substitutions.append( ("%clang_profuse=", build_invocation(clang_cflags) + " -fprofile-instr-use=") ) +config.substitutions.append( ("%clangxx_profuse=", build_invocation(clang_cxxflags) + " -fprofile-instr-use=") ) + if config.host_os not in ['Darwin', 'FreeBSD', 'Linux']: config.unsupported = True |