search for: pattenmatch

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

Did you mean: patternmatch
2020 Jun 24
7
[RFC] Compiled regression tests.
...hecks 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](http://llvm.org/devmtg/2019-10/talk-abstracts.html#tech12), https://reviews.llvm.org/D80916). Some additional tooling could be helpful: * A test file creato...