search for: assert_all_of

Displaying 1 result from an estimated 1 matches for "assert_all_of".

2020 Jun 24
7
[RFC] Compiled regression tests.
...ain project's results (which currently we do not have tests for) and could also be compiled in debug mode while LLVM itself is compiled in release mode. The checks themselves can be any of gtest's ASSERT/EXPECT macros, but for common test idioms I suggest to add custom macros, such as ASSERT_ALL_OF(InstList, !isa<VectorType>(I->getType())); which on failure prints the instruction that does not return a vector. Try that with FileCheck. PattenMatch.h from InstCombine can be used as well. Structural comparison with a reference output could also be possible (like clang-diff, [llvm-canon...