]> granicus.if.org Git - llvm/commitdiff
Introduce the new feature "abi-breaking-checks" to satisfy -reverse-iterate in llvm...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 7 Jun 2017 00:22:52 +0000 (00:22 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 7 Jun 2017 00:22:52 +0000 (00:22 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304851 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/Util/PredicateInfo/condprop2.ll
test/Transforms/Util/PredicateInfo/testandor2.ll
test/lit.cfg
test/lit.site.cfg.in

index 415fa7c879e3d5f2448efe552b7050427489d796..facd22f5b7a6a9a1075623ca366537b5e04cefdc 100644 (file)
@@ -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
index a03250c2f7a0cf31478c8507e6b7b10fd619e776..a1b9c62040c8ac9dc1652c5d3f9d4dafe4df137d 100644 (file)
@@ -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
index e9916b2a60e8cb9b015a5391b30c7c4e1fcab36a..5e903c26657ea8908938c8c772e1aeb42932fef5 100644 (file)
@@ -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')
index b6a8b8b17bca2f6d1ede4aea76d79144adaf16cf..f95f6d8ec9ac40b388cfecb1558efc2a873e8875 100644 (file)
@@ -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(' ')