diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-06-07 00:22:52 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-06-07 00:22:52 +0000 |
commit | b34fd817ba23401b30d8ab4227417d2d1d24c661 (patch) | |
tree | 6b72902e2886bc4c578582121d23b89aac318777 /llvm/test | |
parent | 9e9d63867633502611f4f5278779d45f28d7cfbe (diff) | |
download | bcm5719-llvm-b34fd817ba23401b30d8ab4227417d2d1d24c661.tar.gz bcm5719-llvm-b34fd817ba23401b30d8ab4227417d2d1d24c661.zip |
Introduce the new feature "abi-breaking-checks" to satisfy -reverse-iterate in llvm/test/Transforms/Util/PredicateInfo/
A few tests in llvm/test/Transforms/Util/PredicateInfo/ are using -reverse-iterate.
The option -reverse-iterate is enabled with +Asserts in usual cases, but it can be turned on/off regardless of LLVM_ENABLE_ASSERTIONS.
I wonder if this were incompatible to https://reviews.llvm.org/D33908 (r304757).
Differential Revision: https://reviews.llvm.org/D33854
llvm-svn: 304851
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Transforms/Util/PredicateInfo/condprop2.ll | 2 | ||||
-rw-r--r-- | llvm/test/Transforms/Util/PredicateInfo/testandor2.ll | 2 | ||||
-rw-r--r-- | llvm/test/lit.cfg | 3 | ||||
-rw-r--r-- | llvm/test/lit.site.cfg.in | 1 |
4 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/Transforms/Util/PredicateInfo/condprop2.ll b/llvm/test/Transforms/Util/PredicateInfo/condprop2.ll index 415fa7c879e..facd22f5b7a 100644 --- a/llvm/test/Transforms/Util/PredicateInfo/condprop2.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/condprop2.ll @@ -1,4 +1,4 @@ -; REQUIRES: asserts +; REQUIRES: abi-breaking-checks ; NOTE: The flag -reverse-iterate is present only in a +Asserts build. ; Hence, this test has been split from condprop.ll to test with -reverse-iterate. ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py diff --git a/llvm/test/Transforms/Util/PredicateInfo/testandor2.ll b/llvm/test/Transforms/Util/PredicateInfo/testandor2.ll index a03250c2f7a..a1b9c62040c 100644 --- a/llvm/test/Transforms/Util/PredicateInfo/testandor2.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/testandor2.ll @@ -1,4 +1,4 @@ -; REQUIRES: asserts +; REQUIRES: abi-breaking-checks ; NOTE: The flag -reverse-iterate is present only in a +Asserts build. ; Hence, this test has been split from testandor.ll to test with -reverse-iterate. ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py diff --git a/llvm/test/lit.cfg b/llvm/test/lit.cfg index e9916b2a60e..5e903c26657 100644 --- a/llvm/test/lit.cfg +++ b/llvm/test/lit.cfg @@ -546,3 +546,6 @@ llvm_config_cmd.wait() if config.have_libxar: config.available_features.add('xar') + +if config.enable_abi_breaking_checks == "1": + config.available_features.add('abi-breaking-checks') diff --git a/llvm/test/lit.site.cfg.in b/llvm/test/lit.site.cfg.in index b6a8b8b17bc..f95f6d8ec9a 100644 --- a/llvm/test/lit.site.cfg.in +++ b/llvm/test/lit.site.cfg.in @@ -24,6 +24,7 @@ config.include_go_tests = @LLVM_INCLUDE_GO_TESTS@ config.go_executable = "@GO_EXECUTABLE@" config.enable_shared = @ENABLE_SHARED@ config.enable_assertions = @ENABLE_ASSERTIONS@ +config.enable_abi_breaking_checks = "@LLVM_ENABLE_ABI_BREAKING_CHECKS@" config.targets_to_build = "@TARGETS_TO_BUILD@" config.native_target = "@LLVM_NATIVE_ARCH@" config.llvm_bindings = "@LLVM_BINDINGS@".split(' ') |